You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Carlos Sanchez <ca...@apache.org> on 2004/11/22 23:49:22 UTC
scm:checkout-project overrides command line parameters when project.xml exists
Hi,
When I run
maven scm:checkout-project
-Dmaven.scm.method=cvs
-Dmaven.scm.cvs.module=.
-Dmaven.scm.cvs.root=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/oness
-Dmaven.scm.checkout.dir=oness
>From a dir with a project.xml, the cvs connection from it overrides the command line parameters. I have made a patch to check first
for maven.scm.cvs.root, maybe it should check for every of the properties?
<!-- Goal to validate SCM properties -->
<!--==================================================================-->
<goal name="scm:parse-connection">
+ <j:if test="${(context.getVariable('maven.scm.cvs.root') != null) and
+ (context.getVariable('maven.scm.cvs.root').length() > 0)}">
+ <j:set var="maven.scm.ignore.pom.connection" value="true"/>
+ </j:if>
<j:set var="checkValue" value="${maven.scm.ignore.pom.connection}"/>
<j:if test="${!checkValue}">
<j:set var="checkValue" value="${maven.scm.ignore.pom.developerConnection}"/>
Brett, please tell me if you want me to apply it. Also I don't know if there's a better option to check for an empty property.
Regards
Carlos Sanchez
A Coruña, Spain
http://www.jroller.com/page/carlossg
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org