| error in <javac > using multiple src dirs... | error in <javac > using multiple src dirs... 2003-02-22 - By Jacob Kjome
I am getting an error in <javac> when I point to more than one source directory using both ant-1.5.1 and ant-1.5.2beta1. The curious thing is that it actually compiles all the files before it bombs out. Here is the error....
BUILD FAILED file:D:/myclasses/Prevayler/CVS_Repositories/Prevayler2_2003-02-20/prevayler/bui ld.xml:182: D:\myclasses\Prevayler\CVS_Repositories\Prevayler2_2003-02-20\prevay ler\contrib\rollbackWithMementoPattern;D:\myclasses\Prevayler\CVS_Repositories\P revayler2_2003-02-20\prevayler\contrib\jxpath not found. at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Abstra ctFileSet.java:369) at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:355) at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397) at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
at org.apache.tools.ant.Task.perform(Task.java:341) at org.apache.tools.ant.Target.execute(Target.java:309) at org.apache.tools.ant.Target.performTasks(Target.java:336) at org.apache.tools.ant.Project.executeTarget(Project.java:1339) at org.apache.tools.ant.Project.executeTargets(Project.java:1255) at org.apache.tools.ant.Main.runBuild(Main.java:609) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235)
Here's the javac task..
<javac srcdir="${srcdir}" destdir="${build.home}" includes="${includes}" excludes="${excludes}" debug="${build.debug}" deprecation="${build.deprecation}" optimize="${build.optimize}" verbose="${build.verbose}"> <classpath refid="build.classpath" /> </javac>
According to the docs, I can provide multiple paths. The docs give the example of...
<javac srcdir="${src}:${src2}" destdir="${build}" includes="mypackage/p1/**,mypackage/p2/**" excludes="mypackage/p1/testpackage/**" classpath="xyz.jar" debug="on" />
I am assuming that the colon separator in this example is for UNIX systems. I am on Windows. I set the path up using the following... <property name="src.contrib.projects" value="${src.contrib.home}/rollbackWithMementoPattern${path.separator}${src .contrib.home}/jxpath" />
The result can be seen in the error (above).
So, any ideas? Am I missing something obvious?
Jake
|
|
 |