ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #77 has been filed.
Date Thu, 07 Sep 2000 12:36:26 GMT
Bug report #77 has just been filed.

You can view the report at the following URL:


REPORT #77 Details.

Project: Ant
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: non-critical
Confidence: public
   Release: ANT 1.1
   JVM Release: SUN JDK 1.2.2
   Operating System: MS NT 4.0
   OS Release: SP6
   Platform: DELL 750MHZ P3

Javac always compiles .java files

I got the impression from the Ant user manual that the java files would only be compiled,
if the .java files were newer
than their corresponding .class files. In fact it appears that the files get compiled every
time. I am running on the same machine as the files, so there shouldn't be any clock synch
problems. Am I doing something wrong, or does Ant still have some bugs in it? 

Included is my build.xml file:

<project name="parser" default="compile" basedir=".">
  <target name="init">
    <property name = "srcDrive" value = "E:" />
    <property name = "jarDrive" value = "E:" />
    <property name = "buildDrive" value = "C:" />
    <property name = "cfDir" value = "${buildDrive}/Cfusion/Java/classes" />
    <property name = "srcDir" value = "${srcDrive}/disa_projects/com/fgm/xmlreg/parser"
    <property name = "rootDir" value = "${srcDrive}/disa_projects" />
    <property name = "docDir" value = "${rootDir}/docs" />
    <property name = "buildDir" value = "${buildDrive}/Cfusion/Java/classes" />
    <property name = "distDir" value = "${buildDrive}/Cfusion/Java/classes" />

    <property name = "classpath" value = "
        ${srcDrive}/Oracle/Ora81/jdbc/lib/" />

    <filter token="version" value="1.0.0" />
    <filter token="year" value="2000" />

  <target name="prepare" depends="init">
    <mkdir dir="${buildDir}" />

  <target name="compile" depends="prepare">
    <javac classpath= "${classpath}"

  <target name="dist" depends="compile">
    <jar jarfile="${distDir}/parser.jar"
     includes="com" />

  <target name="test1" depends="dist">
    <java classpath= "${classpath}"
          classname ="com.fgm.xmlreg.parser.DebugParser"
          args="e:\ -submit" />

  <target name="test2" depends="dist">
    <java classpath= "${classpath}"
          classname ="com.fgm.xmlreg.parser.DebugParser"
          args="e:\ -submit" />

  <target name="test3" depends="dist">
    <java classpath= "${classpath}"
          classname ="com.fgm.xmlreg.parser.DebugParser"
          args="e:\ -submit" />

  <target name="test_all" depends="clean, test1, test2, test3">

  <target name="all" depends="clean, dist, docs">

  <target name="cleanDocs">
    <deltree dir="${docDir}" />
    <mkdir dir="${docDir}" />

  <target name="docs" depends="cleanDocs">
        packagenames = "com.fgm.xmlreg.*"
        sourcepath = "${rootDir}"
        destdir = "${docDir}"
        windowtitle = "XML Registry Parser"
        author = "true"
        version = "true"
        use = "true">
      <link href="" />
      <link href="file:///e:/xalan/docs/apidocs" />
      <link href="file:///e:/xerces-1_1_3/docs/apiDocs" />
      <link href="file:///e:/javamail-1.1.3/docs/javadocs" />

  <target name="clean" depends="init">
    <delete file="${dist}/parser.jar" />
    <deltree dir="${build}/com" />


View raw message