You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Lauzon Daniel-Y18165 <Y1...@motorola.com> on 2004/02/09 21:04:02 UTC
ftp + download = jakarta-oro-2.0.8.jar
All kneel at once before the great Antoine, the savior the enlightened one, the chosen one!
And may the drafter of the ftp dependencies in the ant doc be doomed for ever (I hope these two are not the same guy)
Thanks very much Antoine, you made my day, I invite all ant newbies to bug you
U R the 1!
Dan
-----Original Message-----
From: Antoine Lévy-Lambert [mailto:antoine@antbuild.com]
Sent: 9 février, 2004 14:46
To: Ant Users List
Subject: Re: ftp download, has it ever worked?
Lauzon Daniel-Y18165 wrote:
>Hi Donald!
>
>quoting the ant user's manual from toc/ant tasks/optional tasks/ftp/parameters
> Attribute |Description |Required
> binary |selects binary-mode ("yes") or text-mode ("no") transfers. Defaults to "yes" |No
>So I gave a shot to "no-mention" of the binary parameter so its default would let me have the binary,
>I then gave a shot to binary="no" in case that would produce something enlightening but it didn't of course.
>I then (after your response) gave a shot to specifying binary="yes" in case the default was wrong in the doc but it wasn't.
>What I'm trying to download is the rpm I made in a telnet task on a remote server.
>Ftp was there my friend at upload time. Below is my error message.
>Have you ever achieved an ftp download yourself Donald?
>Has anybody?
>Be assured of my appreciation for the cycles you allocate to this and of my
>
>Best regards,
>Dan
>
>
>
It looks like commons-net requires jakarta-oro. Would you download a
recent version of jakarta-oro ?
I have jakarta-oro-2.0.5.jar on my PC and it is working fine.
Cheers,
Antoine
>java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternExcept
>ion
> at org.apache.tools.ant.Project.executeTarget(Project.java:1246)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
> at org.apache.tools.ant.Main.runBuild(Main.java:669)
> at org.apache.tools.ant.Main.startAnt(Main.java:220)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>--- Nested Exception ---
>java.lang.NoClassDefFoundError: org/apache/oro/text/regex/MalformedPatternExcept
>ion
> at org.apache.commons.net.ftp.parser.DefaultFTPFileEntryParserFactory.cr
>eateFileEntryParser(DefaultFTPFileEntryParserFactory.java:119)
> at org.apache.commons.net.ftp.FTPClient.initiateListParsing(FTPClient.ja
>va:2346)
> at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2095)
> at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2146)
> at org.apache.commons.net.ftp.FTPClient.listFiles(FTPClient.java:2186)
> at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.li
>stFiles(FTP.java:544)
> at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
>andir(FTP.java:372)
> at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.ch
>eckIncludePatterns(FTP.java:276)
> at org.apache.tools.ant.taskdefs.optional.net.FTP$FTPDirectoryScanner.sc
>an(FTP.java:240)
> at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
>:1330)
> at org.apache.tools.ant.taskdefs.optional.net.FTP.transferFiles(FTP.java
>:1425)
> at org.apache.tools.ant.taskdefs.optional.net.FTP.execute(FTP.java:2053)
>
> at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
> at org.apache.tools.ant.Task.perform(Task.java:401)
> at org.apache.tools.ant.Target.execute(Target.java:338)
> at org.apache.tools.ant.Target.performTasks(Target.java:365)
> at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
> at org.apache.tools.ant.Main.runBuild(Main.java:669)
> at org.apache.tools.ant.Main.startAnt(Main.java:220)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>-----Original Message-----
>From: Holliday, Donald B. (LNG-CSP)
>[mailto:Donald.Holliday@lexisnexis.com]
>Sent: 9 février, 2004 14:13
>To: 'Ant Users List'
>Subject: RE: ftp download, has it ever worked?
>
>
>If you ftp a jar file you need to make it a binary ftp or the file will be
>contaminated.
>
>Thanks,
>
>Donald Holliday
>
>
>
>-----Original Message-----
>From: Lauzon Daniel-Y18165 [mailto:Y18165@motorola.com]
>Sent: Monday, February 09, 2004 11:26 AM
>To: 'Ant Users List'
>Subject: ftp download, has it ever worked?
>
>
>quoting the ant user's manual from toc/ant tasks/optional tasks/ftp/getting
>files
>
> Getting files from an FTP server works pretty much the same way as
>sending them does. The only difference is that the nested filesets use
>the remotedir attribute as the base directory for the files on the FTP
>server, and the dir attribute as the local directory to put the files
>into. The file structure from the FTP site is preserved on the local
>machine.
> <ftp action="get"
> server="ftp.apache.org"
> userid="anonymous"
> password="me@myorg.com">
> <fileset dir="htdocs/manual">
> <include name="**/*.html"/>
> </fileset>
> </ftp>
> Logs in to ftp.apache.org as anonymous and recursively downloads all
>.html files from default directory for that user into the
>htdocs/manual directory on the local machine.
>
>Has anybody ever got this to work? The archives has nothing but unanswered
>entries that match this one.
>
>
>
>
>
---------------------------------------------------------------------
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 + download = jakarta-oro-2.0.8.jar
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Lauzon Daniel-Y18165 wrote:
>All kneel at once before the great Antoine, the savior the enlightened one, the chosen one!
>And may the drafter of the ftp dependencies in the ant doc be doomed for ever (I hope these two are not the same guy)
>
>Thanks very much Antoine, you made my day, I invite all ant newbies to bug you
>
>U R the 1!
>Dan
>
>
>
>
Thanks Daniel,
unfortunately I am both a maintainer of the ftp task and of the ftp
dependencies.
Since I had jakarta-oro in my $ANT_HOME/lib since a long time, I did not
find out that ftp actually needs jakarta-oro until another user of ant
stumbled against the same problem a short while ago.
But yes, the requirement for jakarta-oro will be in the doc for ant
1.6.1, although I thought one only needed jakarta-oro with recent
versions of commons-net and when one wants to ftp from/to a MS ftp server.
Will need to simplify the equation, just say that ftp needs jakarta-oro
& commons-net.
Cheers,
Antoine
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org