Hi,

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
JAVA_HOME=C:\java

c:\devel>SET ANT_HOME
ANT_HOME=C:\apache\apache-ant-1.6.5\

c:\devel>SET PATH
Path=C:\apache\apache-ant-1.6.5\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sy
stem32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files \UltraEdit-32;c:\Program Files\Subversion\bin;c:\devel-tools\apache\maven-1.0.2\ bin;C:\Program Files\QuickTime\QTSystem\;c:\Program Files\MultiRes;C:\devel-tool
s\mysql\bin;c:\devel-tools\apache\maven-1.0.2\bin;c:\java\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

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.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  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
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
c:\devel>

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to