ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58589] New: Added 'preservelastmodified' to scp task to retain file timestamp for upload
Date Thu, 05 Nov 2015 07:39:46 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58589

            Bug ID: 58589
           Summary: Added 'preservelastmodified' to scp task to retain
                    file timestamp for upload
           Product: Ant
           Version: 1.9.6
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Optional Tasks
          Assignee: notifications@ant.apache.org
          Reporter: jueho68@gmx.de

Bug 33939 solved the issue to retain the file timestamps when downloading file
via ant scp task.
I added the handling for retaining file timestamp during upload.

Example ant-task:

<target name="release-to-scp" description="Copy file via scp to server">        
    <scp todir="user@ip:/home/user/dir" password="${scp_pwd}" verbose="true"
preservelastmodified="true">
    <fileset dir="${deploy.dir}/lib">
        <include name="file1"/>
        <include name="file2"/>
    </fileset>
    </scp>        
</target>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message