ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <duvelbier-tsm...@yahoo.com>
Subject Re: AW: Problems with optional tasks
Date Sun, 06 Nov 2005 14:56:43 GMT
How can I add the jsch (sshexec & scp) library without putting them into the ${ANT_HOME}/lib
... ?
It is OK on my local machine but I'd need the JSCH library on CruiseControle too and there
I
cannot add it to the shared environment for compatibility (obvious) reasons :(

\T,

--- Jan.Materne@rzf.fin-nrw.de wrote:

> Your output of java.class.path is
> 
>
/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-jdepend.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/ant/lib/ant.jar:/usr/local/ant/lib/ant-starteam.jar:/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/local/ant/lib/ant-jai.jar:/usr/local/ant/lib/ant-swing.jar:/usr/local/ant/lib/ant-weblogic.jar:/usr/local/ant/lib/ant-netrexx.jar:/usr/local/ant/lib/ant-xalan1.jar:/usr/local/ant/lib/ant-jsch.jar:/usr/local/ant/lib/ant-antlr.jar:/usr/local/ant/lib/ant-xslp.jar:/usr/local/ant/lib/ant-junit.jar:/usr/local/ant/lib/ant-vaj.jar:/usr/local/ant/lib/ant-apache-bcel.jar:/usr/local/ant/lib/ant-apache-bsf.jar:/usr/local/ant/lib/ant-apache-resolver.jar:/usr/local/ant/lib/ant-icontract.jar:/usr/local/ant/lib/ant-apache-oro.jar:/usr/local/ant/lib/ant-javamail.jar:/usr/local/ant/lib/ant-nodeps.jar:/usr/local/ant/lib/ant-commons-net.jar:/usr/local/ant/lib/ant-apache-log4j.jar:/usr/local/ant/lib/ant-jmf.jar:/usr/local/ant/lib/ant-apache-regexp.jar:/usr/
 local/an
t/lib/ant-commons-logging.jar:/usr/local/ant/lib/xml-apis.jar:/usr/local/ant/lib/xercesImpl.jar:/usr/local/j2sdk1.4.2_02/lib/tools.jar
> 
> 
> Searching for "sch" gives me only
> -  /usr/local/ant/lib/ant-jsch.jar
> That jar contains the <scp> task itself, but not the required external lib. So
you have to
> install that.
> 
> 
> Jan
> 
>  
> 
> >-----Urspr√ľngliche Nachricht-----
> >Von: Pete Cain [mailto:petec33@gmail.com] 
> >Gesendet: Dienstag, 20. September 2005 08:02
> >An: user@ant.apache.org
> >Betreff: Problems with optional tasks
> >
> >Hi,
> >
> >I've written an ant script that successfully uses scp.  
> >However I'm finding that script does not work on all the boxes 
> >I needed it to.
> >
> >I've successfully used the scp task with ant-1.6.2 installed 
> >from jpackage.org on 2 different machines (RH9 and FC3).
> >
> >However installing the binary version from the web site 
> >ant-1.6.5 setting ANT_HOME, JAVA_HOME and PATH accordingly 
> >always results in failure.  The error message states that it 
> >can't find the 'scp' task and list a bunch of things to check.
> >
> >Looking at the ant diagnostic output it lists the jsch jar but 
> >indicates that the scp task isn't available, this follows for 
> >other jars which are list with out associated tasks being present.
> >
> >I've been over the documentation tried copying the ant.conf 
> >and ant.d/ from jpackage installations, downgrading to 
> >ant-1.6.2 amongst a raft of other things and I have been 
> >unable get anywhere.
> >
> >Is anyone able to give me some idea on what might be going on here ?
> >
> >Thanks in advance
> >
> >Pete.
> >
> >
> ># ant -diagnostics
> >------- Ant diagnostics report -------
> >Apache Ant version 1.6.5 compiled on September 20 2005
> >
> >-------------------------------------------
> > Implementation Version (JDK1.2+ only)
> >-------------------------------------------
> >core tasks     : 1.6.5
> >optional tasks : 1.6.5
> >
> >-------------------------------------------
> > ANT_HOME/lib jar listing
> >-------------------------------------------
> >ant.home: /usr/local/ant
> >ant-jdepend.jar (473 bytes)
> >ant-trax.jar (66589 bytes)
> >ant.jar (1021517 bytes)
> >ant-starteam.jar (473 bytes)
> >ant-launcher.jar (9162 bytes)
> >ant-stylebook.jar (473 bytes)
> >ant-jai.jar (473 bytes)
> >ant-swing.jar (6726 bytes)
> >ant-weblogic.jar (473 bytes)
> >ant-netrexx.jar (473 bytes)
> >ant-xalan1.jar (473 bytes)
> >ant-jsch.jar (473 bytes)
> >ant-antlr.jar (473 bytes)
> >ant-xslp.jar (473 bytes)
> >ant-junit.jar (11614 bytes)
> >ant-vaj.jar (473 bytes)
> >ant-apache-bcel.jar (473 bytes)
> >ant-apache-bsf.jar (473 bytes)
> >ant-apache-resolver.jar (473 bytes)
> >ant-icontract.jar (473 bytes)
> >ant-apache-oro.jar (473 bytes)
> >ant-javamail.jar (473 bytes)
> >ant-nodeps.jar (417008 bytes)
> >ant-commons-net.jar (473 bytes)
> >ant-apache-log4j.jar (473 bytes)
> >ant-jmf.jar (6590 bytes)
> >ant-apache-regexp.jar (473 bytes)
> >ant-commons-logging.jar (473 bytes)
> >xml-apis.jar (124724 bytes)
> >xercesImpl.jar (1010675 bytes)
> >
> >-------------------------------------------
> > Tasks availability
> >-------------------------------------------
> >p4reopen : Not Available
> >image : Not Available
> >sshexec : Not Available
> >wlrun : Not Available
> >p4label : Not Available
> >p4revert : Not Available
> >icontract : Not Available
> >p4submit : Not Available
> >scp : Not Available
> >p4change : Not Available
> >p4delete : Not Available
> >p4integrate : Not Available
> >vajload : Not Available
> >rexec : Not Available
> >stlist : Not Available
> >telnet : Not Available
> >p4sync : Not Available
> >p4edit : Not Available
> >maudit : Not Available
> >antlr : Not Available
> >netrexxc : Not Available
> >ftp : Not Available
> >p4resolve : Not Available
> >starteam : Not Available
> >stylebook : Not Available
> >stlabel : Not Available
> >p4have : Not Available
> >jdepend : Not Available
> >script : Not Available
> >junit : Not Available
> >stcheckin : Not Available
> >vajexport : Not Available
> >stcheckout : Not Available
> >p4labelsync : Not Available
> >ejbc : Not Available
> >junitreport : Not Available
> >vajimport : Not Available
> >p4fstat : Not Available
> >wlstop : Not Available
> >p4counter : Not Available
> >scriptdef : Not Available
> >p4add : Not Available
> >ddcreator : Not Available
> >
> >-------------------------------------------
> > 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/local/ant/lib/xercesImpl.jar
> >
> >-------------------------------------------
> > System properties
> >-------------------------------------------
> >java.runtime.name : Java(TM) 2 Runtime Environment, Standard 
> >Edition sun.boot.library.path : /usr/local/j2sdk1.4.2_02/jre/lib/i386
> >java.vm.version : 1.4.2_02-b03
> >ant.library.dir : /usr/local/ant/lib
> >java.vm.vendor : Sun Microsystems Inc.
> >java.vendor.url : http://java.sun.com/
> >path.separator : :
> >java.vm.name : Java HotSpot(TM) Client VM file.encoding.pkg : 
> >sun.io user.country : US sun.os.patch.level : unknown 
> >java.vm.specification.name : Java Virtual Machine 
> >Specification user.dir : /var/tmp java.runtime.version : 
> >1.4.2_02-b03 java.awt.graphicsenv : 
> >sun.awt.X11GraphicsEnvironment java.endorsed.dirs : 
> >/usr/local/j2sdk1.4.2_02/jre/lib/endorsed
> >os.arch : i386
> >java.io.tmpdir : /tmp
> >line.separator :
> >
> >java.vm.specification.vendor : Sun Microsystems Inc.
> >os.name : Linux
> >ant.home : /usr/local/ant
> >sun.java2d.fontpath :
> >java.library.path :
> >/usr/local/j2sdk1.4.2_02/jre/lib/i386/client:/usr/local/j2sdk1.
> >4.2_02/jre/lib/i386:/usr/local/j2sdk1.4.2_02/jre/../lib/i386
> >java.specification.name : Java Platform API Specification 
> >java.class.version : 48.0 java.util.prefs.PreferencesFactory :
> >java.util.prefs.FileSystemPreferencesFactory
> >os.version : 2.2.20
> >user.home : /home/pete
> >user.timezone :
> >java.awt.printerjob : sun.print.PSPrinterJob file.encoding : 
> >ANSI_X3.4-1968 java.specification.version : 1.4 user.name : 
> >pete java.class.path :
> >/usr/local/ant/lib/ant-launcher.jar:/usr/local/ant/lib/ant-jdep
> >end.jar:/usr/local/ant/lib/ant-trax.jar:/usr/local/ant/lib/ant.
> >jar:/usr/local/ant/lib/ant-starteam.jar:/usr/local/ant/lib/ant-
> >launcher.jar:/usr/local/ant/lib/ant-stylebook.jar:/usr/local/an
> >t/lib/ant-jai.jar:/usr/local/ant/lib/ant-swing.jar:/usr/local/a
> >nt/lib/ant-weblogic.jar:/usr/local/ant/lib/ant-netrexx.jar:/usr
> >/local/ant/lib/ant-xalan1.jar:/usr/local/ant/lib/ant-jsch.jar:/
> >usr/local/ant/lib/ant-antlr.jar:/usr/local/ant/lib/ant-xslp.jar
> >:/usr/local/ant/lib/ant-junit.jar:/usr/local/ant/lib/ant-vaj.ja
> >r:/usr/local/ant/lib/ant-apache-bcel.jar:/usr/local/ant/lib/ant
> >-apache-bsf.jar:/usr/local/ant/lib/ant-apache-resolver.jar:/usr
> >/local/ant/lib/ant-icontract.jar:/usr/local/ant/lib/ant-apache-
> >oro.jar:/usr/local/ant/lib/ant-javamail.jar:/usr/local/ant/lib/
> >ant-nodeps.jar:/usr/local/ant/lib/ant-commons-net.jar:/usr/loca
> >l/ant/lib/ant-apache-log4j.jar:/usr/local/ant/lib/ant-jmf.jar:/
> >usr/local/ant/lib/ant-apache-regexp.jar:/usr/local/ant/lib/ant-
> >commons-logging.jar:/usr/local/ant/lib/xml-apis.jar:/usr/local/
> >ant/lib/xercesImpl.jar:/usr/local/j2sdk1.4.2_02/lib/tools.jar
> >java.vm.specification.version : 1.0
> >sun.arch.data.model : 32
> >java.home : /usr/local/j2sdk1.4.2_02/jre 
> >java.specification.vendor : Sun Microsystems Inc.
> >user.language : en
> >java.vm.info : mixed mode
> >java.version : 1.4.2_02
> >java.ext.dirs : /usr/local/j2sdk1.4.2_02/jre/lib/ext
> >sun.boot.class.path :
> >/usr/local/j2sdk1.4.2_02/jre/lib/rt.jar:/usr/local/j2sdk1.4.2_0
> >2/jre/lib/i18n.jar:/usr/local/j2sdk1.4.2_02/jre/lib/sunrsasign.
> >jar:/usr/local/j2sdk1.4.2_02/jre/lib/jsse.jar:/usr/local/j2sdk1
> >.4.2_02/jre/lib/jce.jar:/usr/local/j2sdk1.4.2_02/jre/lib/charse
> >ts.jar:/usr/local/j2sdk1.4.2_02/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 :
> >
> >---------------------------------------------------------------------
> >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
> 
> 


--
Any fool can write code that a computer can understand. 
Good programmers write code that humans can understand.
                                                   Martin Fowler 
T. : +32 (0)2 742 05 94
M. : +32 (0)497 44 68 12
@  : duvelbier-tsmets@yahoo.com
Do you skype too ... ?

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


Mime
View raw message