我正在尝试使用subant。我有一个带有build.xml的子目录,有些则没有。
我的任务是:
<target name="buildCatapultSamples" description="Builds the catapult samples using the generated jars.">
<echo>Building catapult samples in ${base.compilesamples.src.dir}</echo>
<mkdir dir="${base.compilesamples.src.dir}"/>
<copy todir="${base.compilesamples.src.dir}">
<fileset dir="setup_files/demo/Samples/Java"/>
</copy>
<subant target="build" buildpath="${base.compilesamples.src.dir}">
<fileset dir="${base.compilesamples.src.dir}" includes="*/build.xml"/>
</subant>
</target>
在我没有build.xml的第一个目录中:
BUILD FAILED
C:\git\Jenova\setup\Engine\JavaEngine\build.xml:231: Invalid file: C:\git\Jenova\setup\Engine\JavaEngine\working\src_samples\build.xml
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:287)
at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
我在做什么错了?