ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How to pass list of filenames to javac task
Date Tue, 03 Feb 2004 07:12:06 GMT
1) You can specify property include attributes in a fileset.
2) <src> is a "path-like structure" therefore it should support nested
filelists

Jan


> -----Original Message-----
> From: Anderson, Kajsa [mailto:Kajsa.Anderson@thomson.com]
> Sent: Monday, February 02, 2004 8:22 PM
> To: 'Ant Users List'
> Subject: RE: How to pass list of filenames to javac task
> 
> 
>   <javac destdir="${build}"
>          classpath="xyz.jar"
>          debug="on">
>     <src path="/tmp/ant-tryout/src"/>
>     <include name="SampleApp.java"/>
>     <!-- You can have multiple includes here -->
>   </javac>
> 
> -----Original Message-----
> From: Veerappan Saravanan-ESV007 [mailto:esv007@motorola.com]
> Sent: Monday, February 02, 2004 1:15 PM
> To: 'Ant Users List'
> Subject: RE: How to pass list of filenames to javac task
> 
> 
> It takes only the path and not the filenames.
> 
> I am looking specific to pass filenames like
> /tmp/ant-tryout/src/anttest/SampleApp.java
> 
> -----Original Message-----
> From: Conelly, Luis (PS, GNF, Contractor) 
[mailto:Luis.Conelly@gnf.com] 
Sent: Monday, February 02, 2004 2:11 PM
To: Ant Users List
Subject: RE: How to pass list of filenames to javac task


Yes, use <src> element in the <javac> task, as mentioned in the manual[1]

  <javac destdir="${build}"
         classpath="xyz.jar"
         debug="on">
    <src path="${src}"/>
    <src path="${src2}"/>
    <include name="mypackage/p1/**"/>
    <include name="mypackage/p2/**"/>
    <exclude name="mypackage/p1/testpackage/**"/>
  </javac>

HTH
-Luis
Luis G Conelly
Mobile +52 (449)123-8749
There are 10 kinds of programmers:
* Those who know binary code
* Those who does not


[1] http://ant.apache.org/manual/CoreTasks/javac.html

-----Original Message-----
From: Veerappan Saravanan-ESV007 [mailto:esv007@motorola.com]
Sent: Monday, February 02, 2004 1:01 PM
To: 'user@ant.apache.org'
Subject: How to pass list of filenames to javac task


Is there a way to give list of filenames instead of specifying srcdir
attribute?

Thanks

 

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

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message