[Issue 1965] New - SCP upload flattens subdirectories

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 1965] New - SCP upload flattens subdirectories

dlindner
https://hudson.dev.java.net/issues/show_bug.cgi?id=1965
                 Issue #|1965
                 Summary|SCP upload flattens subdirectories
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|other
             Assigned to|issues@hudson
             Reported by|dlindner






------- Additional comments from [hidden email] Thu Jun 26 15:23:44 +0000 2008 -------
If the scp plugin (which has no subcomponent, btw) is used with a pattern like
documentation/**, the resulting upload fetches all files in all subdirectories,
but flattens the hierarchy.

This may not be desired behaviour (and in my case isn't). The directory
structure should be preserved while uploading. This effect can't be achieved by
workaround if the directory structure varies.

The specific use case was to upload project documentation. Perhaps there is a
better way?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1965] SCP upload flattens subdirectories

Kohsuke Kawaguchi
Administrator
https://hudson.dev.java.net/issues/show_bug.cgi?id=1965






------- Additional comments from [hidden email] Wed Jul  2 05:14:52 +0000 2008 -------
Ant glob syntax inherently doesn't provide any notion of base directory, so it's
not clear how the target directory layout shall be created.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 1965] SCP upload flattens subdirectories

dlindner
In reply to this post by dlindner
https://hudson.dev.java.net/issues/show_bug.cgi?id=1965






------- Additional comments from [hidden email] Thu Jul  3 21:51:37 +0000 2008 -------
That's true. Perhaps the ant glob syntax is too restricted for uploading whole
directory trees and there should be an alternative way like "upload everything
beneath directory x to the target directory, preserving structure" of specifying
the upload sources.

As far as i understand ant glob syntax, it tells "upload everything covered by
this expression to the target directory" with implicit "and forget about
directories". This is reasonable for build artifacts like JARs or ZIPs. In my
case, its a lot of (hierarchically structured) html documents.



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]