ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <tomcat-b...@cortexity.com>
Subject BugRat Report #291 has been filed.
Date Fri, 20 Oct 2000 22:00:59 GMT
Bug report #291 has just been filed.

You can view the report at the following URL:

   <http://znutar.cortexity.com:8888/BugRatViewer/ShowReport/291>

REPORT #291 Details.

Project: Ant
Category: Bug Report
SubCategory: New Bug Report
Class: swbug
State: received
Priority: medium
Severity: critical
Confidence: public
Environment: 
   Release: 1.2
   JVM Release: 1.2.2
   Operating System: Linux
   OS Release: 2.2.17-3mdk
   Platform: i386

Synopsis: 
The "java" task doesn't work.

Description:
I'm quoting three files.  The first is the build file, the
second is some output, and the third is the Java source for
the test class.  When run directly from the
command line, the class works, but Ant never finds the
class.

===== BEGIN test.xml
<project name="test" default="test" basedir=".">
        <target name="test">
                <java classname="Test">
                        <classpath path="."/>
                </java>
        </target>
</project>
===== END test.xml

In the next section, the lines beginning with "+" are the
commands executed on the command line, which are followed
by their output.

===== BEGIN output.txt
+ java -version
java version "1.2.2"
Classic VM (build 1.2.2-L, green threads, javacomp)
+ java -Dant.home=/usr/local/ant -cp /usr/lib/ant/lib/ant.jar:/usr/lib/ant/lib/parser.jar:/usr/lib/ant/lib/jaxp.jar
org.apache.tools.ant.Main -verbose -f test.xml
Buildfile: test.xml
Setting project property: ant.java.version -> 1.2
Detected Java Version: 1.2
Detected OS: Linux
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: compileTask     org.apache.tools.ant.taskdefs.CompileTask
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: exec     org.apache.tools.ant.taskdefs.Exec
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
 +User task: expand     org.apache.tools.ant.taskdefs.Expand
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: renameext     org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: keysubst     org.apache.tools.ant.taskdefs.KeySubst
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
Setting project property: ant.home -> /usr/local/ant
Setting project property: java.specification.name -> Java Platform API Specification
Setting project property: java.version -> 1.2.2
Setting project property: java.awt.graphicsenv -> sun.awt.X11GraphicsEnvironmentSetting
project property: user.timezone -> America/Los_Angeles
Setting project property: java.specification.version -> 1.2
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.vm.specification.version -> 1.0
Setting project property: user.home -> /home/ser
Setting project property: os.arch -> i386
Setting project property: java.awt.fonts ->
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: file.encoding.pkg -> sun.io
Setting project property: user.region -> US
Setting project property: java.home -> /xtra/jdk1.2.2/jre
Setting project property: java.class.path -> /usr/lib/ant/lib/ant.jar:/usr/lib/ant/lib/parser.jar:/usr/lib/ant/lib/jaxp.jar
Setting project property: line.separator ->
 
Setting project property: java.ext.dirs -> /xtra/jdk1.2.2/jre/lib/ext
Setting project property: java.io.tmpdir -> /tmp
Setting project property: os.name -> Linux
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: java.awt.printerjob -> sun.awt.motif.PSPrinterJob
Setting project property: java.library.path -> /xtra/jdk1.2.2/jre/lib/i386/green_threads:/xtra/jdk1.2.2/jre/lib/i386/classic:/xtra/jdk1.2.2/jre/lib/i386:/usr/lib:/lib
Setting project property: java.vm.specification.vendor -> Sun Microsystems Inc.
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: file.encoding -> ISO-8859-1
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: user.name -> ser
Setting project property: user.language -> en
Setting project property: java.vendor.url.bug -> http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: java.vm.name -> Classic VM
Setting project property: java.vm.specification.name -> Java Virtual Machine Specification
Setting project property: java.class.version -> 46.0
Setting project property: sun.boot.library.path -> /xtra/jdk1.2.2/jre/lib/i386
Setting project property: os.version -> 2.2.17-3mdk
Setting project property: java.vm.info -> build 1.2.2-L, green threads, javacompSetting
project property: java.vm.version -> 1.2.2
Setting project property: java.compiler -> javacomp
Setting project property: path.separator -> :
Setting project property: user.dir -> /home/ser/Work/Workflow
Setting project property: file.separator -> /
Setting project property: sun.boot.class.path -> /xtra/jdk1.2.2/jre/lib/rt.jar:/xtra/jdk1.2.2/jre/lib/i18n.jar:/xtra/jdk1.2.2/jre/classes
Setting ro project property: ant.file -> /home/ser/Work/Workflow/test.xml
Setting project property: basedir -> /home/ser/Work/Workflow
Project base dir set to: /home/ser/Work/Workflow
 +Target: test
   +Task: java
Build sequence for target `test' is [test]
Complete build sequence is [test]
     [java] Calling Test
     [java] Java args: []
 
BUILD FAILED
 
test.xml:3: Could not find Test. Make sure you have it in your classpath
 
Total time: 1 seconds
+ ls -l Test.class
-rw-rw-r--    1 ser      ser           419 Oct 20 13:44 Test.class
+ java -cp . Test
Hey there, World.
+ exit
===== END output.txt

Here's the source for Test.class

===== BEGIN Test.java
public class Test {
        public static final void main( String[] args ) {
                System.out.println("Hey there, World.");
        }
} 
===== END Test.java

Mime
View raw message