ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Kajsa" <Kajsa.Ander...@thomson.com>
Subject RE: How to pass list of filenames to javac task
Date Mon, 02 Feb 2004 19:21:48 GMT
  <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
View raw message