Hi all,
My problem has to do with how jde-ant is interacting with Ant via the "buffer" system
property. This question may be better directed to an Ant community, but I've opted to
start here first in hopes other JDE users use jde-ant/Ant/-Dbuffer the same way.
I'm trying to use Ant to compile only one file at a time using the "buffer" system
property. Ant isn't compiling any file, even though I set the "include" to the buffer
system property.
Below are my build.xml target and compilation buffers. Any ideas?
As I only receive the digest, please be sure to include my email address in your reply.
thanks in advance,
Max
Here is my target (see that I attempt to only compile the file specified by using
"<include name="${buffer}"/>):
<target name="compile1" depends="init">
<!-- Compile the java code from ${src} and place binaries in ${build}-->
<echo message="${buffer}"/>
<javac srcdir="${src}"
destdir="${build}/WEB-INF/classes"
debug="on">
<include name="${buffer}"/>
<classpath>
<pathelement location="${src}/WEB-INF/classes"/>
<fileset dir="${src}/WEB-INF/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
</target>
Here is the *compilation* buffer:
cd c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/
ant.bat -Dbuffer=c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/GetProperties.java
-emacs -find build.xml compile1
Searching for build.xml ...
Buildfile: c:\itsv3\build.xml
init:
compile1:
c:/itsv3/src/WEB-INF/classes/com/sas/itsv/ui/GetProperties.java
BUILD SUCCESSFUL
Total time: 1 second