You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2006/04/04 19:24:59 UTC

DO NOT REPLY [Bug 39204] New: - ftp fails when name has ' (apostrophe symbol)

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39204>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39204

           Summary: ftp fails when name has ' (apostrophe symbol)
           Product: Ant
           Version: 1.6.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P1
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: achepati67@yahoo.es


I have to get a file from the server, but the name has to be encloses by ' 
symbol, for example: 'foo.txt', but Ant process the file name an eliminates the 
delimitors. I have tested the ftp action with a file without ' on its name and 
it works.

It is a problem with the ftp task and not with the fileSet definition, I guess 
because I have tried to use the '-symbol on the name for making a copy of the 
file and it works (see below)

I am sending to you a piece of code in orde to see more clear:

    <target name="get-input-files"
        description="Get the input files from the LRA production machine"
        depends="get-current-time"
        >
        <echo level="verbose"
          message= "Getting file: '${holder.prefix}${current.time}' from 
server: ${server}"/>
        <copy file="'borrame.txt'" tofile="'nuevo_borrame.txt'"/>
        <ftp action="get"
            server="${server}"
            userid="${login}"
            password="${password}"
            verbose="yes"
            binary = "false"
            >
            <fileset dir=".">
              <include name="BORRAME.TXT"/>
              <include name="'PRVL.JSCHIT.L3BSCHI2.SALIDA.NNBAA.D060404'"/>
            </fileset>
            <!--fileset file="'${holder.prefix}${current.time}'"/-->
        </ftp>
    </target>
and I get the following output in debug mode:

get-input-files:
     [echo] Getting file: 'PRVL.JSCHIT.L3BSCHI2.SALIDA.NNBAA.D060404' from 
server: aris.bsch
     [copy] P:\LRA\src\resource\'borrame.txt' omitted as 
P:\LRA\src\resource\'nuevo_borrame.txt' is up to date.
      [ftp] Opening FTP connection to aris.bsch
      [ftp] connected
      [ftp] logging in to FTP server
      [ftp] login succeeded
      [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 a dependent class (jdepend/xmlui/JDepend) for type jdepend
fileset: Setup scanner in dir P:\LRA\src\resource with patternSet{ includes: 
[BORRAME.TXT, PRVL.JSCHIT.L3BSCHI2.SALIDA.NNBAA.D060404] excludes: [] }
filelist map used in listing files
filelist map used in listing files
filelist map used in listing files
      [ftp] transferring BORRAME.TXT to P:\LRA\src\resource\BORRAME.TXT
      [ftp] File P:\LRA\src\resource\BORRAME.TXT copied from aris.bsch
      [ftp] 1 files retrieved
      [ftp] disconnecting

BUILD SUCCESSFUL


as you can see the file name is changed for the ftp task but not for the copy 
task. WHY????

Please let me know if the is any shortcut solution for this problem in the mean 
time you solve it for the next release.

Thanks,

David

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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