You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Kreinick, Michael H." <mi...@gs.com> on 2004/06/02 00:39:29 UTC

Using Ant to build multitarget mixed C++/Java projects

I'm looking into various alternatives for building a set of products,
written in a mix of C++ and Java (with some JNI). The products need to build
under Windows, Solaris, and Linux using various compilers for each platform.
They also need to be built with different versions of their library
dependencies, then regression tested.

I know Ant does have C++ build tasks. What worries me is whether Ant,
designed with Java's build-once-run-everywhere model in mind, will work well
to build the same source 5 or 10 different times. I've never used Ant
before, and I haven't done as much reading as I perhaps should have, but it
seems ill-suited to this kind of problem. I get the impression that if I
hack hard enough I can make it happen, but that it won't be very clean
because of the Java philosophy Ant takes for granted.

I've looked for examples of this type of use on the Web and list with no
luck. It seems few people are trying to use Ant for C++ at all, and none
that I found are trying to do what I'm trying to do.

So: Is Ant C++ support mature enough that I should even be thinking about
using it for this? Has anyone out there tried the same kind of thing? Would
any experienced users like to offer a sketch of how they would go about it?
Will I be fighting the Ant project model all the way?

I'm also looking at sCons and boost.Jam for this. If anyone has other
suggestions, they'd be welcome.

-Michael

Re: Using Ant to build multitarget mixed C++/Java projects

Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
We solved this issue by importing the whole project from CVS  into our 
version control as any other our project and then added it into our 
build process. But usually it is enough just to check all third party 
dependencies in binary form into version control system to ensure 
reproducibility.

- Alexey.

Ben Pracht wrote:

> *  A downside to cpptasks is the releases.  I work for a large 
> company, and for audit purposes, and company policy, I can't run 
> production code off something in CVS.  I can't have the build 
> instructions say, "just get the latest version out of CVS at ..."   I 
> couldn't guarantee reproducibility.  Also, because I work for the same 
> large company, it's extremely difficult to donate labor to create a 
> later release of the product.  This is an issue because Cpptasks 
> hasn't had a formal release in a year or two.  I'm sure they're doing 
> great work, it's just that I can't take advantage of it.
> ...


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


Re: Using Ant to build multitarget mixed C++/Java projects

Posted by Ben Pracht <bp...@nc.rr.com>.
I've been using Ant with multitargeted C++/Java, including JNI
stuff for about 1.5 years now.  I have mixed feelings about the 
decision, here's why:

*  Cpptasks was hard to learn because the documentation was less than 
intuitive at that time.  Also, not as many people used it then.  I've
since figured out how it works a little more, though.
*  I hate to say it, but an Ant build does run slower, especially when 
you try to as many things as I've got ant doing:  building java code, 
running an Excelsior Java to native compiler, MS VC++ compilation or GCC 
compilation, zip/tarball packaging, Installshield packaging.  I also 
think it rebuilds more than it needs.
*  A nice thing about an Ant script is that it's a little harder to make 
complicated.  The last job I had required working with a complicated 
multipart make file using two platforms.  It became very, very cryptic, 
IMHO.
*  Another nice thing about Ant is the filename conversion issues.  It's 
nice to be able to use UNIX file conventions on Windows or vice versa. 
Yes, there's exceptions and caveats, but it does mostly work well.  Just 
remember that the Windows *.* should be replaced with *.  I've been 
bitten by that a few times.
*  A downside to cpptasks is the releases.  I work for a large company, 
and for audit purposes, and company policy, I can't run production code 
off something in CVS.  I can't have the build instructions say, "just 
get the latest version out of CVS at ..."   I couldn't guarantee 
reproducibility.  Also, because I work for the same large company, it's 
extremely difficult to donate labor to create a later release of the 
product.  This is an issue because Cpptasks hasn't had a formal release 
in a year or two.  I'm sure they're doing great work, it's just that I 
can't take advantage of it.
*  Another downside to Cpptasks, again using the latest official 
release, is that I couldn't switch GCC compilers as easily.  There is no 
apparent way to specify a compiler version in the build.xml file.  The 
path needs to be set ahead of time.
*  Cpptasks did make porting the code a little easier.  I didn't have to 
figure out the GNU GCC options, as much.  They seemed to know which 
libraries were important.

Like other posters, I've used other make's before.  Usually they create 
hard to diagnose, and stupid errors because the make didn't like not 
having a tab, or the line continuation character wasn't the very last 
thing on the line.  They can be very hard to track down.  Ant seems to 
resolve that issue with the XML based build.  One drawback is that you 
can't nest comments within comments, which I've wanted to do about a 
hundred times, it seems.

Until recently, I had my code on one machine and did a Samba link to 
share the code.  That is, until someone pointed out that there are code 
page differences between the two machines.  My solution:  extract the 
source out of your library system to each machine.  Don't try to share 
it with Samba.  When I was sharing, I also had compilation errors 
because GCC didn't like the Windows newline character sequence, nor did 
it like the occaisional EOF marker that some people put in for some 
reason.  I can't resist saying how irritating it is that GNU refuses to 
add an option to handle these things.

You may also notice strange things regarding platform names.  On Linux, 
the OS name is something like redhat-2.4.18-04debug, for me.  On Windows 
it's Windows 2000, or something like that.  You may want to find a way 
to remove the space.  Also, the same Intel architecture is called x86 on 
Windows, and i386 on Linux.  I don't know why, but it's easy to ignore.

One downside to Ant, is that things don't work as you might expect them 
to.  For example, the tar task does not preserve permission bits, so I 
was forced to use the exec task.  It also doesn't handle symlinks very 
well.  I think these things are known, but can't be easily resolved 
because of the underlying JRE.

I would recommend Ant, Antcontrib.  However, for people whom 
reproducability is an issue, I would not recommend Cpptasks.  Yes, it 
can simplify things, but the lack of a formal release is a serious 
drawback IMHO.  I suggest using the exec/apply task for doing C and C++ 
compilation, so that you have control over how it works.

Regards,
Ben Pracht

Kreinick, Michael H. wrote:

> I'm looking into various alternatives for building a set of products,
> written in a mix of C++ and Java (with some JNI). The products need to build
> under Windows, Solaris, and Linux using various compilers for each platform.
> They also need to be built with different versions of their library
> dependencies, then regression tested.
> 
> I know Ant does have C++ build tasks. What worries me is whether Ant,
> designed with Java's build-once-run-everywhere model in mind, will work well
> to build the same source 5 or 10 different times. I've never used Ant
> before, and I haven't done as much reading as I perhaps should have, but it
> seems ill-suited to this kind of problem. I get the impression that if I
> hack hard enough I can make it happen, but that it won't be very clean
> because of the Java philosophy Ant takes for granted.
> 
> I've looked for examples of this type of use on the Web and list with no
> luck. It seems few people are trying to use Ant for C++ at all, and none
> that I found are trying to do what I'm trying to do.
> 
> So: Is Ant C++ support mature enough that I should even be thinking about
> using it for this? Has anyone out there tried the same kind of thing? Would
> any experienced users like to offer a sketch of how they would go about it?
> Will I be fighting the Ant project model all the way?
> 
> I'm also looking at sCons and boost.Jam for this. If anyone has other
> suggestions, they'd be welcome.
> 
> -Michael
> 


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


Re: FTP Issue

Posted by Steve Cohen <sc...@javactivity.org>.
How about commons-net-1.2.1 and ant 1.6.1?  I don't THINK commons-net is the 
problem, but you might as well check.
On Monday 14 June 2004 3:59 pm, Antoine Lévy-Lambert wrote:
> Hi Alan,
>
> I have simulated your case by using the Gnu Inetutils ftp server of cygwin.
>
> <project name="buildftp">
>   <ftp action="get" server="localhost" remotedir="/cygdrive/c/dev/testant"
> userid="******" password="*****" verbose="yes">
>          <fileset dir="c:/temp">
>             <include name="xmlvalidate/dictionary.xsd"/>
>          </fileset>
>       </ftp>
> </project>
>
> with ant 1.6.1, commons-net 1.0.0 and jakarta-oro-2.0.5, I get this
> ftping on a Windows client against a Linux client  to work :
>
> C:\dev\testant>ant -f buildftp.xml
> Buildfile: buildftp.xml
>       [ftp] getting files
>       [ftp] transferring xmlvalidate\dictionary.xsd to
> C:\temp\xmlvalidate\dicti
> onary.xsd
>       [ftp] 1 files retrieved
>
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
> with commons-net-1.2.1, ant 1.6.0 and jakarta-oro-2.0.5, the ftp does
> not work.
>
> C:\dev\testant>ant -f buildftp.xml
> Buildfile: buildftp.xml
>       [ftp] getting files
>       [ftp] 0 files retrieved
>
> BUILD SUCCESSFUL
> Total time: 2 seconds
>
> There is definitely a bug. I did change the ant ftp task implementation
> between ant 1.5.4 and ant 1.6.0 to speed up download
> when users have indicated specific include patterns (like you). It looks
> like in some cases it does not work. :-(
>
> Cheers,
>
> Antoine
>
> >On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
> >>Here is some additional information. This became a problem when I
> >> upgraded to version 1.6.1
> >>
> >>
> >>Here is the segment, i am talking about
> >>#############
> >>      <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
> >>userid="build" password="*******" verbose="yes">
> >>         <fileset dir="${dest}">
> >>            <include name="backup/backup.tar.gz"/>
> >>         </fileset>
> >>      </ftp>
> >>#############
> >>
> >>getCVSBackup:
> >>      [ftp] Opening FTP connection to 10.254.202.5
> >>      [ftp] connected
> >>      [ftp] logging in to FTP server
> >>      [ftp] login succeeded
> >>      [ftp] changing the remote directory
> >>      [ftp] getting files
> >>      [ftp] 0 files retrieved
> >>      [ftp] disconnecting
> >
> >C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
> >
> >>1 .jar
> >
> >;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar
>
> ---------------------------------------------------------------------
> 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


Re: FTP Issue

Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Hi Alan,

I have simulated your case by using the Gnu Inetutils ftp server of cygwin.

<project name="buildftp">
  <ftp action="get" server="localhost" remotedir="/cygdrive/c/dev/testant"
userid="******" password="*****" verbose="yes">
         <fileset dir="c:/temp">
            <include name="xmlvalidate/dictionary.xsd"/>
         </fileset>
      </ftp>
</project>

with ant 1.6.1, commons-net 1.0.0 and jakarta-oro-2.0.5, I get this 
ftping on a Windows client against a Linux client  to work :

C:\dev\testant>ant -f buildftp.xml
Buildfile: buildftp.xml
      [ftp] getting files
      [ftp] transferring xmlvalidate\dictionary.xsd to 
C:\temp\xmlvalidate\dicti
onary.xsd
      [ftp] 1 files retrieved

BUILD SUCCESSFUL
Total time: 2 seconds

with commons-net-1.2.1, ant 1.6.0 and jakarta-oro-2.0.5, the ftp does 
not work.

C:\dev\testant>ant -f buildftp.xml
Buildfile: buildftp.xml
      [ftp] getting files
      [ftp] 0 files retrieved

BUILD SUCCESSFUL
Total time: 2 seconds

There is definitely a bug. I did change the ant ftp task implementation 
between ant 1.5.4 and ant 1.6.0 to speed up download
when users have indicated specific include patterns (like you). It looks 
like in some cases it does not work. :-(

Cheers,

Antoine



>On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
>  
>
>>Here is some additional information. This became a problem when I upgraded
>>to version 1.6.1
>>
>>
>>Here is the segment, i am talking about
>>#############
>>      <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
>>userid="build" password="*******" verbose="yes">
>>         <fileset dir="${dest}">
>>            <include name="backup/backup.tar.gz"/>
>>         </fileset>
>>      </ftp>
>>#############
>>
>>getCVSBackup:
>>      [ftp] Opening FTP connection to 10.254.202.5
>>      [ftp] connected
>>      [ftp] logging in to FTP server
>>      [ftp] login succeeded
>>      [ftp] changing the remote directory
>>      [ftp] getting files
>>      [ftp] 0 files retrieved
>>      [ftp] disconnecting
>>
>>
>>    
>>
>>
>>    
>>
>C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
>  
>
>>1 .jar
>>
>>    
>>
>;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar
>



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


RE: FTP Issue

Posted by Alan Zall <al...@xcipio.com>.
Tried bot of your options with debug turned on


Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: c:\java\j2sdk1.4.1_02\jre
Detected OS: Windows 2000
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.1
compiled on February 12 2004
Setting ro project property: ant.file -> F:\backinup\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile F:\backinup\build.xml with URI =
file:///F:/backinup/build.xml
Setting ro project property: ant.project.name -> MyProject
Adding reference: MyProject
Setting ro project property: ant.file.MyProject -> F:\backinup\build.xml
Project base dir set to: F:\backinup
 +Target:
 +Target: init
 +Target: init.cvs
 +Target: getCVSBackup
 +Target: getCVSFiles
 +Target: zipCVSFiles
 +Target: getAndZipCVSFiles
 +Target: backuptest
 +Target: backup
 +Target: help
 +Target: clean.cvs
 +Target: clean
Setting project property: root ->
Setting project property: backup -> f:\backinup
Setting project property: dest -> f:\backinup\dest
Setting project property: source -> f:\backinup\dest\source
Setting project property: cvsServer -> 10.254.202.5
Setting project property: CD-Dir -> m:\source
Setting project property: backupFTPServer -> www.xcipio.com
Setting project property: backupFTPUser -> inskey
Setting project property: backupFTPpassword -> mm8dsrM
Build sequence for target `backup' is [clean.cvs, clean, init, init.cvs,
getCVSBackup, getCVSFiles, zipCVSFiles, getAndZipCVSFiles, backup]
Complete build sequence is [clean.cvs, clean, init, init.cvs, getCVSBackup,
getCVSFiles, zipCVSFiles, getAndZipCVSFiles, backup, backuptest, help, ]

clean.cvs:
   [delete] Deleting directory F:\backinup\dest\source
   [delete] Deleting directory F:\backinup\dest\source
    [mkdir] Created dir: F:\backinup\dest\source

clean:

init:
Setting project property: DSTAMP -> 20040603
Setting project property: TSTAMP -> 1120
Setting project property: TODAY -> June 3 2004
Setting project property: cvsBackupFile -> f:\backinup\dest\backup.tar.gz
Setting project property: cvsSourceFile ->
f:\backinup\dest\source-20040603.zip

init.cvs:
     [echo] Running init.cvs.
Setting project property: cvs.cvsroot ->
:pserver:build@linux01:/usr/local/cvsroot
Setting project property: cvs.localpath -> f:\backinup\dest\source
Setting project property: cvs.localroot ->
Setting project property: cvs.quiet -> true
Setting project property: cvs.command -> -Q checkout

getCVSBackup:
      [ftp] Opening FTP connection to 10.254.202.5
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] getting files
Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion
Could not load a dependent class (com/starbase/starteam/Item) for type
stlist
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/TestListener) for type
junit
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
fileset: Setup scanner in dir F:\backinup\dest\backup with patternSet{
includes: [] excludes: [] }
      [ftp] 0 files retrieved
      [ftp] disconnecting
      [ftp] Opening FTP connection to 10.254.202.5
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] getting files
fileset: Setup scanner in dir F:\backinup\dest\backup with patternSet{
includes: [backup.tar.gz] excludes: [] }
      [ftp] 0 files retrieved
      [ftp] disconnecting


-----Original Message-----
From: Steve Cohen [mailto:scohen@javactivity.org]
Sent: Thursday, June 03, 2004 9:22 AM
To: Ant Users List
Subject: Re: FTP Issue


I suspect that your problem is somewhere in your script rather than on the
commons-net side.

Are you able, using Ant and the <ftp> task in some other context, to upload
any files from this server?  I suspect you would be able to retrieve files.

The following suggestions are purely for experimental purposes, to pin down
the problem.

Try running your script with -debug and see if that provides any useful
information.

Or try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup">
             <include name="backup.tar.gz"/>
          </fileset>
</ftp>

Also, since backup.tar.gz appears to be the only file in this directory and
there are no subdirectories, you could also, for experimentation purposes,
try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup"/>
</ftp>





On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
> Here is some additional information. This became a problem when I upgraded
> to version 1.6.1
>
>
> Here is the segment, i am talking about
> #############
>       <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
> userid="build" password="*******" verbose="yes">
>          <fileset dir="${dest}">
>             <include name="backup/backup.tar.gz"/>
>          </fileset>
>       </ftp>
> #############
>
> getCVSBackup:
>       [ftp] Opening FTP connection to 10.254.202.5
>       [ftp] connected
>       [ftp] logging in to FTP server
>       [ftp] login succeeded
>       [ftp] changing the remote directory
>       [ftp] getting files
>       [ftp] 0 files retrieved
>       [ftp] disconnecting
>
>
> ###############
> Here is a copy of an ftp session where the file is....
> N:\backinup\dest\backup>ftp 10.254.202.5
> Connected to 10.254.202.5.
> 220 linux01.localdomain FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50
> EDT 2
> 000) ready.
> User (10.254.202.5:(none)): build
> 331 Password required for build.
> Password:
> 230 User build logged in.
> ftp> pwd
> 257 "/home/build" is current directory.
> ftp> ls backup/backup.tar.gz
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> backup/backup.tar.gz
> 226 Transfer complete.
> ftp: 22 bytes received in 0.00Seconds 22000.00Kbytes/sec.
>
> #################
>
> and here is the diagnostics dump
> ############
> Apache Ant version 1.6.1 compiled on February 12 2004
> ------- Ant diagnostics report -------
> Apache Ant version 1.6.1 compiled on February 12 2004
>
> -------------------------------------------
>  Implementation Version (JDK1.2+ only)
> -------------------------------------------
> core tasks     : 1.6.1
> optional tasks : 1.6.1
>
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: c:\java\apache-ant-1.6.1
> ant-antlr.jar (5650 bytes)
> ant-apache-bsf.jar (12483 bytes)
> ant-apache-resolver.jar (4079 bytes)
> ant-commons-logging.jar (3845 bytes)
> ant-commons-net.jar (34888 bytes)
> ant-icontract.jar (9667 bytes)
> ant-jai.jar (21505 bytes)
> ant-jakarta-bcel.jar (8625 bytes)
> ant-jakarta-log4j.jar (3025 bytes)
> ant-jakarta-oro.jar (48101 bytes)
> ant-jakarta-regexp.jar (3708 bytes)
> ant-javamail.jar (6737 bytes)
> ant-jdepend.jar (7969 bytes)
> ant-jmf.jar (6609 bytes)
> ant-jsch.jar (21397 bytes)
> ant-junit.jar (67280 bytes)
> ant-launcher.jar (8412 bytes)
> ant-netrexx.jar (9898 bytes)
> ant-nodeps.jar (406788 bytes)
> ant-starteam.jar (35511 bytes)
> ant-stylebook.jar (2314 bytes)
> ant-swing.jar (6822 bytes)
> ant-trax.jar (66977 bytes)
> ant-vaj.jar (48313 bytes)
> ant-weblogic.jar (14410 bytes)
> ant-xalan1.jar (3932 bytes)
> ant-xalan2.jar (2489 bytes)
> ant-xslp.jar (2236 bytes)
> ant.jar (958858 bytes)
> xercesImpl.jar (959247 bytes)
> xml-apis.jar (124724 bytes)
> commons-net-1.2.1.jar (153264 bytes)
> jakarta-oro-2.0.8.jar (65261 bytes)
>
> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
> sshexec : Missing dependency com.jcraft.jsch.UserInfo
> scp : Missing dependency com.jcraft.jsch.UserInfo
> cvsversion : Not Available
> stlist : Missing dependency com.starbase.starteam.Item
> jdepend : Missing dependency jdepend.xmlui.JDepend
> junit : Missing dependency junit.framework.TestListener
> stcheckin : Missing dependency com.starbase.starteam.Item
> stcheckout : Missing dependency com.starbase.starteam.Item
>
> -------------------------------------------
>  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: C:\java\apache-ant-1.6.1\lib\xercesImpl.jar
>
> -------------------------------------------
>  System properties
> -------------------------------------------
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path : c:\java\j2sdk1.4.1_02\jre\bin
> java.vm.version : 1.4.1_02-b06
> ant.library.dir : C:\java\apache-ant-1.6.1\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 : Service Pack 4
> java.vm.specification.name : Java Virtual Machine Specification
> user.dir : F:\backinup
> java.runtime.version : 1.4.1_02-b06
> java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs : c:\java\j2sdk1.4.1_02\jre\lib\endorsed
> os.arch : x86
> java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
> line.separator :
>
> java.vm.specification.vendor : Sun Microsystems Inc.
> user.variant :
> os.name : Windows 2000
> ant.home : c:\java\apache-ant-1.6.1
> sun.java2d.fontpath :
> java.library.path :
> c:\java\j2sdk1.4.1_02\bin;.;C:\WINNT\system32;C:\WINNT;C:\WI
>
NNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\apache-ant-1.6.1\bin;C
>: \Pro
> gram Files\GNU\WinCvs 1.2;"C:\Program Files\Symantec\Norton Ghost 2003\"
> java.specification.name : Java Platform API Specification
> java.class.version : 48.0
> java.util.prefs.PreferencesFactory :
> java.util.prefs.WindowsPreferencesFactory
> os.version : 5.0
> user.home : C:\Documents and Settings\Administrator
> user.timezone : America/New_York
> java.awt.printerjob : sun.awt.windows.WPrinterJob
> file.encoding : Cp1252
> java.specification.version : 1.4
> java.class.path :
> c:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apache-a
>
nt-1.6.1\lib\ant-antlr.jar;C:\java\apache-ant-1.6.1\lib\ant-apache-bsf.jar;
>C
>
> :\ja
>
>
va\apache-ant-1.6.1\lib\ant-apache-resolver.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -commons-logging.jar;C:\java\apache-ant-1.6.1\lib\ant-commons-net.jar;C:\j
a
>v a\ap
>
ache-ant-1.6.1\lib\ant-icontract.jar;C:\java\apache-ant-1.6.1\lib\ant-jai.j
>a r;C:
>
\java\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -jakarta-log4j.jar;C:\java\apache-ant-1.6.1\lib\ant-jakarta-oro.jar;C:\jav
a
>\ apac
>
he-ant-1.6.1\lib\ant-jakarta-regexp.jar;C:\java\apache-ant-1.6.1\lib\ant-ja
>v amai
>
l.jar;C:\java\apache-ant-1.6.1\lib\ant-jdepend.jar;C:\java\apache-ant-1.6.1
>\ lib\
>
ant-jmf.jar;C:\java\apache-ant-1.6.1\lib\ant-jsch.jar;C:\java\apache-ant-1.
>6 .1\l
>
ib\ant-junit.jar;C:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apac
>h e-an
>
t-1.6.1\lib\ant-netrexx.jar;C:\java\apache-ant-1.6.1\lib\ant-nodeps.jar;C:\
>j ava\
>
apache-ant-1.6.1\lib\ant-starteam.jar;C:\java\apache-ant-1.6.1\lib\ant-styl
>e book
>
.jar;C:\java\apache-ant-1.6.1\lib\ant-swing.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -trax.jar;C:\java\apache-ant-1.6.1\lib\ant-vaj.jar;C:\java\apache-ant-1.6.
1
>\ lib\
>
ant-weblogic.jar;C:\java\apache-ant-1.6.1\lib\ant-xalan1.jar;C:\java\apache
>- ant-
>
1.6.1\lib\ant-xalan2.jar;C:\java\apache-ant-1.6.1\lib\ant-xslp.jar;C:\java\
>a pach
>
e-ant-1.6.1\lib\ant.jar;C:\java\apache-ant-1.6.1\lib\xercesImpl.jar;C:\java
>\ apac
>
he-ant-1.6.1\lib\xml-apis.jar;C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
>1 .jar
>
;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar;c:\java\j2sdk1.4.1_02\l
>i b\to
> ols.jar
> user.name : Administrator
> java.vm.specification.version : 1.0
> java.home : c:\java\j2sdk1.4.1_02\jre
> sun.arch.data.model : 32
> user.language : en
> java.specification.vendor : Sun Microsystems Inc.
> awt.toolkit : sun.awt.windows.WToolkit
> java.vm.info : mixed mode
> java.version : 1.4.1_02
> java.ext.dirs : c:\java\j2sdk1.4.1_02\jre\lib\ext
> sun.boot.class.path :
> c:\java\j2sdk1.4.1_02\jre\lib\rt.jar;c:\java\j2sdk1.4.1_02
>
\jre\lib\i18n.jar;c:\java\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;c:\java\j2sd
>k 1.4.
>
1_02\jre\lib\jsse.jar;c:\java\j2sdk1.4.1_02\jre\lib\jce.jar;c:\java\j2sdk1.
>4 .1_0
> 2\jre\lib\charsets.jar;c:\java\j2sdk1.4.1_02\jre\classes
> java.vendor : Sun Microsystems Inc.
> file.separator : \
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> sun.io.unicode.encoding : UnicodeLittle
> sun.cpu.endian : little
> sun.cpu.isalist : pentium i486 i386
> #####################################################################
> -----Original Message-----
> From: Steve Cohen [mailto:scohen@javactivity.org]
> Sent: Wednesday, June 02, 2004 12:41 PM
> To: Ant Users List
> Subject: Re: FTP Issue
>
>
> Please send your ant script or the relevant portion.  Also what version of
> jakarta-commons/net is on your classpath, what version of Linux.  I can't
> offhand think of a reason why this should not work.  I tried inserting
your
> backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in
> commons-net and there's no problem there.
>
> On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> > I have an ant script that pulls content from a linux box, combines it
> > with local Windows files, and pushes the combination to a Windows FTP
> > server.
> >
> > The Windows FTP work is working fine. However, the linux server is not
> > playing nice with the updated version of ant. Here is the listing from
> > the Linux box which returns nothing in Ant.
> >
> > ftp> ls -al
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for /bin/ls.
> > total 87152
> > drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> > drwx------    5 build    build        4096 Mar 27  2001 ..
> > -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> > 226 Transfer complete.
> > ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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



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


RE: FTP Issue

Posted by Alan Zall <al...@xcipio.com>.
When I ran with debug, I get the following:
getCVSBackup:
      [ftp] Opening FTP connection to 10.254.202.5
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] getting files
Could not load a dependent class
(com/sun/media/jai/codec/FileSeekableStream) for type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for
type cvsversion
Could not load a dependent class (com/starbase/starteam/Item) for type
stlist
Could not load a dependent class (jdepend/xmlui/JDepend) for type jdepend
Could not load a dependent class (junit/framework/TestListener) for type
junit
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckin
Could not load a dependent class (com/starbase/starteam/Item) for type
stcheckout
fileset: Setup scanner in dir F:\backinup\dest\backup with patternSet{
includes: [echo.txt] excludes: [] }
      [ftp] 0 files retrieved
      [ftp] disconnecting



Any thoughts?


-----Original Message-----
From: Steve Cohen [mailto:scohen@javactivity.org]
Sent: Thursday, June 03, 2004 9:22 AM
To: Ant Users List
Subject: Re: FTP Issue


I suspect that your problem is somewhere in your script rather than on the
commons-net side.

Are you able, using Ant and the <ftp> task in some other context, to upload
any files from this server?  I suspect you would be able to retrieve files.

The following suggestions are purely for experimental purposes, to pin down
the problem.

Try running your script with -debug and see if that provides any useful
information.

Or try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup">
             <include name="backup.tar.gz"/>
          </fileset>
</ftp>

Also, since backup.tar.gz appears to be the only file in this directory and
there are no subdirectories, you could also, for experimentation purposes,
try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup"/>
</ftp>





On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
> Here is some additional information. This became a problem when I upgraded
> to version 1.6.1
>
>
> Here is the segment, i am talking about
> #############
>       <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
> userid="build" password="*******" verbose="yes">
>          <fileset dir="${dest}">
>             <include name="backup/backup.tar.gz"/>
>          </fileset>
>       </ftp>
> #############
>
> getCVSBackup:
>       [ftp] Opening FTP connection to 10.254.202.5
>       [ftp] connected
>       [ftp] logging in to FTP server
>       [ftp] login succeeded
>       [ftp] changing the remote directory
>       [ftp] getting files
>       [ftp] 0 files retrieved
>       [ftp] disconnecting
>
>
> ###############
> Here is a copy of an ftp session where the file is....
> N:\backinup\dest\backup>ftp 10.254.202.5
> Connected to 10.254.202.5.
> 220 linux01.localdomain FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50
> EDT 2
> 000) ready.
> User (10.254.202.5:(none)): build
> 331 Password required for build.
> Password:
> 230 User build logged in.
> ftp> pwd
> 257 "/home/build" is current directory.
> ftp> ls backup/backup.tar.gz
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> backup/backup.tar.gz
> 226 Transfer complete.
> ftp: 22 bytes received in 0.00Seconds 22000.00Kbytes/sec.
>
> #################
>
> and here is the diagnostics dump
> ############
> Apache Ant version 1.6.1 compiled on February 12 2004
> ------- Ant diagnostics report -------
> Apache Ant version 1.6.1 compiled on February 12 2004
>
> -------------------------------------------
>  Implementation Version (JDK1.2+ only)
> -------------------------------------------
> core tasks     : 1.6.1
> optional tasks : 1.6.1
>
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: c:\java\apache-ant-1.6.1
> ant-antlr.jar (5650 bytes)
> ant-apache-bsf.jar (12483 bytes)
> ant-apache-resolver.jar (4079 bytes)
> ant-commons-logging.jar (3845 bytes)
> ant-commons-net.jar (34888 bytes)
> ant-icontract.jar (9667 bytes)
> ant-jai.jar (21505 bytes)
> ant-jakarta-bcel.jar (8625 bytes)
> ant-jakarta-log4j.jar (3025 bytes)
> ant-jakarta-oro.jar (48101 bytes)
> ant-jakarta-regexp.jar (3708 bytes)
> ant-javamail.jar (6737 bytes)
> ant-jdepend.jar (7969 bytes)
> ant-jmf.jar (6609 bytes)
> ant-jsch.jar (21397 bytes)
> ant-junit.jar (67280 bytes)
> ant-launcher.jar (8412 bytes)
> ant-netrexx.jar (9898 bytes)
> ant-nodeps.jar (406788 bytes)
> ant-starteam.jar (35511 bytes)
> ant-stylebook.jar (2314 bytes)
> ant-swing.jar (6822 bytes)
> ant-trax.jar (66977 bytes)
> ant-vaj.jar (48313 bytes)
> ant-weblogic.jar (14410 bytes)
> ant-xalan1.jar (3932 bytes)
> ant-xalan2.jar (2489 bytes)
> ant-xslp.jar (2236 bytes)
> ant.jar (958858 bytes)
> xercesImpl.jar (959247 bytes)
> xml-apis.jar (124724 bytes)
> commons-net-1.2.1.jar (153264 bytes)
> jakarta-oro-2.0.8.jar (65261 bytes)
>
> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
> sshexec : Missing dependency com.jcraft.jsch.UserInfo
> scp : Missing dependency com.jcraft.jsch.UserInfo
> cvsversion : Not Available
> stlist : Missing dependency com.starbase.starteam.Item
> jdepend : Missing dependency jdepend.xmlui.JDepend
> junit : Missing dependency junit.framework.TestListener
> stcheckin : Missing dependency com.starbase.starteam.Item
> stcheckout : Missing dependency com.starbase.starteam.Item
>
> -------------------------------------------
>  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: C:\java\apache-ant-1.6.1\lib\xercesImpl.jar
>
> -------------------------------------------
>  System properties
> -------------------------------------------
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path : c:\java\j2sdk1.4.1_02\jre\bin
> java.vm.version : 1.4.1_02-b06
> ant.library.dir : C:\java\apache-ant-1.6.1\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 : Service Pack 4
> java.vm.specification.name : Java Virtual Machine Specification
> user.dir : F:\backinup
> java.runtime.version : 1.4.1_02-b06
> java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs : c:\java\j2sdk1.4.1_02\jre\lib\endorsed
> os.arch : x86
> java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
> line.separator :
>
> java.vm.specification.vendor : Sun Microsystems Inc.
> user.variant :
> os.name : Windows 2000
> ant.home : c:\java\apache-ant-1.6.1
> sun.java2d.fontpath :
> java.library.path :
> c:\java\j2sdk1.4.1_02\bin;.;C:\WINNT\system32;C:\WINNT;C:\WI
>
NNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\apache-ant-1.6.1\bin;C
>: \Pro
> gram Files\GNU\WinCvs 1.2;"C:\Program Files\Symantec\Norton Ghost 2003\"
> java.specification.name : Java Platform API Specification
> java.class.version : 48.0
> java.util.prefs.PreferencesFactory :
> java.util.prefs.WindowsPreferencesFactory
> os.version : 5.0
> user.home : C:\Documents and Settings\Administrator
> user.timezone : America/New_York
> java.awt.printerjob : sun.awt.windows.WPrinterJob
> file.encoding : Cp1252
> java.specification.version : 1.4
> java.class.path :
> c:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apache-a
>
nt-1.6.1\lib\ant-antlr.jar;C:\java\apache-ant-1.6.1\lib\ant-apache-bsf.jar;
>C
>
> :\ja
>
>
va\apache-ant-1.6.1\lib\ant-apache-resolver.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -commons-logging.jar;C:\java\apache-ant-1.6.1\lib\ant-commons-net.jar;C:\j
a
>v a\ap
>
ache-ant-1.6.1\lib\ant-icontract.jar;C:\java\apache-ant-1.6.1\lib\ant-jai.j
>a r;C:
>
\java\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -jakarta-log4j.jar;C:\java\apache-ant-1.6.1\lib\ant-jakarta-oro.jar;C:\jav
a
>\ apac
>
he-ant-1.6.1\lib\ant-jakarta-regexp.jar;C:\java\apache-ant-1.6.1\lib\ant-ja
>v amai
>
l.jar;C:\java\apache-ant-1.6.1\lib\ant-jdepend.jar;C:\java\apache-ant-1.6.1
>\ lib\
>
ant-jmf.jar;C:\java\apache-ant-1.6.1\lib\ant-jsch.jar;C:\java\apache-ant-1.
>6 .1\l
>
ib\ant-junit.jar;C:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apac
>h e-an
>
t-1.6.1\lib\ant-netrexx.jar;C:\java\apache-ant-1.6.1\lib\ant-nodeps.jar;C:\
>j ava\
>
apache-ant-1.6.1\lib\ant-starteam.jar;C:\java\apache-ant-1.6.1\lib\ant-styl
>e book
>
.jar;C:\java\apache-ant-1.6.1\lib\ant-swing.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -trax.jar;C:\java\apache-ant-1.6.1\lib\ant-vaj.jar;C:\java\apache-ant-1.6.
1
>\ lib\
>
ant-weblogic.jar;C:\java\apache-ant-1.6.1\lib\ant-xalan1.jar;C:\java\apache
>- ant-
>
1.6.1\lib\ant-xalan2.jar;C:\java\apache-ant-1.6.1\lib\ant-xslp.jar;C:\java\
>a pach
>
e-ant-1.6.1\lib\ant.jar;C:\java\apache-ant-1.6.1\lib\xercesImpl.jar;C:\java
>\ apac
>
he-ant-1.6.1\lib\xml-apis.jar;C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
>1 .jar
>
;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar;c:\java\j2sdk1.4.1_02\l
>i b\to
> ols.jar
> user.name : Administrator
> java.vm.specification.version : 1.0
> java.home : c:\java\j2sdk1.4.1_02\jre
> sun.arch.data.model : 32
> user.language : en
> java.specification.vendor : Sun Microsystems Inc.
> awt.toolkit : sun.awt.windows.WToolkit
> java.vm.info : mixed mode
> java.version : 1.4.1_02
> java.ext.dirs : c:\java\j2sdk1.4.1_02\jre\lib\ext
> sun.boot.class.path :
> c:\java\j2sdk1.4.1_02\jre\lib\rt.jar;c:\java\j2sdk1.4.1_02
>
\jre\lib\i18n.jar;c:\java\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;c:\java\j2sd
>k 1.4.
>
1_02\jre\lib\jsse.jar;c:\java\j2sdk1.4.1_02\jre\lib\jce.jar;c:\java\j2sdk1.
>4 .1_0
> 2\jre\lib\charsets.jar;c:\java\j2sdk1.4.1_02\jre\classes
> java.vendor : Sun Microsystems Inc.
> file.separator : \
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> sun.io.unicode.encoding : UnicodeLittle
> sun.cpu.endian : little
> sun.cpu.isalist : pentium i486 i386
> #####################################################################
> -----Original Message-----
> From: Steve Cohen [mailto:scohen@javactivity.org]
> Sent: Wednesday, June 02, 2004 12:41 PM
> To: Ant Users List
> Subject: Re: FTP Issue
>
>
> Please send your ant script or the relevant portion.  Also what version of
> jakarta-commons/net is on your classpath, what version of Linux.  I can't
> offhand think of a reason why this should not work.  I tried inserting
your
> backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in
> commons-net and there's no problem there.
>
> On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> > I have an ant script that pulls content from a linux box, combines it
> > with local Windows files, and pushes the combination to a Windows FTP
> > server.
> >
> > The Windows FTP work is working fine. However, the linux server is not
> > playing nice with the updated version of ant. Here is the listing from
> > the Linux box which returns nothing in Ant.
> >
> > ftp> ls -al
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for /bin/ls.
> > total 87152
> > drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> > drwx------    5 build    build        4096 Mar 27  2001 ..
> > -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> > 226 Transfer complete.
> > ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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



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


Re: FTP Issue

Posted by Steve Cohen <sc...@javactivity.org>.
I suspect that your problem is somewhere in your script rather than on the 
commons-net side. 

Are you able, using Ant and the <ftp> task in some other context, to upload 
any files from this server?  I suspect you would be able to retrieve files.

The following suggestions are purely for experimental purposes, to pin down 
the problem.

Try running your script with -debug and see if that provides any useful 
information.

Or try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup">
             <include name="backup.tar.gz"/>
          </fileset>
</ftp>

Also, since backup.tar.gz appears to be the only file in this directory and 
there are no subdirectories, you could also, for experimentation purposes, 
try this:

 <ftp action="get" server="${cvsServer}" remotedir="/home/build/backup/"
   userid="build" password="*******" verbose="yes">
          <fileset dir="${dest}/backup"/>
</ftp>





On Thursday 03 June 2004 7:49 am, Alan Zall wrote:
> Here is some additional information. This became a problem when I upgraded
> to version 1.6.1
>
>
> Here is the segment, i am talking about
> #############
>       <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
> userid="build" password="*******" verbose="yes">
>          <fileset dir="${dest}">
>             <include name="backup/backup.tar.gz"/>
>          </fileset>
>       </ftp>
> #############
>
> getCVSBackup:
>       [ftp] Opening FTP connection to 10.254.202.5
>       [ftp] connected
>       [ftp] logging in to FTP server
>       [ftp] login succeeded
>       [ftp] changing the remote directory
>       [ftp] getting files
>       [ftp] 0 files retrieved
>       [ftp] disconnecting
>
>
> ###############
> Here is a copy of an ftp session where the file is....
> N:\backinup\dest\backup>ftp 10.254.202.5
> Connected to 10.254.202.5.
> 220 linux01.localdomain FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50
> EDT 2
> 000) ready.
> User (10.254.202.5:(none)): build
> 331 Password required for build.
> Password:
> 230 User build logged in.
> ftp> pwd
> 257 "/home/build" is current directory.
> ftp> ls backup/backup.tar.gz
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for file list.
> backup/backup.tar.gz
> 226 Transfer complete.
> ftp: 22 bytes received in 0.00Seconds 22000.00Kbytes/sec.
>
> #################
>
> and here is the diagnostics dump
> ############
> Apache Ant version 1.6.1 compiled on February 12 2004
> ------- Ant diagnostics report -------
> Apache Ant version 1.6.1 compiled on February 12 2004
>
> -------------------------------------------
>  Implementation Version (JDK1.2+ only)
> -------------------------------------------
> core tasks     : 1.6.1
> optional tasks : 1.6.1
>
> -------------------------------------------
>  ANT_HOME/lib jar listing
> -------------------------------------------
> ant.home: c:\java\apache-ant-1.6.1
> ant-antlr.jar (5650 bytes)
> ant-apache-bsf.jar (12483 bytes)
> ant-apache-resolver.jar (4079 bytes)
> ant-commons-logging.jar (3845 bytes)
> ant-commons-net.jar (34888 bytes)
> ant-icontract.jar (9667 bytes)
> ant-jai.jar (21505 bytes)
> ant-jakarta-bcel.jar (8625 bytes)
> ant-jakarta-log4j.jar (3025 bytes)
> ant-jakarta-oro.jar (48101 bytes)
> ant-jakarta-regexp.jar (3708 bytes)
> ant-javamail.jar (6737 bytes)
> ant-jdepend.jar (7969 bytes)
> ant-jmf.jar (6609 bytes)
> ant-jsch.jar (21397 bytes)
> ant-junit.jar (67280 bytes)
> ant-launcher.jar (8412 bytes)
> ant-netrexx.jar (9898 bytes)
> ant-nodeps.jar (406788 bytes)
> ant-starteam.jar (35511 bytes)
> ant-stylebook.jar (2314 bytes)
> ant-swing.jar (6822 bytes)
> ant-trax.jar (66977 bytes)
> ant-vaj.jar (48313 bytes)
> ant-weblogic.jar (14410 bytes)
> ant-xalan1.jar (3932 bytes)
> ant-xalan2.jar (2489 bytes)
> ant-xslp.jar (2236 bytes)
> ant.jar (958858 bytes)
> xercesImpl.jar (959247 bytes)
> xml-apis.jar (124724 bytes)
> commons-net-1.2.1.jar (153264 bytes)
> jakarta-oro-2.0.8.jar (65261 bytes)
>
> -------------------------------------------
>  Tasks availability
> -------------------------------------------
> image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
> sshexec : Missing dependency com.jcraft.jsch.UserInfo
> scp : Missing dependency com.jcraft.jsch.UserInfo
> cvsversion : Not Available
> stlist : Missing dependency com.starbase.starteam.Item
> jdepend : Missing dependency jdepend.xmlui.JDepend
> junit : Missing dependency junit.framework.TestListener
> stcheckin : Missing dependency com.starbase.starteam.Item
> stcheckout : Missing dependency com.starbase.starteam.Item
>
> -------------------------------------------
>  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: C:\java\apache-ant-1.6.1\lib\xercesImpl.jar
>
> -------------------------------------------
>  System properties
> -------------------------------------------
> java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
> sun.boot.library.path : c:\java\j2sdk1.4.1_02\jre\bin
> java.vm.version : 1.4.1_02-b06
> ant.library.dir : C:\java\apache-ant-1.6.1\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 : Service Pack 4
> java.vm.specification.name : Java Virtual Machine Specification
> user.dir : F:\backinup
> java.runtime.version : 1.4.1_02-b06
> java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
> java.endorsed.dirs : c:\java\j2sdk1.4.1_02\jre\lib\endorsed
> os.arch : x86
> java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
> line.separator :
>
> java.vm.specification.vendor : Sun Microsystems Inc.
> user.variant :
> os.name : Windows 2000
> ant.home : c:\java\apache-ant-1.6.1
> sun.java2d.fontpath :
> java.library.path :
> c:\java\j2sdk1.4.1_02\bin;.;C:\WINNT\system32;C:\WINNT;C:\WI
> NNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\apache-ant-1.6.1\bin;C
>: \Pro
> gram Files\GNU\WinCvs 1.2;"C:\Program Files\Symantec\Norton Ghost 2003\"
> java.specification.name : Java Platform API Specification
> java.class.version : 48.0
> java.util.prefs.PreferencesFactory :
> java.util.prefs.WindowsPreferencesFactory
> os.version : 5.0
> user.home : C:\Documents and Settings\Administrator
> user.timezone : America/New_York
> java.awt.printerjob : sun.awt.windows.WPrinterJob
> file.encoding : Cp1252
> java.specification.version : 1.4
> java.class.path :
> c:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apache-a
> nt-1.6.1\lib\ant-antlr.jar;C:\java\apache-ant-1.6.1\lib\ant-apache-bsf.jar;
>C
>
> :\ja
>
> va\apache-ant-1.6.1\lib\ant-apache-resolver.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -commons-logging.jar;C:\java\apache-ant-1.6.1\lib\ant-commons-net.jar;C:\ja
>v a\ap
> ache-ant-1.6.1\lib\ant-icontract.jar;C:\java\apache-ant-1.6.1\lib\ant-jai.j
>a r;C:
> \java\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -jakarta-log4j.jar;C:\java\apache-ant-1.6.1\lib\ant-jakarta-oro.jar;C:\java
>\ apac
> he-ant-1.6.1\lib\ant-jakarta-regexp.jar;C:\java\apache-ant-1.6.1\lib\ant-ja
>v amai
> l.jar;C:\java\apache-ant-1.6.1\lib\ant-jdepend.jar;C:\java\apache-ant-1.6.1
>\ lib\
> ant-jmf.jar;C:\java\apache-ant-1.6.1\lib\ant-jsch.jar;C:\java\apache-ant-1.
>6 .1\l
> ib\ant-junit.jar;C:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apac
>h e-an
> t-1.6.1\lib\ant-netrexx.jar;C:\java\apache-ant-1.6.1\lib\ant-nodeps.jar;C:\
>j ava\
> apache-ant-1.6.1\lib\ant-starteam.jar;C:\java\apache-ant-1.6.1\lib\ant-styl
>e book
> .jar;C:\java\apache-ant-1.6.1\lib\ant-swing.jar;C:\java\apache-ant-1.6.1\li
>b \ant
> -trax.jar;C:\java\apache-ant-1.6.1\lib\ant-vaj.jar;C:\java\apache-ant-1.6.1
>\ lib\
> ant-weblogic.jar;C:\java\apache-ant-1.6.1\lib\ant-xalan1.jar;C:\java\apache
>- ant-
> 1.6.1\lib\ant-xalan2.jar;C:\java\apache-ant-1.6.1\lib\ant-xslp.jar;C:\java\
>a pach
> e-ant-1.6.1\lib\ant.jar;C:\java\apache-ant-1.6.1\lib\xercesImpl.jar;C:\java
>\ apac
> he-ant-1.6.1\lib\xml-apis.jar;C:\java\apache-ant-1.6.1\lib\commons-net-1.2.
>1 .jar
> ;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar;c:\java\j2sdk1.4.1_02\l
>i b\to
> ols.jar
> user.name : Administrator
> java.vm.specification.version : 1.0
> java.home : c:\java\j2sdk1.4.1_02\jre
> sun.arch.data.model : 32
> user.language : en
> java.specification.vendor : Sun Microsystems Inc.
> awt.toolkit : sun.awt.windows.WToolkit
> java.vm.info : mixed mode
> java.version : 1.4.1_02
> java.ext.dirs : c:\java\j2sdk1.4.1_02\jre\lib\ext
> sun.boot.class.path :
> c:\java\j2sdk1.4.1_02\jre\lib\rt.jar;c:\java\j2sdk1.4.1_02
> \jre\lib\i18n.jar;c:\java\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;c:\java\j2sd
>k 1.4.
> 1_02\jre\lib\jsse.jar;c:\java\j2sdk1.4.1_02\jre\lib\jce.jar;c:\java\j2sdk1.
>4 .1_0
> 2\jre\lib\charsets.jar;c:\java\j2sdk1.4.1_02\jre\classes
> java.vendor : Sun Microsystems Inc.
> file.separator : \
> java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
> sun.io.unicode.encoding : UnicodeLittle
> sun.cpu.endian : little
> sun.cpu.isalist : pentium i486 i386
> #####################################################################
> -----Original Message-----
> From: Steve Cohen [mailto:scohen@javactivity.org]
> Sent: Wednesday, June 02, 2004 12:41 PM
> To: Ant Users List
> Subject: Re: FTP Issue
>
>
> Please send your ant script or the relevant portion.  Also what version of
> jakarta-commons/net is on your classpath, what version of Linux.  I can't
> offhand think of a reason why this should not work.  I tried inserting your
> backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in
> commons-net and there's no problem there.
>
> On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> > I have an ant script that pulls content from a linux box, combines it
> > with local Windows files, and pushes the combination to a Windows FTP
> > server.
> >
> > The Windows FTP work is working fine. However, the linux server is not
> > playing nice with the updated version of ant. Here is the listing from
> > the Linux box which returns nothing in Ant.
> >
> > ftp> ls -al
> > 200 PORT command successful.
> > 150 Opening ASCII mode data connection for /bin/ls.
> > total 87152
> > drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> > drwx------    5 build    build        4096 Mar 27  2001 ..
> > -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> > 226 Transfer complete.
> > ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>
>
> ---------------------------------------------------------------------
> 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


RE: FTP Issue

Posted by Alan Zall <al...@xcipio.com>.
Here is some additional information. This became a problem when I upgraded
to version 1.6.1


Here is the segment, i am talking about
#############
      <ftp action="get" server="${cvsServer}" remotedir="/home/build/"
userid="build" password="*******" verbose="yes">
         <fileset dir="${dest}">
            <include name="backup/backup.tar.gz"/>
         </fileset>
      </ftp>
#############

getCVSBackup:
      [ftp] Opening FTP connection to 10.254.202.5
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [ftp] changing the remote directory
      [ftp] getting files
      [ftp] 0 files retrieved
      [ftp] disconnecting


###############
Here is a copy of an ftp session where the file is....
N:\backinup\dest\backup>ftp 10.254.202.5
Connected to 10.254.202.5.
220 linux01.localdomain FTP server (Version wu-2.6.1(1) Wed Aug 9 05:54:50
EDT 2
000) ready.
User (10.254.202.5:(none)): build
331 Password required for build.
Password:
230 User build logged in.
ftp> pwd
257 "/home/build" is current directory.
ftp> ls backup/backup.tar.gz
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
backup/backup.tar.gz
226 Transfer complete.
ftp: 22 bytes received in 0.00Seconds 22000.00Kbytes/sec.

#################

and here is the diagnostics dump
############
Apache Ant version 1.6.1 compiled on February 12 2004
------- Ant diagnostics report -------
Apache Ant version 1.6.1 compiled on February 12 2004

-------------------------------------------
 Implementation Version (JDK1.2+ only)
-------------------------------------------
core tasks     : 1.6.1
optional tasks : 1.6.1

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: c:\java\apache-ant-1.6.1
ant-antlr.jar (5650 bytes)
ant-apache-bsf.jar (12483 bytes)
ant-apache-resolver.jar (4079 bytes)
ant-commons-logging.jar (3845 bytes)
ant-commons-net.jar (34888 bytes)
ant-icontract.jar (9667 bytes)
ant-jai.jar (21505 bytes)
ant-jakarta-bcel.jar (8625 bytes)
ant-jakarta-log4j.jar (3025 bytes)
ant-jakarta-oro.jar (48101 bytes)
ant-jakarta-regexp.jar (3708 bytes)
ant-javamail.jar (6737 bytes)
ant-jdepend.jar (7969 bytes)
ant-jmf.jar (6609 bytes)
ant-jsch.jar (21397 bytes)
ant-junit.jar (67280 bytes)
ant-launcher.jar (8412 bytes)
ant-netrexx.jar (9898 bytes)
ant-nodeps.jar (406788 bytes)
ant-starteam.jar (35511 bytes)
ant-stylebook.jar (2314 bytes)
ant-swing.jar (6822 bytes)
ant-trax.jar (66977 bytes)
ant-vaj.jar (48313 bytes)
ant-weblogic.jar (14410 bytes)
ant-xalan1.jar (3932 bytes)
ant-xalan2.jar (2489 bytes)
ant-xslp.jar (2236 bytes)
ant.jar (958858 bytes)
xercesImpl.jar (959247 bytes)
xml-apis.jar (124724 bytes)
commons-net-1.2.1.jar (153264 bytes)
jakarta-oro-2.0.8.jar (65261 bytes)

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency com.sun.media.jai.codec.FileSeekableStream
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
cvsversion : Not Available
stlist : Missing dependency com.starbase.starteam.Item
jdepend : Missing dependency jdepend.xmlui.JDepend
junit : Missing dependency junit.framework.TestListener
stcheckin : Missing dependency com.starbase.starteam.Item
stcheckout : Missing dependency com.starbase.starteam.Item

-------------------------------------------
 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: C:\java\apache-ant-1.6.1\lib\xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path : c:\java\j2sdk1.4.1_02\jre\bin
java.vm.version : 1.4.1_02-b06
ant.library.dir : C:\java\apache-ant-1.6.1\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 : Service Pack 4
java.vm.specification.name : Java Virtual Machine Specification
user.dir : F:\backinup
java.runtime.version : 1.4.1_02-b06
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : c:\java\j2sdk1.4.1_02\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
user.variant :
os.name : Windows 2000
ant.home : c:\java\apache-ant-1.6.1
sun.java2d.fontpath :
java.library.path :
c:\java\j2sdk1.4.1_02\bin;.;C:\WINNT\system32;C:\WINNT;C:\WI
NNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\java\apache-ant-1.6.1\bin;C:
\Pro
gram Files\GNU\WinCvs 1.2;"C:\Program Files\Symantec\Norton Ghost 2003\"
java.specification.name : Java Platform API Specification
java.class.version : 48.0
java.util.prefs.PreferencesFactory :
java.util.prefs.WindowsPreferencesFactory
os.version : 5.0
user.home : C:\Documents and Settings\Administrator
user.timezone : America/New_York
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.4
java.class.path :
c:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apache-a
nt-1.6.1\lib\ant-antlr.jar;C:\java\apache-ant-1.6.1\lib\ant-apache-bsf.jar;C
:\ja
va\apache-ant-1.6.1\lib\ant-apache-resolver.jar;C:\java\apache-ant-1.6.1\lib
\ant
-commons-logging.jar;C:\java\apache-ant-1.6.1\lib\ant-commons-net.jar;C:\jav
a\ap
ache-ant-1.6.1\lib\ant-icontract.jar;C:\java\apache-ant-1.6.1\lib\ant-jai.ja
r;C:
\java\apache-ant-1.6.1\lib\ant-jakarta-bcel.jar;C:\java\apache-ant-1.6.1\lib
\ant
-jakarta-log4j.jar;C:\java\apache-ant-1.6.1\lib\ant-jakarta-oro.jar;C:\java\
apac
he-ant-1.6.1\lib\ant-jakarta-regexp.jar;C:\java\apache-ant-1.6.1\lib\ant-jav
amai
l.jar;C:\java\apache-ant-1.6.1\lib\ant-jdepend.jar;C:\java\apache-ant-1.6.1\
lib\
ant-jmf.jar;C:\java\apache-ant-1.6.1\lib\ant-jsch.jar;C:\java\apache-ant-1.6
.1\l
ib\ant-junit.jar;C:\java\apache-ant-1.6.1\lib\ant-launcher.jar;C:\java\apach
e-an
t-1.6.1\lib\ant-netrexx.jar;C:\java\apache-ant-1.6.1\lib\ant-nodeps.jar;C:\j
ava\
apache-ant-1.6.1\lib\ant-starteam.jar;C:\java\apache-ant-1.6.1\lib\ant-style
book
.jar;C:\java\apache-ant-1.6.1\lib\ant-swing.jar;C:\java\apache-ant-1.6.1\lib
\ant
-trax.jar;C:\java\apache-ant-1.6.1\lib\ant-vaj.jar;C:\java\apache-ant-1.6.1\
lib\
ant-weblogic.jar;C:\java\apache-ant-1.6.1\lib\ant-xalan1.jar;C:\java\apache-
ant-
1.6.1\lib\ant-xalan2.jar;C:\java\apache-ant-1.6.1\lib\ant-xslp.jar;C:\java\a
pach
e-ant-1.6.1\lib\ant.jar;C:\java\apache-ant-1.6.1\lib\xercesImpl.jar;C:\java\
apac
he-ant-1.6.1\lib\xml-apis.jar;C:\java\apache-ant-1.6.1\lib\commons-net-1.2.1
.jar
;C:\java\apache-ant-1.6.1\lib\jakarta-oro-2.0.8.jar;c:\java\j2sdk1.4.1_02\li
b\to
ols.jar
user.name : Administrator
java.vm.specification.version : 1.0
java.home : c:\java\j2sdk1.4.1_02\jre
sun.arch.data.model : 32
user.language : en
java.specification.vendor : Sun Microsystems Inc.
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode
java.version : 1.4.1_02
java.ext.dirs : c:\java\j2sdk1.4.1_02\jre\lib\ext
sun.boot.class.path :
c:\java\j2sdk1.4.1_02\jre\lib\rt.jar;c:\java\j2sdk1.4.1_02
\jre\lib\i18n.jar;c:\java\j2sdk1.4.1_02\jre\lib\sunrsasign.jar;c:\java\j2sdk
1.4.
1_02\jre\lib\jsse.jar;c:\java\j2sdk1.4.1_02\jre\lib\jce.jar;c:\java\j2sdk1.4
.1_0
2\jre\lib\charsets.jar;c:\java\j2sdk1.4.1_02\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding : UnicodeLittle
sun.cpu.endian : little
sun.cpu.isalist : pentium i486 i386
#####################################################################
-----Original Message-----
From: Steve Cohen [mailto:scohen@javactivity.org]
Sent: Wednesday, June 02, 2004 12:41 PM
To: Ant Users List
Subject: Re: FTP Issue


Please send your ant script or the relevant portion.  Also what version of
jakarta-commons/net is on your classpath, what version of Linux.  I can't
offhand think of a reason why this should not work.  I tried inserting your
backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in
commons-net and there's no problem there.


On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> I have an ant script that pulls content from a linux box, combines it with
> local Windows files, and pushes the combination to a Windows FTP server.
>
> The Windows FTP work is working fine. However, the linux server is not
> playing nice with the updated version of ant. Here is the listing from the
> Linux box which returns nothing in Ant.
>
> ftp> ls -al
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> total 87152
> drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> drwx------    5 build    build        4096 Mar 27  2001 ..
> -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> 226 Transfer complete.
> ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
>
>
>
>
> ---------------------------------------------------------------------
> 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



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


Re: FTP Issue

Posted by Steve Cohen <sc...@javactivity.org>.
Please send your ant script or the relevant portion.  Also what version of 
jakarta-commons/net is on your classpath, what version of Linux.  I can't 
offhand think of a reason why this should not work.  I tried inserting your
backup.tar.gz line into the JUnit test for UnixFTPFileEntryParser in 
commons-net and there's no problem there.


On Wednesday 02 June 2004 9:19 am, Alan Zall wrote:
> I have an ant script that pulls content from a linux box, combines it with
> local Windows files, and pushes the combination to a Windows FTP server.
>
> The Windows FTP work is working fine. However, the linux server is not
> playing nice with the updated version of ant. Here is the listing from the
> Linux box which returns nothing in Ant.
>
> ftp> ls -al
> 200 PORT command successful.
> 150 Opening ASCII mode data connection for /bin/ls.
> total 87152
> drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
> drwx------    5 build    build        4096 Mar 27  2001 ..
> -rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
> 226 Transfer complete.
> ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.
>
>
>
>
> ---------------------------------------------------------------------
> 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


Re: Code cleaning tasks

Posted by Jon Schewe <jp...@mtu.net>.
XEmacs, http://www.xemacs.org, with JDEE do 1 and 2 very nicely.

On Wed, 2004-06-02 at 12:02, Ivan Ivanov wrote:
> Dear Colleagues,
> 
> can you point me a tool with ant tasks, which can
> review Java source files and clean their code, i.e.
> 1) organize imports - if there are imports like
> import java.util.*;
> 
> the tool change it to
> import java.util.Vector;
> import java.util.HashMap;
> ... and so on
> 
> 2) corrects the identation of the code
> 3) removes all non-javadoc comments - people often
> tend comment non-working or unneeded blocks of code.
> Soon the code gets polluted with comments like
> //Too drunk to fix it :))
> 
> Third one is most important for us since any decent
> IDE can do the 1) and 2).
> 
> Thank you very much in advance
> 
> Ivan
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
-- 
Jon Schewe | http://mtu.net/~jpschewe
GPG signature at http://mtu.net/~jpschewe/gpg.sig.html
For I am convinced that neither death nor life, neither angels 
nor demons, neither the present nor the future, nor any 
powers, neither height nor depth, nor anything else in all 
creation, will be able to separate us from the love of God that 
is in Christ Jesus our Lord. - Romans 8:38-39


Code cleaning tasks

Posted by Ivan Ivanov <ra...@yahoo.com>.
Dear Colleagues,

can you point me a tool with ant tasks, which can
review Java source files and clean their code, i.e.
1) organize imports - if there are imports like
import java.util.*;

the tool change it to
import java.util.Vector;
import java.util.HashMap;
... and so on

2) corrects the identation of the code
3) removes all non-javadoc comments - people often
tend comment non-working or unneeded blocks of code.
Soon the code gets polluted with comments like
//Too drunk to fix it :))

Third one is most important for us since any decent
IDE can do the 1) and 2).

Thank you very much in advance

Ivan


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


FTP Issue

Posted by Alan Zall <al...@xcipio.com>.
I have an ant script that pulls content from a linux box, combines it with
local Windows files, and pushes the combination to a Windows FTP server.

The Windows FTP work is working fine. However, the linux server is not
playing nice with the updated version of ant. Here is the listing from the
Linux box which returns nothing in Ant.

ftp> ls -al
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 87152
drwxr-xr-x    2 root     root         4096 Mar 27  2001 .
drwx------    5 build    build        4096 Mar 27  2001 ..
-rw-r--r--    1 root     root     89139812 May 31 23:02 backup.tar.gz
226 Transfer complete.
ftp: 203 bytes received in 0.00Seconds 203000.00Kbytes/sec.




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


Re: Using Ant to build multitarget mixed C++/Java projects

Posted by John Birtley <jb...@buildmonkey.com>.
Michael,

The latest release of BuildMonkey has the ability to combine both Ant and Make
builds.  It's written in Java and will run on all the platforms you need.

It's available at http://www.buildmonkey.com.

John.

----- Original Message ----- 
From: "Kreinick, Michael H." <mi...@gs.com>
To: <us...@ant.apache.org>
Sent: Tuesday, June 01, 2004 10:39 PM
Subject: Using Ant to build multitarget mixed C++/Java projects


> I'm looking into various alternatives for building a set of products,
> written in a mix of C++ and Java (with some JNI). The products need to build
> under Windows, Solaris, and Linux using various compilers for each platform.
> They also need to be built with different versions of their library
> dependencies, then regression tested.
>
> I know Ant does have C++ build tasks. What worries me is whether Ant,
> designed with Java's build-once-run-everywhere model in mind, will work well
> to build the same source 5 or 10 different times. I've never used Ant
> before, and I haven't done as much reading as I perhaps should have, but it
> seems ill-suited to this kind of problem. I get the impression that if I
> hack hard enough I can make it happen, but that it won't be very clean
> because of the Java philosophy Ant takes for granted.
>
> I've looked for examples of this type of use on the Web and list with no
> luck. It seems few people are trying to use Ant for C++ at all, and none
> that I found are trying to do what I'm trying to do.
>
> So: Is Ant C++ support mature enough that I should even be thinking about
> using it for this? Has anyone out there tried the same kind of thing? Would
> any experienced users like to offer a sketch of how they would go about it?
> Will I be fighting the Ant project model all the way?
>
> I'm also looking at sCons and boost.Jam for this. If anyone has other
> suggestions, they'd be welcome.
>
> -Michael
>


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