Hi, all.

I am using ant 1.5 with a system where a given build may have source in 
${project.work.dir}/source, ${project.work.dir}/generated-source, or 
both.

I have defined
   <dirset id="compile.source.dirs" dir="${project.work.dir}">
     <include name="source"/>
     <include name="source-generated"/>
   </dirset>

I currently test whether either exists via
     <condition property="compile.source.exists" >
       <or>
         <available file="${project.work.dir}/source" type="dir"/>
         <available file="${project.work.dir}/generated-source" 
type="dir"/>
       </or>
     </condition>

Is there a way to send the dirset to it instead, so that I only have to 
define this in one spot?

Scott


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to