Java Mailing List Archive

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

Home » Ant Users List »

Re: JavaC and sourcepath

Scot P. Floess

2008-03-20

Replies:

Author LoginPost Reply
If you know the dirs you are compiling, why not copy the files from
there? For example, I see ${PROJECT_HOME}/common/src in your
sourcepath... So why does Javac need this functionality? Stock command
line javac doesn't do this. I don't see why the task javac should
either....

Raja Nagendra Kumar wrote:
> 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
>  

--
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim

Architect Keros       http://sourceforge.net/projects/keros


---------------------------------------------------------------------
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.