Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

JavaC and sourcepath

Raja Nagendra Kumar

2008-03-20

Replies:

Author LoginPost Reply

Hi,

In ant script like the following with both srcdir and sourcepath..

<javac encoding="ascii"
      target="1.5"
      debug="true"
      extdirs=""
      srcdir="${src}"
      destdir="${classes}"
      bootclasspath="${android-jar}">
    <sourcepath path="${PROJECT_HOME}/common/src"/>
    <sourcepath path="${PROJECT_HOME}/j2me/src"/>
    <sourcepath path="${COMMON_SHARED_CODE_HOME}"/>
    <sourcepath path="${J2ME_SHARED_CODE_HOME}"/>
 </javac>

I am looking to copy the source code files to seperate directory after the
javac task. For this I know all the files in srcdir is one copy and other
source files could be some of the files as referenced in by java code of src
file.

As I don't know what are the referenced files in the directories  

<sourcepath path="${PROJECT_HOME}/common/src"/>
    <sourcepath path="${PROJECT_HOME}/j2me/src"/>
    <sourcepath path="${COMMON_SHARED_CODE_HOME}"/>
    <sourcepath path="${J2ME_SHARED_CODE_HOME}"/>

I am unable to copy them, other than copying all.. Could any tell me how to
get all the source files which were compiled by javac task. if this feature
does not exist, it may be good candidate to provide the same in new version
of ant :)

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.