You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2005/01/07 14:31:28 UTC

[jira] Closed: (MPSCM-22) scm:bootstrap goal cannot use the maven.scm.bootstrap.pom.dir

Message:

   The following issue has been closed.

   Resolver: Brett Porter
       Date: Fri, 7 Jan 2005 8:29 AM

duplicate of MPSCM-33, fixed
---------------------------------------------------------------------
View the issue:
  http://jira.codehaus.org/browse/MPSCM-22

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MPSCM-22
    Summary: scm:bootstrap goal cannot use the maven.scm.bootstrap.pom.dir
       Type: Bug

     Status: Closed
   Priority: Major
 Resolution: DUPLICATE

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: maven-scm-plugin
   Versions:
             1.4

   Assignee: Brett Porter
   Reporter: Neil Imms

    Created: Wed, 4 Aug 2004 9:24 AM
    Updated: Fri, 7 Jan 2005 8:29 AM
Environment: Unix, Windows

Description:
I have been trying to use the scm:botstrap-project goal, and was confused when the project tried to bootstrap from my 'maven.scm.checkout.dir' rather than the 'maven.scm.bootstrap.pom.dir' that I had specified.

Inspection of the plugin.jelly showed that  'maven.scm.bootstrap.pom.dir' was set to 'maven.scm.checkout.dir'  in the scm:checkout-project goal, a prerequisite of scm:botstrap-project goal.

I cannot see a reason why this is done, as the two properties are defined as separate options. I altered the checkout-project goal, see below, and the bootstrap worked correctly.

  <goal name="scm:cvs-checkout-project">
    <j:set var="msg" value="Checking out ${maven.scm.cvs.module}" />
    <j:set var="value" value="${maven.scm.cvs.root}"/>
    <j:if test="${!empty(value)}">
      <j:set var="msg" value="${msg}; from CVSROOT: ${value}" />
    </j:if>
    <j:set var="value" value="${maven.scm.cvs.sticky.tag}"/>
    <j:if test="${!empty(value)}">
      <j:set var="msg" value="${msg}; using tag: ${value}" />
    </j:if>
    <ant:echo>${msg}</ant:echo>

    <ant:delete dir="${maven.scm.checkout.dir}"/>
    <ant:mkdir dir="${maven.scm.checkout.dir}"/>
    <ant:cvs command="checkout ${maven.scm.cvs.checkout.flags}"
      quiet="${maven.scm.cvs.quiet}"
      cvsRsh="${maven.scm.cvs.rsh}"
      cvsRoot="${maven.scm.cvs.root}"
      dest="${maven.scm.checkout.dir}"
      package="${maven.scm.cvs.module}"
      tag="${maven.scm.cvs.sticky.tag}"
      failonerror="true"
      />
  </goal>



---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org