You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/10/06 19:41:50 UTC
DO NOT REPLY [Bug 23629] New: -
Allow antcall to have if/unless like target does.
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: dev@ant.apache.org
ReportedBy: ben@csh.rit.edu
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org