Bug report #77 has just been filed. You can view the report at the following URL:
<http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/77> REPORT #77 Details. Project: Ant Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: medium Severity: non-critical Confidence: public Environment: Release: ANT 1.1 JVM Release: SUN JDK 1.2.2 Operating System: MS NT 4.0 OS Release: SP6 Platform: DELL 750MHZ P3 Synopsis: Javac always compiles .java files Description: 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"> <tstamp/> <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 = " ${cfdir}/parser.jar; ${cfDir}/cfx.jar; ${cfDir}/fgmlib-1.8.jar; ${srcDrive}/jaf-1.0.1/activation.jar; ${srcDrive}/javamail-1.1.3/mail.jar; ${srcDrive}/xalan/samples/xalan.jar; ${srcDrive}/xalan/samples/bsf.jar; ${srcDrive}/xalan/samples/bsfengines.jar; ${srcDrive}/xalan/samples/xalanSamples.jar; ${srcDrive}/xerces-1_1_3/xerces.jar; ${srcDrive}/xerces-1_1_3/xercesSamples.jar; ${srcDrive}/jdk1.2.2/jre/lib/rt.jar; ${srcDrive}/Oracle/Ora81/jdbc/lib/classes12.zip" /> <filter token="version" value="1.0.0" /> <filter token="year" value="2000" /> </target> <target name="prepare" depends="init"> <mkdir dir="${buildDir}" /> </target> <target name="compile" depends="prepare"> <javac classpath= "${classpath}" srcdir="${srcDir}" destdir="${buildDir}" filtering="on"/> </target> <target name="dist" depends="compile"> <jar jarfile="${distDir}/parser.jar" basedir="${buildDir}" includes="com" /> </target> <target name="test1" depends="dist"> <java classpath= "${classpath}" classname ="com.fgm.xmlreg.parser.DebugParser" args="e:\anOverlayPackage.zip -submit" /> </target> <target name="test2" depends="dist"> <java classpath= "${classpath}" classname ="com.fgm.xmlreg.parser.DebugParser" args="e:\anOverlayPackage.zip -submit" /> </target> <target name="test3" depends="dist"> <java classpath= "${classpath}" classname ="com.fgm.xmlreg.parser.DebugParser" args="e:\anOverlayPackage.zip -submit" /> </target> <target name="test_all" depends="clean, test1, test2, test3"> </target> <target name="all" depends="clean, dist, docs"> </target> <target name="cleanDocs"> <deltree dir="${docDir}" /> <mkdir dir="${docDir}" /> </target> <target name="docs" depends="cleanDocs"> <javadoc packagenames = "com.fgm.xmlreg.*" sourcepath = "${rootDir}" destdir = "${docDir}" windowtitle = "XML Registry Parser" author = "true" version = "true" use = "true"> <link href="http://java.sun.com/jdk/1.2/docs/api/" /> <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" /> </javadoc> </target> <target name="clean" depends="init"> <delete file="${dist}/parser.jar" /> <deltree dir="${build}/com" /> </target> </project>Title: BugRat Report # 77
BugRat Report # 77
| Project: Ant | Release: ANT 1.1 |
| Category: Bug Report | SubCategory: New Bug Report |
| Class: swbug | State: received |
| Priority: medium | Severity: non-critical |
|
Confidence:
public
|
Submitter:
Randy Moore ( [EMAIL PROTECTED] )
Date Submitted:
Sep 7 2000, 07:36:25 CDT
Responsible:
Z_Ant Alias ( [EMAIL PROTECTED] )
- Synopsis:
- Javac always compiles .java files
- Environment: (jvm, os, osrel, platform)
- SUN JDK 1.2.2, MS NT 4.0, SP6, DELL 750MHZ P3
- Additional Environment Description:
- System classpath is identical to internal classpath.
- Report Description:
-
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:
- How To Reproduce:
- null
- Workaround:
- null
