You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jacob Kjome <ho...@visi.com> on 2003/02/23 05:10:53 UTC

error in using multiple src dirs...

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 


Re: error in using multiple src dirs...

Posted by Jacob Kjome <ho...@visi.com>.
Ug!, forget it.  The issue is with the <copy> task where I am sending the 
fileset that it uses the same multiple source directories that I was 
sending to the compile task.

Sorry for the bother.

Actually, how am I going to get around this one?  The compile task can take 
multiple src directories, but how am I going to do a copy of those same 
multiple directories?

Jake

At 10:10 PM 2/22/2003 -0600, you wrote:

>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org