I will send you excerpts from a system I wrote for a company that does
just that.

David Morris

>>> chad.cornelius@xxxxxxxxxxxxxxxxxxxx 09/01/04 12:31 PM >>>

One other item...  I will be sending the file to a Main Frame.


-----Original Message-----
From: David Morris [mailto:David.Morris@xxxxxxxxxxxxx] 
Sent: Wednesday, September 01, 2004 12:16 PM
To: java400-l@xxxxxxxxxxxx
Subject: Re: Using Ant within Java


You can call the main method in Ant or use the Ant launcher. The
biggest difference I have noticed is in the way classes are loaded. I
assume you are using Java, but if you are using RPG I can point you to
an example. There was/is? a bug in Ant's FTP task when talking to the
iSeries. I posted a patch a couple of years ago to the Commons list that
controls the Net project that Ant uses for FTP support. I am not sure
whether they ever applied it. Basically, Ant did not set the list used
for directories to the verbose mode on the iSeries, which caused it to
think the user was the file or something along those lines.

There are several alternatives to Ant for FTP in Java. If you skip Ant,
you will have much better access to messages, etc. You could use Jakarta
Commons Net directly or another one of several open source packages. I
have used five or six different Java FTP clients -- some free, some not
and they each have strengths and weaknesses. What are you trying to

David Morris

>>> chad.cornelius@xxxxxxxxxxxxxxxxxxxx 9/1/2004 10:56:51 AM >>>
Does anyone have some examples of how Ant can be used within a Java
I have created a build.xml file that will FTP specific files.  I would
to use ant within the program to call the build.xml file.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.