[
http://jira.codehaus.org/browse/WAGON-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=208796#action_208796
]
Maria Odea Ching commented on WAGON-297:
----------------------------------------
{quote}
* the multiple levels of try/catch is a bit scary
{quote}
I'll see what else I can do about this.
{quote}
* the checkOut call that fails with a TransferFailedException seems to be
called identically after calculating the missing directories. Am I misreading
it?
{quote}
Yes, it's being called again but this time using the base scm url (where the
missing directories will be added). The TransferFailedException is the one
thrown when the checkout fails because of the missing directory.
{quote}
* it might be nice to have a block comment that explains what happens (are the
directories added in the local checkout, created, remotely, etc? Is it checking
out a new base directory higher up to create the directories?)
{quote}
Ok, I'll add a block comment for what it does.
{quote}
* also, you want to make sure you don't start creating directories within the
original supplied URL - wagon doesn't do that, only create those that it tries
to put within that.
{quote}
That's what the patch does.. it only creates the missing directories where it
tried to deploy.
For example: the deployment site url is
http://svn.example.com/repos/myproject/www/docs/${project.version} whereas
docs/${project.version} does not exist yet, with this patch, what will be
created will be starting from the docs directory. Is this what you meant?
{quote}
Separately - is the test case one that is valid across all the providers? Maybe
it can be pushed up to the abstract class?
{quote}
I'll see if I can move this up to the abstract class as I just based it on the
existing test case for ScmSvnExeWagonTest.
> Wagon SCM does not automatically create missing directories during deployment
> -----------------------------------------------------------------------------
>
> Key: WAGON-297
> URL: http://jira.codehaus.org/browse/WAGON-297
> Project: Maven Wagon
> Issue Type: Bug
> Components: wagon-scm
> Affects Versions: 1.0-beta-6
> Reporter: Maria Odea Ching
> Attachments: WAGON-297.patch
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira