maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r582553 - /maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java
Date Sat, 06 Oct 2007 23:21:42 GMT
Author: jvanzyl
Date: Sat Oct  6 16:21:40 2007
New Revision: 582553

URL: http://svn.apache.org/viewvc?rev=582553&view=rev
Log:
o more helpful hints to show generating a project from archetypes in with the embedder

Modified:
    maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java

Modified: maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java?rev=582553&r1=582552&r2=582553&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java
(original)
+++ maven/sandbox/trunk/archetypeng/archetypeng-common/src/test/java/org/apache/maven/archetype/test/ArchetypeGenerationTest.java
Sat Oct  6 16:21:40 2007
@@ -36,15 +36,25 @@
 
         Archetype selection = (Archetype) archetypes.get( 14 );
 
-        // With the selected Archetype you can create a generation request as follows:
+        // Now you will present a dialog, or whatever, and grab the following values.
+
+        String groupId = "com.mycompany";
+
+        String artifactId = "app";
+
+        String version = "1.0.0";
+
+        String packageName = "org.mycompany.app";
+
+        // With the selected Archetype and the parameters you can create a generation request
as follows:
 
         ArchetypeGenerationRequest agr = new ArchetypeGenerationRequest( selection )
             .setOutputDirectory( new File( getBasedir(), "target/output" ).getAbsolutePath()
)
             .setLocalRepository( localRepository )
-            .setGroupId( "foo" )
-            .setArtifactId( "bar" )
-            .setVersion( "1.0.0" )
-            .setPackage( "foo" );
+            .setGroupId( groupId )
+            .setArtifactId( artifactId )
+            .setVersion( version )
+            .setPackage( packageName );
 
         // Then generate away!
 



Mime
View raw message