History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SCM-201
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Dan Tran
Reporter: Dan Tran
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven SCM

Option to ignore checkout when checkoutDirectory exists

Created: 13/May/06 08:44 AM   Updated: 15/May/06 10:07 PM
Component/s: maven-plugin
Affects Version/s: 1.0-beta-3
Fix Version/s: 1.0-beta-4

Time Tracking:
Not Specified

Environment: xp, starteam

Complexity: Intermediate


 Description  « Hide
I have a need to pull mulitple legacy source trees from various scm:url into my local directory and invoke antrun to work on those trees.

So I use multiple executions of maven-scm-plugin:checkout to fetch the source at initialize phase, then invoke antrun to do the rest.
The annoy thing for every build is that scm:checkout remove my source tree and then fetch the source. This is the behavior we want
for normal case. However for my case the checkout is a lengthy process.

I would like to propose a new optiontion param skipCheckoutIfExists, with default to false to checkout mojo.

WDYT? skipCheckoutIfExists name sound acceptable?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Emmanuel Venisse - 14/May/06 02:43 AM
why don't you run something like this in a script:

if checkoutdir don't exists
run scm:checkout
else
run scm:update (or nothing)

I'm not really sure of the interest of this new parameter.


Dan Tran - 14/May/06 08:10 AM
I rather not using a script to do that since maven can do that as well ( just almost there)

I have multiple of this type of projects to be used solely for legacy to maven2 transitions.


Emmanuel Venisse - 15/May/06 06:36 AM
ok, you can provide a patch for it.

Dan Tran - 15/May/06 10:07 PM
fixed