ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject source by refid in javac
Date Thu, 27 Jul 2006 11:44:22 GMT

OK. I give up. how do you pass down a fileset by ref as the souce dir to 
javac? src is a path ,and there is no srcref ID in the matching task.

I tried to use the fileset inside the src dir, but got told off for not 
setting a srcdir attribute:

   <target name="javac-refid">
     <fileset id="source.files" dir="src">
       <include name="org/antbook/**.java"/>
       <exclude name="org/antbook/broken/*.java"/>
     </fileset>
     <javac>
       <src >
         <fileset refid="source.files" />
       </src>
     </javac>
   </target>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message