ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shaw, Kendall" <KS...@abtcorp.com>
Subject Patterns
Date Thu, 20 Jul 2000 20:08:37 GMT
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

Mime
View raw message