Hi,
I want to create a target that excludes a file, and another that compiles
only that one file, so I have tried this:
<target name="compile">
<javac srcdir="src" destdir="classes" excludes="**/asdf/User.java"
classpath="${classpath}" debug="off" optimize="on"
deprecation="on"/>
</target>
<target name="User.class">
<javac srcdir="src" destdir="classes"
excludes="**/*"
includes="**/asdf/User.java"
classpath="${classpath}" debug="off" optimize="on"
deprecation="on"/>
</target>
With the first target, ant reports that it's compiling 4 files (which would
be right) however it actually compiles all 5.
With the second target, it says:
Buildfile: build.xml
User.class:
BUILD SUCCESSFUL
Total time: 0 seconds
What am I doing wrong?
Kendall