ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject JavaC and sourcepath
Date Thu, 20 Mar 2008 15:20:23 GMT

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
-- 
View this message in context: http://www.nabble.com/JavaC-and-sourcepath-tp16181099p16181099.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message