You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jeffrey Jensen <JJ...@agribank.com> on 2002/10/01 19:57:50 UTC

Building a source reference

Hi,

In the snippet below, what is the solution to get "src.java"
shared/accessible in each target (<pathconvert> has to run only in a
target, right?!)?

And perhaps there is a better approach all around for javac & javadoc
to access the same source info with the "test" dir included only when
specified to...?


  <fileset id="src.java.files" dir="csourceweb">
    <include name="source/**/*.java"/>
    <include name="test/**/*.java" if="compile.tests"/>
  </fileset>
  
  <pathconvert property="src.java" pathsep=","
refid="src.java.files"/>

<target ...
  <javac ...>
    <src refid="src.java">

<target ...
  <javadoc ...>
    <sourcepath refid="src.java">


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>