I have downloaded and installed the jakarta-ant-1.4.1 and set my 
environment variables for ANT_HOME and JAVA_HOME and added the ant bin 
directory to the path.  I am on win 2k.  When I enter "build" on a command 
line (build is a .bat file that contains "ant compile"), I get another 
command line with "ant compile" then I get the help for java command 
(Usage:  java[-options] class [args...]...) and the program ends.  The 
classes directory is not created and it is not deleted if I create it 
manually.  If I run the java command from the command line, the single java 
file I have in the directory compiles correctly.  If I take the @echo off 
out of the ant.bat file in the bin directory, the .bat file seems to run 
correctly until it gets to "org.apache.tools.ant.Main compile" and then I 
get the java help text.  The build.xml file I have is a cut and paste of 
one that is supposed to work correctly.  I tried the FAQ and the archives, 
but didn't see anything that applied directly to my problem.

I can not figure out where the problem lies.  Thanks in advance for any 
help that you can provide.

A copy of the build.xml file follows:

- <project name="HelloWorld" default="compile" basedir=".">

- <!--  set global properties for this build   -->
   <property name="src" value="." />
   <property name="classes" value="classes" />

- <!--  first lets make sure we clean any existing files   -->
- <target name="clean">
   <delete dir="${classes}" />
   </target>

- <!--  second, lets now recreate the classes directory   -->
- <target name="prepare" depends="clean">
   <mkdir dir="${classes}" />
   </target>

- <!--  third, finally we compile all java files starting with src 
directory   -->
- <target name="compile" depends="prepare">
- <javac srcdir="${src}" destdir="${classes}" failonerror="true">
   <include name="**/*.java" />
   </javac>
   </target>
   </project>



Dave Murvin
DRM Enterprises, Inc.
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to