ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Caron <ca...@unidata.ucar.edu>
Subject Re: how to see java command line?
Date Mon, 29 Jul 2002 16:58:34 GMT


Dominique Devienne wrote:

> Look again. -verbose/-debug do show you the Java command line. BTW, Ant's
> version is mostly 1.4.1 or 1.5 these days. Never head of 3.7... --DD


sorry, im using 1.4.1 (confused myself with junit 3.7)

this is not showing the java command line of the <java> task that i am trying to 
excute (under windows 2K). i just wanted to be sure what classpath it was trying 
to use.

i also just installed and tested under 1.5. still does not show me the java 
command, but -debug does give better error messages, which shows me my likely 
problem:

   "dropping E:\dev\NCdataset\${build.classes} from path as it doesn't exist"

thanks for your help!

--------------------------------------------------------------
verbose output:

$ ant -verbose test
Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.0\jre
Detected OS: Windows 2000
parsing buildfile E:\dev\NCdataset\build.xml with URI = 
file:E:/dev/NCdataset/build.xml
Project base dir set to: E:\dev\NCdataset
Property ${build.classes} has not been set
Build sequence for target `test' is [prepare, compile, test]
Complete build sequence is [prepare, compile, test, jar, doc, release, clean, all]

prepare:

compile:

(snip irrelevent stuff)

test:
     [javac] test\nc2\dataset\TestRead.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestRead.class is up to date.
     [javac] test\nc2\dataset\TestAll.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestAll.class is up to date.
     [javac] test\nc2\dataset\TestOverride.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestOverride.class is up to date.
     [javac] test\nc2\dataset\TestReplace.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestReplace.class is up to date.
      [java] JVM args ignored when same JVM is used.
      [java] Running in same VM test.nc2.dataset.TestOverride

BUILD FAILED

E:\dev\NCdataset\build.xml:38: Could not find test.nc2.dataset.TestOverride. 
Make sure you have it in your classpath
         at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:128)
         at org.apache.tools.ant.taskdefs.Java.run(Java.java:305)
         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127)
         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88)
         at org.apache.tools.ant.Task.perform(Task.java:217)
         at org.apache.tools.ant.Target.execute(Target.java:184)
         at org.apache.tools.ant.Target.performTasks(Target.java:202)
         at org.apache.tools.ant.Project.executeTarget(Project.java:601)
         at org.apache.tools.ant.Project.executeTargets(Project.java:560)
         at org.apache.tools.ant.Main.runBuild(Main.java:454)
         at org.apache.tools.ant.Main.start(Main.java:153)
         at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 4 seconds
$

----------------------
-debug output:

(snip irrelevent stuff)

     [javac] ucar\nc2\dataset\DimensionDS.java omitted as 
E:\dev\NCdataset\build\classes\ucar\nc2\dataset\DimensionDS.class is up to date.
FileSet: Setup file scanner in dir N:\Java-DODS with patternSet{ includes: 
[ucar/nc2/*.java, ucar/ma2/*.java, ucar/nc2/dods/*.java, ucar/nc2
/dataset/*.java] excludes: [] }

test:
FileSet: Setup file scanner in dir N:\metapps with patternSet{ includes: 
[test/nc2/dataset/*.java] excludes: [] }
     [javac] test\nc2\dataset\TestRead.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestRead.class is up to date.
     [javac] test\nc2\dataset\TestAll.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestAll.class is up to date.
     [javac] test\nc2\dataset\TestOverride.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestOverride.class is up to date.
     [javac] test\nc2\dataset\TestReplace.java omitted as 
E:\dev\NCdataset\build\classes\test\nc2\dataset\TestReplace.class is up to date.
FileSet: Setup file scanner in dir N:\Java-DODS with patternSet{ includes: 
[test/nc2/dataset/*.java] excludes: [] }
      [java] JVM args ignored when same JVM is used.
      [java] Running in same VM test.nc2.dataset.TestOverride
force loading test.nc2.dataset.TestOverride
Finding class test.nc2.dataset.TestOverride

BUILD FAILED

E:\dev\NCdataset\build.xml:38: Could not find test.nc2.dataset.TestOverride. 
Make sure you have it in your classpath
         at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:128)
         at org.apache.tools.ant.taskdefs.Java.run(Java.java:305)
         at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:127)
         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:88)
         at org.apache.tools.ant.Task.perform(Task.java:217)
         at org.apache.tools.ant.Target.execute(Target.java:184)
         at org.apache.tools.ant.Target.performTasks(Target.java:202)
         at org.apache.tools.ant.Project.executeTarget(Project.java:601)
         at org.apache.tools.ant.Project.executeTargets(Project.java:560)
         at org.apache.tools.ant.Main.runBuild(Main.java:454)
         at org.apache.tools.ant.Main.start(Main.java:153)
         at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 7 seconds
$




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message