ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Murray, Mike" <>
Subject RE: javac ant task
Date Thu, 16 Sep 2004 21:15:06 GMT
It is probably because ext is part of your package structure.

Drop "/ext" from the src, and add it as an includes filter.

-----Original Message-----
From: Satish Jeejula []
Sent: Thursday, September 16, 2004 4:05 PM
Subject: RE: javac ant task


I have changed the javac task to use nested src elements. But the problem still persists.
It compiles all the java files under ${wt_home}/src/ext every time even though no file has
been changed.

Still puzzled..

Thanks for your help,

-----Original Message-----
From: Charles Hudak [] 
Sent: Thursday, September 16, 2004 3:08 PM
To: Ant Users List
Subject: RE: javac ant task

Since you have more than one source dir, don't use the javac attribute but use nested src

    <classpath refid="compile.codebase.class.path"/>
    <src path="${wt_home}/src/ext"/>
    <src path="${wt_home}/wtSafeArea/siteMod/src"/>

Most of this stuff is discussed in the Ant manual. You may want to give it a look when you
are having trouble with a task.
> -----Original Message-----
> From: Satish Jeejula [] 
> Sent: Thursday, September 16, 2004 12:30 PM
> To:
> Subject: javac ant task 
> Hi All,
> I have a build file that compiles java files from 2 
> locations. Javac portion of the task is pasted below:
> <javac
> srcdir="${wt_home}/src/ext/:${wt_home}/wtSafeArea/siteMod/src"
>             destdir="${builddir}"
>             debug="on"
>             failonerror="true">
>             <classpath refid="compile.codebase.class.path"/>
> </javac>
> The 2 locations are: ${wt_home}/src/ext/ and 
> ${wt_home}/wtSafeArea/siteMod/src.
> When I run  the target, it compiles all the files from first 
> location every time. But does not compile files from second 
> location all the time. 
> I thought that javac will only compile if no class file is 
> present or when there is new version of java file. Bizarre 
> thing is it is complying with this rule for files in second 
> location and does not for the files in first location.
> Has anyone seen this behavior and if so can explain what am missing?
> Thanks,
> Satish

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message