You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ra...@apache.org on 2007/12/05 18:56:09 UTC

svn commit: r601451 - /maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java

Author: rafale
Date: Wed Dec  5 09:56:08 2007
New Revision: 601451

URL: http://svn.apache.org/viewvc?rev=601451&view=rev
Log:
Added some javadoc

Modified:
    maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java

Modified: maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java?rev=601451&r1=601450&r2=601451&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java (original)
+++ maven/sandbox/trunk/archetypeng/archetypeng-plugin/src/main/java/org/apache/maven/archetype/mojos/CreateProjectFromArchetypeMojo.java Wed Dec  5 09:56:08 2007
@@ -95,6 +95,13 @@
 
     /**
      * The archetype's catalogs.
+     * It is a comma separated list of catalogs.
+     * Catalogs use scheme:
+     * - 'file://...' with archetype-catalog.xml automatically appended when defining a directory
+     * - 'http://...' with archetype-catalog.xml always appended
+     * - 'local' which is the shortcut for 'file://~/.m2/archetype-catalog.xml'
+     * - 'remote' which is the shortcut for 'http://repo1.maven.org/maven2'
+     * - 'internal' which is an internal catalog
      *
      * @parameter expression="${archetypeCatalog}" default-value="internal"
      */
@@ -121,8 +128,6 @@
     /** @parameter expression="${basedir}" */
     private File basedir;
 
-    private Properties executionProperties;
-
     /** 
      *  @parameter expression="${session}" 
      *  @readonly
@@ -139,7 +144,7 @@
         throws MojoExecutionException, MojoFailureException
     {
         
-        executionProperties = session.getExecutionProperties();
+        Properties executionProperties = session.getExecutionProperties();
         
         ArchetypeGenerationRequest request = new ArchetypeGenerationRequest()
             .setArchetypeGroupId( archetypeGroupId )