Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 57606 invoked by uid 500); 3 May 2001 23:06:47 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 57341 invoked from network); 3 May 2001 23:06:43 -0000 Message-ID: From: Aarti Chandnani To: "'ant-user@jakarta.apache.org'" Subject: RE: Only the init task executes Date: Thu, 3 May 2001 16:05:14 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0D425.833EBFE0" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C0D425.833EBFE0 Content-Type: text/plain; charset="iso-8859-1" look at your default: its INIT change it to compile! :-) -----Original Message----- From: J2EE User [mailto:coolxml@hotmail.com] Sent: Thursday, May 03, 2001 4:08 PM To: ant-user@jakarta.apache.org Subject: Only the init task executes Following is a simple build file: I have the src and classes directory set up. I have two java source files in the src directory. When I run ant only the init task executes. I get the following output D:\Projects\Junit>ant Searching for build.xml ... Buildfile: D:\Projects\Junit\build.xml init: BUILD SUCCESSFUL Total time: 0 seconds The compile task is not executed and I do not see any classes in the lib directory. I am using ant 1.3, JDK 1.3 on Win NT Any help greatly appreciated. Thanks J2EE User ------_=_NextPart_001_01C0D425.833EBFE0 Content-Type: text/html; charset="iso-8859-1" RE: Only the init task executes

look at your default:
its INIT
change it to compile! :-)

-----Original Message-----
From: J2EE User [mailto:coolxml@hotmail.com]
Sent: Thursday, May 03, 2001 4:08 PM
To: ant-user@jakarta.apache.org
Subject: Only the init task executes


Following is a simple build file:
<project name="Junit" default="init" basedir=".">

<target name="init">
  <tstamp/>
  <property name="sourceDir" value="src"/>
  <property name="outputDir" value="classes"/>
</target>

<target name="compile" depends="init">
  <echo message="Begining the comilation of the Java source files"/>
  <javac srcdir="${sourceDir}" destdir="${outputDir}">
   <include name="**/*.java"/>
   <classpath>
    <pathelement path="${classpath}"/>
    <fileset dir="c:\junit3.6">
    <include name="**/*.jar"/>
    </fileset>
   </classpath>
  </javac>
  <echo message="Finished the compilation........"/>

</target>

</project>

I have the src and classes directory set up. I have two java source files in
the src directory. When I run ant only the init task executes. I get the
following output

D:\Projects\Junit>ant
Searching for build.xml ...
Buildfile: D:\Projects\Junit\build.xml

init:

BUILD SUCCESSFUL

Total time: 0 seconds

The compile task is not executed and I do not see any classes in the lib
directory. I am using ant 1.3, JDK 1.3 on Win NT
Any help greatly appreciated.

Thanks
J2EE User

------_=_NextPart_001_01C0D425.833EBFE0--