EDIT: I finished creating the whole project in Eclipse and was able to build it. I am not sure why this problem arose and, I hope, I will never have to find out.
I had a problem when my assembly reports "BUILD FAILED" without reporting any errors.
I am creating a large application from a lot of old code, which I now have the joy of changing. Most other developers created their assemblies using Eclipse, but I'm trying to create it through existing build.xml files.
After receiving my classpath set, the assembly runs smoothly, but shortly after starting the compilation stage, it returns:
Lots of "[javac] file.java" lines.
BUILD FAILED
<project path>/build.xml:201: Compile failed; see the compiler error output for details.
This is less useful. There is no additional information in the build.log file except for the stack trace:
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1085)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:885)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
-debug ant , ( ) .
ant:
<target name="compile" depends="achmetadata">
<mkdir dir="${path.build.classes}"/>
<javac
listfiles="yes"
destdir="${path.build.classes}"
classpathref="project.classpath"
debug="on"
deprecation="on"
fork="yes"
nowarn="no"
memoryMaximumSize="512M"
srcdir="${path.src.java}"
source="1.4"
target="1.4"
>
-><src path="${path.build.src}"/>
<patternset refid="production-code"/>
</javac>
</target>
pathref , .
, ? ant, ?