ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Wickson <>
Subject Very basic newby problem?
Date Tue, 13 Sep 2005 12:34:30 GMT

I am attempting the run the following ant script:

<project name="MyProject" basedir=".">
simple example build file

<target name="compile" description="compile the source" >
<javac srcdir="common" destdir="common"/>

where common is a directory under the root directory (containing the 
build.xml file) that contains some java source files.

When I run the script with the debug option i get the following output:
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\Program Files\IBM\Java142\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5compiled on
June 2 2005
Setting ro project property: ant.file -> C:\testoutput\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\testoutput\build.xml with URI = 
Setting ro project property: <> -> 
Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> C:\testoutput\build.xml
Project base dir set to: C:\testoutput
+Target: compile
Attempting to create object of type
Adding reference: ant.executor

no attempt seems to compile the files and indeed no class files are created.

if i run the command javac common\*.java from the root directory it works 

I have the following env. variables set:
JAVA_HOME=C:\Program Files\IBM\Java142

I assume it must be something quite fundamental but the fact that i see 
javac run independently and Ant is invoked, I can't think what.

Any ideas would be greatly appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message