Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 41965 invoked from network); 26 Sep 2002 05:32:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 26 Sep 2002 05:32:08 -0000 Received: (qmail 2313 invoked by uid 97); 26 Sep 2002 05:32:42 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 2171 invoked by uid 97); 26 Sep 2002 05:32:41 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 18044 invoked by uid 98); 25 Sep 2002 19:18:44 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <003f01c264c8$43adb6d0$0201a8c0@replikant> From: "Klara Ward" To: "Ant Users List" References: <000c01c2649d$aa4225a0$6b3016ac@breen> Subject: Re: using the ftp task in ant via java not working Date: Wed, 25 Sep 2002 21:18:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Well, obviuosly I had to set the classpath specifically java (with -classpath)..), ant looks at the CLASSPATH but java doesn't (right) How very smart of me.. Klara ----- Original Message ----- From: "Klara Ward" To: "Ant Users List" Sent: Wednesday, September 25, 2002 4:13 PM Subject: using the ftp task in ant via java not working I tried to run an ant script from java that uses the ftp task and I got: BuildException: file:k:/rockit/qa/AutomationFramework/tests/install/install.xml:16: Could not create task or type of type: ftp. when I use ant outside java with the same ant-file it works fine. I had to have NetComponents.jar in my CLASSPATH to get this to work, I tried putting in ANT_HOME/lib to get ant through java to work, but that didn't help. Do I have to set the CLASSPATH some other way when running it with java? I use ant1.5.1b Klara -- To unsubscribe, e-mail: For additional commands, e-mail: