tags:

views:

69

answers:

2

I have the following declaration in my build.xml file, in my src folder I have my test package which I don't want to include into my process. How can I force scrdir to read everything from ${src.dir} except test package?

<target name="compile">  
    <javac srcdir="${src.dir}" destdir="${classes.dir}"/>
</target>
+2  A: 

javac has excludes attribute where you can exclude the packages.

daedlus
+3  A: 

http://ant.apache.org/manual/CoreTasks/javac.html

<target name="compile">   
    <javac srcdir="${src.dir}" destdir="${classes.dir}"
           excludes="mypackage/p1/testpackage/**"/>

</target> 
stacker