In ant build.xml file , is there a way that I may just give one java
file name, all its depends java files are also excluded from being
built ?
If possible, could you give an example to do it. ?
Aj-India - 15 Jun 2006 12:39 GMT
Hi,
I hope this is what u wanted. Suppose u have a folder consisting of
java files and u only want one of them say"A.java" to be compiled, u
can use the include attribute.
Cheers,
Ajit
<property name="src.dir" value="com"/>
<target name="Compile" depends="" description="Compile Java Files">
<javac srcdir="${src.dir}/java/src" destdir="${src.dir}/build/classes"
debug="${javac.debug}" optimize="${javac.optimize}" nowarn="on"
includes="**/A.java">
</javac>
</target>
> In ant build.xml file , is there a way that I may just give one java
> file name, all its depends java files are also excluded from being
> built ?
>
> If possible, could you give an example to do it. ?
Aj-India - 15 Jun 2006 12:49 GMT
Hi,
I hope this is what u wanted. Suppose u have a folder consisting of
java files and u only want one of them say"A.java" to be compiled, u
can use the include attribute.
Cheers
Aj
<property name="src.dir" value="com"/>
<target name="Compile" depends="" description="Compile Java Files">
<javac srcdir="${src.dir}/java/src" destdir="${src.dir}/build/classes"
debug="${javac.debug}" optimize="${javac.optimize}" nowarn="on"
includes="**/A.java">
</javac>
</target>
> In ant build.xml file , is there a way that I may just give one java
> file name, all its depends java files are also excluded from being
> built ?
>
> If possible, could you give an example to do it. ?
chunji08@gmail.com - 15 Jun 2006 19:38 GMT
> Hi,
> I hope this is what u wanted. Suppose u have a folder consisting of
[quoted text clipped - 13 lines]
> </javac>
> </target>
That would be a easy case.
But what happen for these java files that depends on A.java, but not in
the same dir as A.java ?
And the files that are in the same dir as A.java, but not depend on
A.java ?