[Issue 1965] New - SCP upload flattens subdirectories

View: New views
3 Messages — Rating Filter:   Alert me  

[Issue 1965] New - SCP upload flattens subdirectories

by dlindner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 dlindner@... 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: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 1965] SCP upload flattens subdirectories

by kohsuke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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






------- Additional comments from kohsuke@... 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: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 1965] SCP upload flattens subdirectories

by dlindner :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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






------- Additional comments from dlindner@... 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: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

LightInTheBox - Buy quality products at wholesale price