aphex/SuperAnt

Latest release resolving to wrong target...

Closed this issue · 6 comments

SuperAnt has been working great for me until tonight. I haven't figured out what is going on but it seems that the wrong target is being executed. A re-install did not help.

We did just merge in some updates to allow for multiple folders and build files. Can you give me some information on your setup? how many folders, whats your structure? If possible can you make a small example of a project that does not work?

Sorry for the circumstances, I'll look right into it

np, thanks for your quick replies... following is a stub build.xml that exhibits the issues I'm seeing. Just copy the following into a build.xml in any folder. Seems like any target you choose runs the wrong thing.

build.xml

<target name="mkdirs">
    <echo>mkdirs</echo>
</target>

<target name="clean">
    <echo>clean</echo>
</target>

<target name="compile" depends="clean">
    <echo>compile</echo>
</target>

<target name="package-jar" depends="compile, mkdirs">
    <echo>package-jar</echo>
</target>

<target name="package-libs">
    <echo>package-libs</echo>
</target>

<target name="package-amp" depends="mkdirs, package-jar, package-libs" >
    <echo>package-amp</echo>
</target>

<target name="package-src" >
    <echo>package-src</echo>
</target>

<target name="deploy-amp" depends="package-amp" >
    <echo>deploy-amp</echo>
</target>

<!-- This only works on Tomcat and only when the app server is not running -->
<target name="update-war" depends="package-amp" >
    <echo>update-war</echo>
</target>

<target name="revert-to-original" >
    <echo>revert-to-original</echo>
</target>

<target name="revert-to-unmodified" >
    <echo>revert-to-unmodified</echo>
</target>

<target name="preview-war" depends="package-amp" >
    <echo>preview-war</echo>
</target>

<target name="list-installed-amps" >
    <echo>list-installed-amps</echo>
</target>

<target name="hot-deploy-webscripts" >
    <echo>hot-deploy-webscripts</echo>
</target>

<target name="clean-tests">
    <echo>clean-tests</echo>
</target>

<target name="compile-tests" depends="compile,clean-tests">
    <echo>compile-tests</echo>
</target>

<target name="test" depends="compile-tests">
    <echo>test</echo>
</target>

the problem lies within the sorting of targets by name which did not resolve to the same index of the desired target in the ant file. the order of targets coincidentally was the same after sorting them when I tested it. a fix is underway ...

Thanks very much. Just tried the hotfix and it resolves the issue and unblocks me :-) Thank you so much! Terrific plug-in btw!

Fixed with sorting.