ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rinehart, Raleigh" <raleigh.rineh...@ti.com>
Subject RE: Optional tasks aren't available - why?
Date Wed, 25 Feb 2009 14:43:29 GMT


> -----Original Message-----
> From: Troy Telford [mailto:ttelford.groups@gmail.com]
> Sent: Tuesday, February 24, 2009 5:57 PM
> To: user@ant.apache.org
> Subject: Optional tasks aren't available - why?
> 
> I hope this is a quick question:  I'm trying to compile some java code
> that
> uses a few of the optional tasks in ant.
> 
> I thought when I had downloaded the ant binary distribution, it would
> include
> the optional tasks; however, I can't seem to get at them.  And the
> documentation is oddly silent - all kinds of things about how to use the
> tasks, but not a word about what to do when they can't be found...
> 
> Does anybody have some documentation I can read on what I need to do to
> fix
> ant so it can find the optional tasks?
> 
> Thanks.
> 
> 

 
Well what tasks are you looking for?  Is there a specific task that you're having trouble
with?  Many of the optional tasks require 3rd party jars.  This is noted in the Ant manual
for these tasks.
Example: Sshexec 
        Runs a command on a remote machine running SSH daemon.

        Note: This task depends on external libraries not included in the Ant distribution.
See Library Dependencies for more information. This task has been tested with jsch-0.1.29
and above and won't work with versions of jsch earlier than 0.1.28.


I use many of the optional tasks in my ant scripts even though I get " optional tasks : not
available" when running 'ant -diagnostics'

-raleigh




> 
> Here's what I get when I run 'ant -diagnostics'
> 
> ------- Ant diagnostics report -------
> Apache Ant version 1.7.1 compiled on June 27 2008
> 
> -------------------------------------------
>  Implementation Version
> -------------------------------------------
> core tasks     : 1.7.1
> optional tasks : not available
> 
> -------------------------------------------
>  ANT PROPERTIES
> -------------------------------------------
> ant.version: Apache Ant version 1.7.1 compiled on June 27 2008
> ant.java.version: 1.5
> ant.core.lib: /usr/share/java/ant-1.7.1.jar
> ant.home: /usr/share/ant
> 
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: /usr/share/ant
> ant-jai.jar (21348 bytes)
> ant-antlr.jar (5752 bytes)
> ant-starteam.jar (35355 bytes)
> ant-1.7.1.jar (1323005 bytes)
> ant-jdepend.jar (8132 bytes)
> ant-apache-oro.jar (39627 bytes)
> ant-trax.jar (6881 bytes)
> ant-apache-regexp.jar (3762 bytes)
> ant-jmf.jar (6593 bytes)
> ant-jsch.jar (30797 bytes)
> ant-apache-bsf.jar (3939 bytes)
> ant-netrexx.jar (9881 bytes)
> ant-swing.jar (6738 bytes)
> xercesImpl.jar (1223877 bytes)
> ant-apache-bcel.jar (8611 bytes)
> ant-stylebook.jar (2330 bytes)
> ant-javamail.jar (6998 bytes)
> ant-launcher-1.7.1.jar (12143 bytes)
> ant-junit.jar (93518 bytes)
> ant-commons-net.jar (47026 bytes)
> ant-commons-logging.jar (3910 bytes)
> ant-weblogic.jar (14205 bytes)
> ant-apache-log4j.jar (3056 bytes)
> ant.jar (1323005 bytes)
> xml-apis.jar (194354 bytes)
> ant-nodeps.jar (431580 bytes)
> ant-testutil.jar (14941 bytes)
> ant-launcher.jar (12143 bytes)
> ant-apache-resolver.jar (4071 bytes)
> 
> -------------------------------------------
>  USER_HOME/.ant/lib jar listing
> -------------------------------------------
> user.home: /afs/americas.sgi.com/users/ttelford
> No such directory.
> 
> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> <snip> - lots of output; not overly useful, I think
> A great deal is listed here, the error is always the same:  (the
> implementation class is not present)
> 
> A task being missing/unavailable should only matter if you are trying to
> use it
> 
> -------------------------------------------
>  org.apache.env.Which diagnostics
> -------------------------------------------
> Not available.
> Download it at http://xml.apache.org/commons/
> 
> -------------------------------------------
>  XML Parser information
> -------------------------------------------
> XML Parser : org.apache.xerces.jaxp.SAXParserImpl
> XML Parser Location: /usr/share/ant/lib/xercesImpl.jar
> Namespace-aware parser :
> org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
> Namespace-aware parser Location: /usr/share/ant/lib/xercesImpl.jar
> 
> -------------------------------------------
>  System properties
> -------------------------------------------
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path : /usr/java/jdk1.5.0_17/jre/lib/amd64
> java.vm.version : 1.5.0_17-b04
> ant.library.dir : /usr/share/ant/lib
> java.vm.vendor : Sun Microsystems Inc.
> java.vendor.url : http://java.sun.com/
> path.separator : :
> java.vm.name : Java HotSpot(TM) 64-Bit Server VM
> file.encoding.pkg : sun.io
> user.country : US
> sun.java.launcher : SUN_STANDARD
> sun.os.patch.level : unknown
> java.vm.specification.name : Java Virtual Machine Specification
> user.dir : /afs/americas.sgi.com/users/ttelford
> java.runtime.version : 1.5.0_17-b04
> java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
> java.endorsed.dirs : /usr/java/jdk1.5.0_17/jre/lib/endorsed
> os.arch : amd64
> java.io.tmpdir : /tmp
> line.separator :
> 
> java.vm.specification.vendor : Sun Microsystems Inc.
> os.name : Linux
> ant.home : /usr/share/ant
> sun.jnu.encoding : UTF-8
> java.library.path :
> /usr/java/jdk1.5.0_17/jre/lib/amd64/server:/usr/java/jdk1.5.0_17/jre/lib/a
> md64:/usr/java/jdk1.5.0_17/jre/../lib/amd64:/opt/cwx/java/lib/amd64:/opt/c
> wx/java/lib/amd64/server
> java.specification.name : Java Platform API Specification
> java.class.version : 49.0
> sun.management.compiler : HotSpot 64-Bit Server Compiler
> os.version : 2.6.16.46-0.12-default
> user.home : /afs/americas.sgi.com/users/ttelford
> user.timezone :
> java.awt.printerjob : sun.print.PSPrinterJob
> file.encoding : UTF-8
> java.specification.version : 1.5
> user.name : ttelford
> java.class.path :
> /usr/share/java/ant.jar:/usr/share/java/ant-
> launcher.jar:/usr/java/jdk1.5.0_17//lib/tools.jar:/usr/share/ant/lib/ant-
> jai.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-
> starteam.jar:/usr/share/ant/lib/ant-1.7.1.jar:/usr/share/ant/lib/ant-
> jdepend.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/ant-
> trax.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-
> jmf.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-apache-
> bsf.jar:/usr/share/ant/lib/ant-netrexx.jar:/usr/share/ant/lib/ant-
> swing.jar:/usr/share/ant/lib/xercesImpl.jar:/usr/share/ant/lib/ant-apache-
> bcel.jar:/usr/share/ant/lib/ant-stylebook.jar:/usr/share/ant/lib/ant-
> javamail.jar:/usr/share/ant/lib/ant-launcher-
> 1.7.1.jar:/usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-commons-
> net.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-
> weblogic.jar:/usr/share/ant/lib/ant-apache-
> log4j.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/xml-
> apis.jar:/usr/share
> /ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-
> testutil.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/ant/lib/ant-
> apache-resolver.jar
> java.vm.specification.version : 1.0
> sun.arch.data.model : 64
> java.home : /usr/java/jdk1.5.0_17/jre
> java.specification.vendor : Sun Microsystems Inc.
> user.language : en
> java.vm.info : mixed mode
> java.version : 1.5.0_17
> java.ext.dirs : /usr/java/jdk1.5.0_17/jre/lib/ext
> sun.boot.class.path :
> /usr/java/jdk1.5.0_17/jre/lib/rt.jar:/usr/java/jdk1.5.0_17/jre/lib/i18n.ja
> r:/usr/java/jdk1.5.0_17/jre/lib/sunrsasign.jar:/usr/java/jdk1.5.0_17/jre/l
> ib/jsse.jar:/usr/java/jdk1.5.0_17/jre/lib/jce.jar:/usr/java/jdk1.5.0_17/jr
> e/lib/charsets.jar:/usr/java/jdk1.5.0_17/jre/classes
> java.vendor : Sun Microsystems Inc.
> file.separator : /
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> sun.cpu.endian : little
> sun.io.unicode.encoding : UnicodeLittle
> sun.cpu.isalist :
> 
> -------------------------------------------
>  Temp dir
> -------------------------------------------
> Temp dir is /tmp
> Temp dir is writeable
> Temp dir alignment with system clock is -800 ms
> 
> -------------------------------------------
>  Locale information
> -------------------------------------------
> Timezone Mountain Standard Time offset=-25200000
> 
> -------------------------------------------
>  Proxy information
> -------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 


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


Mime
View raw message