DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23629>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23629

Allow antcall to have if/unless like target does.

           Summary: Allow antcall to have if/unless like target does.
           Product: Ant
           Version: 1.5.4
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Let's say you have two targets; ejbdoclet and compile.  I would like to always 
run ejbdoclet if called directly.  I would also like to run ejbdoclet when 
compile is called if and only if it has not been run before(or after a clean).

What I wanted to do was this
<target name="ejbdoclet">
...
</target>

<target name="compile" depends="init">
  <available property="ejb-jar.xml.available"
             file="build\META-INF\ejb-jar.xml" />
  <antcall target="ejbdoclet" unless="ejb-jar.xml.available" />
...
</target>

This way if ejbdoclet is called directly it will always get run and if compile 
is called ejbdoclet will only get called if ejb-jar.xml is not available.

I know there are workarounds to this but this enhancement is a lot cleaner.

Ben

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to