I figured this out and posting the solution here just in case someone else encounters the same question.

There are two ways to checkout a CVS module to a specific directory (shortening CVS module path): (1) Via project.properties file. Set the value for the following property to the command line args, for instance
maven.scm.cvs.checkout.flags=-P -d releng.project-maventest

(2) Via maven.xml. Set up a preGoal as follows
 <preGoal name="scm:checkout-project">
<j:set var="maven.scm.cvs.checkout.flags" value="${maven.scm.cvs.checkout.flags} -d releng.project-maventest " />
 </preGoal>

Cheers,

Rahul




Rahul wrote:

Greetings,

How can I pass extra command line arguments to Maven scm:checkout-project goal.

My project  is set up as follows in CVS
+ projects
   + releng
      + project-maventest


and, I need to check it out to a directory as follows:
   releng.project-maventest

With an Ant script I could used a nested commandline task within Ant's cvs task like this : <cvs failonerror="yes" output="@{attr.cvs.checkout.dir}/cvs.log" dest="@{attr.cvs.checkout.dir}">
            <commandline>
                    <argument value="-d" />
                   <argument value="releng.project-maventest" />
            </commandline>
</cvs>

My question is:
What would be a nice, clean way to get this functionality with SCM plugin? Do I really need to override the default goal with mine?

I am happy to submit a patch for the plugin if this sounds like a good addition to SCM plugin.

TIA,

Rahul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to