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 2002/09/04 13:46:46 UTC
DO NOT REPLY [Bug 12292] New: -
[PATCH] enable tag inside targets
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=12292>.
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=12292
[PATCH] enable <depends target=""/> tag inside targets
Summary: [PATCH] enable <depends target=""/> tag inside targets
Product: Ant
Version: 1.6Alpha (nightly)
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core
AssignedTo: ant-dev@jakarta.apache.org
ReportedBy: nicolaken@apache.org
It enables to use <depends target=""/> tag inside targets, not only in the
depends attribute.
Example:
<?xml version="1.0"?>
<project default="test" basedir="." name="test">
<target name="pre1">
<echo message="pre1"/>
</target>
<target name="pre2">
<echo message="pre2"/>
</target>
<target name="test" depends="pre1,innerpre1,test2">
</target>
<target name="test2" depends="pre1,pre2">
<echo message="test-before"/>
<depends target="c"/>
<!-- <depends target="test"/> -->
<echo message="test-after"/>
</target>
<target name="c" depends="innerpre1,innerpre2">
<echo message="c"/>
</target>
<target name="innerpre1">
<echo message="innerpre1"/>
</target>
<target name="innerpre2">
<echo message="innerpre2"/>
</target>
</project>
Will yield:
pre1:
[echo] pre1
innerpre1:
[echo] innerpre1
pre2:
[echo] pre2
test2:
[echo] test-before
innerpre2:
[echo] innerpre2
c:
[echo] c
[echo] test-after
test:
BUILD SUCCESSFUL
Total time: 1 second
@todo check the if-unless-etc stuff.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>