ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32300] - Allow multiple targets for <ant> task
Date Thu, 18 Nov 2004 21:33:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32300>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32300





------- Additional Comments From ernst.dehaan@wanadoo.nl  2004-11-18 22:33 -------
For your information, when I execute the command I proposed, I get the 
following output: 
 
$ ant -buildfile a.xml -Dargs='target_b_1 target_b_2' 
Buildfile: a.xml 
 
target_a_1: 
     [echo] Arguments: target_b_1 target_b_2 
 
BUILD FAILED 
/home/ernst/a.xml:6: Following error occured while executing this line 
Target `target_b_1 target_b_2' does not exist in this project. 
 
Total time: 0 seconds 
 
 
Now when I add the -verbose option I get this: 
 
$ ant -verbose -buildfile a.xml -Dargs='target_b_1 target_b_2' 
Apache Ant version 1.6.1 compiled on February 12 2004 
Buildfile: a.xml 
Detected Java version: 1.4 in: /opt/sun-jdk-1.4.2.06/jre 
Detected OS: Linux 
parsing buildfile /home/ernst/a.xml with URI = file:///home/ernst/a.xml 
Project base dir set to: /home/ernst 
Build sequence for target `target_a_1' is [target_a_1] 
Complete build sequence is [target_a_1, ] 
 
target_a_1: 
     [echo] Arguments: target_b_1 target_b_2 
Project base dir set to: /home/ernst 
      [ant] calling target target_b_1 target_b_2 in build 
file /home/ernst/b.xml 
parsing buildfile /home/ernst/b.xml with URI = file:///home/ernst/b.xml 
Project base dir set to: /home/ernst 
      [ant] Entering /home/ernst/b.xml... 
      [ant] Exiting /home/ernst/b.xml. 
 
BUILD FAILED 
/home/ernst/a.xml:6: Following error occured while executing this line 
Target `target_b_1 target_b_2' does not exist in this project. 
        at 
org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:537) 
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:385) 
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) 
        at org.apache.tools.ant.Task.perform(Task.java:364) 
        at org.apache.tools.ant.Target.execute(Target.java:301) 
        at org.apache.tools.ant.Target.performTasks(Target.java:328) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215) 
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063) 
        at org.apache.tools.ant.Main.runBuild(Main.java:632) 
        at org.apache.tools.ant.Main.startAnt(Main.java:183) 
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) 
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) 
Caused by: Target `target_b_1 target_b_2' does not exist in this project. 
        at org.apache.tools.ant.Project.tsort(Project.java:1666) 
        at org.apache.tools.ant.Project.topoSort(Project.java:1588) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1192) 
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383) 
        ... 10 more 
--- Nested Exception --- 
Target `target_b_1 target_b_2' does not exist in this project. 
        at org.apache.tools.ant.Project.tsort(Project.java:1666) 
        at org.apache.tools.ant.Project.topoSort(Project.java:1588) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1192) 
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383) 
        at 
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269) 
        at org.apache.tools.ant.Task.perform(Task.java:364) 
        at org.apache.tools.ant.Target.execute(Target.java:301) 
        at org.apache.tools.ant.Target.performTasks(Target.java:328) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215) 
        at org.apache.tools.ant.Project.executeTargets(Project.java:1063) 
        at org.apache.tools.ant.Main.runBuild(Main.java:632) 
        at org.apache.tools.ant.Main.startAnt(Main.java:183) 
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:197) 
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:56) 
 
Total time: 0 seconds 

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message