简体   繁体   中英

Dependent ant task is executing before finishing the dependency task execution

I have written an ant script to build a plugin and publish feature as follows:

<project default="temp" name="build">

<target name="feature_export" depends="build-exility-Client">
     <echo>inside feature_export</echo>
    <pde.exportFeatures destination="C:\Users\akhilesh.kj\Desktop\Plugin" exportSource="false" exportType="directory" features="com.exility.exilant.feature" useJARFormat="true" /> 
</target>

    <target name="temp" depends="feature_export">
      <p2.publish.featuresAndBundles
            metadataRepository="file:/d:/a"
            artifactRepository="file:/d:/a"
            publishArtifacts="true"
            compress="true"
           source="C:\Users\akhilesh.kj\Desktop\Plugin"/>
   </target>    
</project>

Here, first 'feature_export' is getting executed.But before completing the execution(exporting the plugin and feature) Task 'temp' get started.Since task 'temp' is using plugin and feature jar that is output of 'feature_export' task,So it is not giving result as expected.

All I want is that firstly, complete 'feature_export' task with proper output then start 'temp' task.

I tried with sleep and waitfor command but that does not work for me.

Please help!

This is a known limitation

Eclipse Bugtracker

It seems that they won't fix it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM