ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lizann Epley <>
Subject Command Line options passed directly to java
Date Wed, 08 Mar 2006 16:52:32 GMT

I am working with Sun JDK 1.4.2_10, Ant 1.6.5 and Windows XP home. When 
I attempt to determine the version of Ant that my machine is using, I am 
getting the java -help message. The same thing happens when I try the 
-diagnostics command. According to the MANIFEST for the files that I am 
building, the Ant version is 1.5.3 - but I have not found any other 
version of Ant on my machine. Additionally, I have moved my Ant bin dir 
into the front of the PATH env var.

My goal is to build Jetspeed-2 source using maven 1.0.2. Maven then 
calls ant. From my maven.xml, I have access to the basedir property, but 
the ant.version property is returning NULL, thought it should be available.

Any thoughts?

Here are the stats and the output of ant -version; below is also the 
information from one of my MANIFEST.MF files:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

c:\devel>SET JAVA_HOME

c:\devel>SET ANT_HOME

c:\devel>SET PATH
stem32\Wbem;C:\Program Files\ATI Technologies\ATI Control 
Panel;C:\Program Files
bin;C:\Program Files\QuickTime\QTSystem\;c:\Program 

c:\devel>ant -version
Usage: java [-options] class [args...]
            (to execute a class)
    or  java [-options] -jar jarfile [args...]
            (to execute a jar file)

where options include:
     -client       to select the "client" VM
     -server       to select the "server" VM
     -hotspot      is a synonym for the "client" VM  [deprecated]
                   The default VM is client.

     -cp <class search path of directories and zip/jar files>
     -classpath <class search path of directories and zip/jar files>
                   A ; separated list of directories, JAR archives,
                   and ZIP archives to search for class files.
                   set a system property
                   enable verbose output
     -version      print product version and exit
                   require the specified version to run
     -showversion  print product version and continue
     -jre-restrict-search | -jre-no-restrict-search
                   include/exclude user private JREs in the version search
     -? -help      print this help message
     -X            print help on non-standard options
                   enable assertions
                   disable assertions
     -esa | -enablesystemassertions
                   enable system assertions
     -dsa | -disablesystemassertions
                   disable system assertions

And the MANIFEST.MF file for one of the jars created:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: Apache Maven
Built-By: Owner
Package: org.apache.jetspeed
Build-Jdk: 1.4.2_10
Extension-Name: maven-jetspeed2-plugin
Specification-Title: Portlet Development Plugin
Specification-Vendor: Apache Software Foundation
Implementation-Title: org.apache.jetspeed
Implementation-Vendor: Apache Software Foundation
Implementation-Version: 2.0

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message