Thank you very much for your suggestions.....I did
figure out what was wrong. It didn't have anything to do with my build.xml
code. What the problem was is that I didn't know from reading the manual
that you had to download the jakarta-ant-1.3optional.jar file. Without the
optional.jar file, netcomponents.jar won't work. Once I downloaded the
opt. file, everything worked fine.
Thanks again for the suggestions
everyone.
Curtis Krouse
-----Original Message-----
From: Atul Tiwary [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 2:55 PM
To: [EMAIL PROTECTED]
Subject: RE: FTP and socksified
From: Atul Tiwary [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 2:55 PM
To: [EMAIL PROTECTED]
Subject: RE: FTP and socksified
here
are some examples tha work for me.
<target name="ftpdist">
<ftp
remotedir="/export/home/cedera/ftpsrc"
server="192.168.1.103"
userid="root"
password="paloalto" >
<fileset dir="D:\export\home\cedera\dist"/>
</ftp>
</target>
<target
name="ftpsrc">
<ftp
remotedir="/export/home/cedera/ftpsrc"
server="192.168.1.103"
userid="root"
password="paloalto" >
<fileset dir="D:\src"/>
</ftp>
</target>
<ftp
remotedir="/export/home/cedera/ftpsrc"
server="192.168.1.103"
userid="root"
password="paloalto" >
<fileset dir="D:\src"/>
</ftp>
</target>
<target
name="ftpdb">
<ftp
remotedir="/export/home/cedera/ftpdb"
server="192.168.1.103"
userid="root"
password="paloalto" >
<fileset dir="D:\src\db"/>
</ftp>
</target>
<ftp
remotedir="/export/home/cedera/ftpdb"
server="192.168.1.103"
userid="root"
password="paloalto" >
<fileset dir="D:\src\db"/>
</ftp>
</target>
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: RE: FTP and socksifiedOk...I've figured out part of my problem was that I needed to use the taskdef function in order for ant to even think about using the netcomponents FTP class file. But, now I have a different problem which I'm not sure how to approach.When the FTP task starts, I get an error that says,"C:\ant.ARMS\Build\build.xml:26: Class com.oroinc.net.ftp.FTP doesn't support the "server" attributeMy build.xml file has this:<ftp server="xxx.xx.xxx.xxx"
remotedir="/home/weblogic"
userid="weblogic"
password="xxxxxxxx"><fileset dir="lib"/>
</ftp>If I leave the fileset element in the ftp task, I get an error that it won't support nested "fileset" element. With the fileset task defined at a higher level right after the project def I get the error that you see above. It acts like the netcomponents.jar file is completely the wrong set of class files to use, however, I followed the link from the Ant optional task/FTP section in the manual to obtain the netcomponents.jar file.Does anyone have any ideas?Curtis KrouseAgilent Technologies, Inc.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 8:52 AM
To: [EMAIL PROTECTED]
Subject: RE: FTP and socksifiedJP,I'm sorry if I wasn't clear in my message. I did try putting the netcomponents.jar file in the \lib directory in ANT_HOME, with no difference in the result. Any more suggestions?Thanks,Curtis Krouse-----Original Message-----
From: Jeff Post [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 4:37 PM
To: '[EMAIL PROTECTED]'
Subject: RE: FTP and socksifiedTry putting netcomponents.jar in the directory ANT_HOME\libJP-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 4:17 PM
To: [EMAIL PROTECTED]
Subject: FTP and socksifiedHi everyone,I am new to Ant. In fact, this is my first post to the user group.I have a build.xml file that I'm working on and one of the targets is a "deploy" target. I'm trying to FTP the jar file to a server that is outside our firewall. To do this manually I have to use socks, but it mentions nothing about this in the Ant manual. The build file gives me an error that is:C:\ant.XXX\Build\build.xml:26: Could not create task of type: ftp. Common solut
ions are to use taskdef to declare your task, or, if this is an optional task, t
o put the optional.jar in the lib directory of your ant installation (ANT_HOME).I've moved the netcomponents.jar file to the ANT_HOME directory with no joy. Does anyone know if the problem is not being able to socksify the FTP? Is there a way to socksify an FTP target in Ant? Am I missing some important concept here?Curtis KrouseAgilent Technologies, Inc.Spokane, WA