maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r577504 [12/14] - in /maven/sandbox/trunk/archetypeng: ./ archetype-common/ archetype-common/src/main/java/org/apache/maven/archetype/common/ archetype-common/src/main/java/org/apache/maven/archetype/common/util/ archetype-common/src/main/j...
Date Thu, 20 Sep 2007 02:17:18 GMT
Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/old-1.0/archetype-resources/src/site/site.xml Wed Sep 19 19:17:13 2007
@@ -1,4 +1,4 @@
 groupId=${groupId}
-artifactId=${artifactId}
-version=${version}
-package=${package}
+  artifactId=${artifactId}
+  version=${version}
+  package=${package}

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/META-INF/maven/archetype-metadata.xml Wed Sep 19 19:17:13 2007
@@ -17,21 +17,21 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<archetype-descriptor name="partial" partial="true" >
+<archetype-descriptor name="partial" partial="true">
 
-    <fileSets>
-        <fileSet filtered="true" packaged="true" >
-            <directory>src/main/java</directory>
-            <includes>
-                <include>**/*.java</include>
-            </includes>
-        </fileSet>
-        <fileSet filtered="true" packaged="true" >
-            <directory>src/test/java</directory>
-            <includes>
-                <include>**/*.java</include>
-            </includes>
-        </fileSet>
-    </fileSets>
+  <fileSets>
+    <fileSet filtered="true" packaged="true">
+      <directory>src/main/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" packaged="true">
+      <directory>src/test/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+  </fileSets>
 
 </archetype-descriptor>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/partial-1.0/archetype-resources/pom.xml Wed Sep 19 19:17:13 2007
@@ -18,44 +18,44 @@
 under the License.
 -->
 <project
-    xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
-    <modelVersion>4.0.0</modelVersion>
-
-    <groupId>${groupId}</groupId>
-    <artifactId>${artifactId}</artifactId>
-    <version>${version}</version>
-
-    <name>Maven ArchetypeNG Test partial</name>
-    <packaging>jar</packaging>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.maven</groupId>
-            <artifactId>maven-model</artifactId>
-            <version>2.0</version>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <version>2.0</version>
-            </plugin>
-        </plugins>
-    </build>
-
-    <reporting>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-info-reports-plugin</artifactId>
-                <version>2.0</version>
-            </plugin>
-        </plugins>
-    </reporting>
+  xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>${version}</version>
+
+  <name>Maven ArchetypeNG Test partial</name>
+  <packaging>jar</packaging>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-model</artifactId>
+      <version>2.0</version>
+    </dependency>
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0</version>
+      </plugin>
+    </plugins>
+  </build>
+
+  <reporting>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-info-reports-plugin</artifactId>
+        <version>2.0</version>
+      </plugin>
+    </plugins>
+  </reporting>
 </project>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/META-INF/maven/archetype-metadata.xml Wed Sep 19 19:17:13 2007
@@ -17,39 +17,39 @@
 specific language governing permissions and limitations
 under the License.
 -->
-<archetype-descriptor name="site" >
+<archetype-descriptor name="site">
 
-    <requiredProperties>
-        <requiredProperty key="property-with-default-1" >
-            <defaultValue>default-value</defaultValue>
-        </requiredProperty>
-        <requiredProperty key="property-with-default-2" >
-            <defaultValue>default-value</defaultValue>
-        </requiredProperty>
-        <requiredProperty key="property-with-default-3" >
-            <defaultValue>default-value</defaultValue>
-        </requiredProperty>
-        <requiredProperty key="property-with-default-4" >
-            <defaultValue>default-value</defaultValue>
-        </requiredProperty>
-        <requiredProperty key="property-without-default-1" >
-        </requiredProperty>
-        <requiredProperty key="property-without-default-2" >
-        </requiredProperty>
-        <requiredProperty key="property-without-default-3" >
-        </requiredProperty>
-        <requiredProperty key="property-without-default-4" >
-        </requiredProperty>
-    </requiredProperties>
+  <requiredProperties>
+    <requiredProperty key="property-with-default-1">
+      <defaultValue>default-value</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="property-with-default-2">
+      <defaultValue>default-value</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="property-with-default-3">
+      <defaultValue>default-value</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="property-with-default-4">
+      <defaultValue>default-value</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="property-without-default-1">
+    </requiredProperty>
+    <requiredProperty key="property-without-default-2">
+    </requiredProperty>
+    <requiredProperty key="property-without-default-3">
+    </requiredProperty>
+    <requiredProperty key="property-without-default-4">
+    </requiredProperty>
+  </requiredProperties>
 
-    <fileSets>
-        <fileSet filtered="true" packaged="false" >
-            <directory>src/site</directory>
-            <includes>
-                <include>**/*.xml</include>
-                <include>**/*.apt</include>
-            </includes>
-        </fileSet>
-    </fileSets>
+  <fileSets>
+    <fileSet filtered="true" packaged="false">
+      <directory>src/site</directory>
+      <includes>
+        <include>**/*.xml</include>
+        <include>**/*.apt</include>
+      </includes>
+    </fileSet>
+  </fileSets>
 
 </archetype-descriptor>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/pom.xml Wed Sep 19 19:17:13 2007
@@ -18,16 +18,16 @@
 under the License.
 -->
 <project
-    xmlns="http://maven.apache.org/POM/4.0.0"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  xmlns="http://maven.apache.org/POM/4.0.0"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
 
-    <modelVersion>4.0.0</modelVersion>
+  <modelVersion>4.0.0</modelVersion>
 
-    <groupId>${groupId}</groupId>
-    <artifactId>${artifactId}</artifactId>
-    <version>${version}</version>
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <version>${version}</version>
 
-    <name>Maven ArchetypeNG Test site</name>
-    <packaging>pom</packaging>
+  <name>Maven ArchetypeNG Test site</name>
+  <packaging>pom</packaging>
 </project>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/archetypes/site-1.0/archetype-resources/src/site/site.xml Wed Sep 19 19:17:13 2007
@@ -1,12 +1,12 @@
 groupId=${groupId}
-artifactId=${artifactId}
-version=${version}
-package=${package}
-property-without-default-1=${property-without-default-1}
-property-without-default-2=${property-without-default-2}
-property-without-default-3=${property-without-default-3}
-property-without-default-4=${property-without-default-4}
-property-with-default-1=${property-with-default-1}
-property-with-default-2=${property-with-default-2}
-property-with-default-3=${property-with-default-3}
-property-with-default-4=${property-with-default-4}
\ No newline at end of file
+  artifactId=${artifactId}
+  version=${version}
+  package=${package}
+  property-without-default-1=${property-without-default-1}
+  property-without-default-2=${property-without-default-2}
+  property-without-default-3=${property-without-default-3}
+  property-without-default-4=${property-without-default-4}
+  property-with-default-1=${property-with-default-1}
+  property-with-default-2=${property-with-default-2}
+  property-with-default-3=${property-with-default-3}
+  property-with-default-4=${property-with-default-4}
\ No newline at end of file

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/basic/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,14 +18,14 @@
 under the License.
 -->
 <metadata>
-    <groupId>archetypes</groupId>
-    <artifactId>basic</artifactId>
-    <versioning>
-        <latest>1.0</latest>
-        <release>1.0</release>
-        <versions>
-            <version>1.0</version>
-        </versions>
-        <lastUpdated>20060220044115</lastUpdated>
-    </versioning>
+  <groupId>archetypes</groupId>
+  <artifactId>basic</artifactId>
+  <versioning>
+    <latest>1.0</latest>
+    <release>1.0</release>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20060220044115</lastUpdated>
+  </versioning>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/fileset/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,14 +18,14 @@
 under the License.
 -->
 <metadata>
-    <groupId>archetypes</groupId>
-    <artifactId>fileset</artifactId>
-    <versioning>
-        <latest>1.0</latest>
-        <release>1.0</release>
-        <versions>
-            <version>1.0</version>
-        </versions>
-        <lastUpdated>20060220044115</lastUpdated>
-    </versioning>
+  <groupId>archetypes</groupId>
+  <artifactId>fileset</artifactId>
+  <versioning>
+    <latest>1.0</latest>
+    <release>1.0</release>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20060220044115</lastUpdated>
+  </versioning>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,21 +18,21 @@
 under the License.
 -->
 <metadata>
-    <plugins>
-        <plugin>
-            <name>Maven TEST Complete Plugin</name>
-            <prefix>archetypes</prefix>
-            <artifactId>basic</artifactId>
-        </plugin>
-        <plugin>
-            <name>Maven TEST Partial Plugin</name>
-            <prefix>archetypes</prefix>
-            <artifactId>partial</artifactId>
-        </plugin>
-        <plugin>
-            <name>Maven TEST Site Plugin</name>
-            <prefix>archetypes</prefix>
-            <artifactId>site</artifactId>
-        </plugin>
-    </plugins>
+  <plugins>
+    <plugin>
+      <name>Maven TEST Complete Plugin</name>
+      <prefix>archetypes</prefix>
+      <artifactId>basic</artifactId>
+    </plugin>
+    <plugin>
+      <name>Maven TEST Partial Plugin</name>
+      <prefix>archetypes</prefix>
+      <artifactId>partial</artifactId>
+    </plugin>
+    <plugin>
+      <name>Maven TEST Site Plugin</name>
+      <prefix>archetypes</prefix>
+      <artifactId>site</artifactId>
+    </plugin>
+  </plugins>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/old/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,14 +18,14 @@
 under the License.
 -->
 <metadata>
-    <groupId>archetypes</groupId>
-    <artifactId>old</artifactId>
-    <versioning>
-        <latest>1.0</latest>
-        <release>1.0</release>
-        <versions>
-            <version>1.0</version>
-        </versions>
-        <lastUpdated>20060220044115</lastUpdated>
-    </versioning>
+  <groupId>archetypes</groupId>
+  <artifactId>old</artifactId>
+  <versioning>
+    <latest>1.0</latest>
+    <release>1.0</release>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20060220044115</lastUpdated>
+  </versioning>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/partial/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,14 +18,14 @@
 under the License.
 -->
 <metadata>
-    <groupId>archetypes</groupId>
-    <artifactId>partial</artifactId>
-    <versioning>
-        <latest>1.0</latest>
-        <release>1.0</release>
-        <versions>
-            <version>1.0</version>
-        </versions>
-        <lastUpdated>20060220044115</lastUpdated>
-    </versioning>
+  <groupId>archetypes</groupId>
+  <artifactId>partial</artifactId>
+  <versioning>
+    <latest>1.0</latest>
+    <release>1.0</release>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20060220044115</lastUpdated>
+  </versioning>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/central-repository/site/maven-metadata.xml Wed Sep 19 19:17:13 2007
@@ -18,14 +18,14 @@
 under the License.
 -->
 <metadata>
-    <groupId>archetypes</groupId>
-    <artifactId>site</artifactId>
-    <versioning>
-        <latest>1.0</latest>
-        <release>1.0</release>
-        <versions>
-            <version>1.0</version>
-        </versions>
-        <lastUpdated>20060220044115</lastUpdated>
-    </versioning>
+  <groupId>archetypes</groupId>
+  <artifactId>site</artifactId>
+  <versioning>
+    <latest>1.0</latest>
+    <release>1.0</release>
+    <versions>
+      <version>1.0</version>
+    </versions>
+    <lastUpdated>20060220044115</lastUpdated>
+  </versioning>
 </metadata>

Modified: maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java
URL: http://svn.apache.org/viewvc/maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java?rev=577504&r1=577503&r2=577504&view=diff
==============================================================================
--- maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java (original)
+++ maven/sandbox/trunk/archetypeng/archetype-generator/src/test/java/org/apache/maven/archetype/generator/DefaultArchetypeGenerationConfiguratorTest.java Wed Sep 19 19:17:13 2007
@@ -39,15 +39,16 @@
 import java.util.Properties;
 
 public class DefaultArchetypeGenerationConfiguratorTest
-extends AbstractMojoTestCase
+    extends AbstractMojoTestCase
 {
     ArtifactRepository localRepository;
     List repositories;
 
-    public void testBatchModeArchetypeNotDefined ()
-    throws Exception
+    public void testBatchModeArchetypeNotDefined()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModeArchetypeNotDefined" );
+        System.out.println( "testBatchModeArchetypeNotDefined" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -56,39 +57,40 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "configure-1";
-        File propertyFile = getPropertiesFile ( project );
-        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+        File propertyFile = getPropertiesFile( project );
+        assertTrue( !propertyFile.exists() || propertyFile.delete() );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertFalse ( propertyFile.exists () );
+        assertFalse( propertyFile.exists() );
 
         try
         {
-            instance.configureArchetype (
+            instance.configureArchetype(
                 interactiveMode,
                 propertyFile,
-                System.getProperties (),
+                System.getProperties(),
                 localRepository,
                 repositories
             );
 
-            fail ( "Exception must be thrown" );
+            fail( "Exception must be thrown" );
         }
         catch ( FileNotFoundException e )
         {
-            assertFalse ( propertyFile.exists () );
+            assertFalse( propertyFile.exists() );
         }
     }
 
-    public void testBatchModeOldArchetype ()
-    throws Exception
+    public void testBatchModeOldArchetype()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModeOldArchetype" );
+        System.out.println( "testBatchModeOldArchetype" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -97,25 +99,25 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "configure-7";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
-
-        Properties systemProperties = new Properties ();
-        systemProperties.setProperty ( "groupId", "system-value" );
-        systemProperties.setProperty ( "artifactId", "system-value" );
-        systemProperties.setProperty ( "version", "system-value" );
-        systemProperties.setProperty ( "package", "system-value" );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
+
+        Properties systemProperties = new Properties();
+        systemProperties.setProperty( "groupId", "system-value" );
+        systemProperties.setProperty( "artifactId", "system-value" );
+        systemProperties.setProperty( "version", "system-value" );
+        systemProperties.setProperty( "package", "system-value" );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
             systemProperties,
@@ -123,23 +125,24 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "old", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "old", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
 
-        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
-        assertEquals ( "system-value", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "system-value", properties.getProperty ( "version" ) );
-        assertEquals ( "system-value", properties.getProperty ( "package" ) );
+        assertEquals( "system-value", properties.getProperty( "groupId" ) );
+        assertEquals( "system-value", properties.getProperty( "artifactId" ) );
+        assertEquals( "system-value", properties.getProperty( "version" ) );
+        assertEquals( "system-value", properties.getProperty( "package" ) );
     }
 
-    public void testBatchModePropertiesDefinedInFile ()
-    throws Exception
+    public void testBatchModePropertiesDefinedInFile()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesDefinedInSytem" );
+        System.out.println( "testBatchModePropertiesDefinedInSytem" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -148,51 +151,52 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "configure-4";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
-            System.getProperties (),
+            System.getProperties(),
             localRepository,
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
-
-        assertEquals ( "file-value", properties.getProperty ( "groupId" ) );
-        assertEquals ( "file-value", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "file-value", properties.getProperty ( "version" ) );
-        assertEquals ( "file-value", properties.getProperty ( "package" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-with-default-1" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-with-default-2" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-with-default-3" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-with-default-4" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-without-default-1" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-without-default-2" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-without-default-3" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-without-default-4" ) );
-    }
-
-    public void testBatchModePropertiesDefinedInSystem ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+
+        assertEquals( "file-value", properties.getProperty( "groupId" ) );
+        assertEquals( "file-value", properties.getProperty( "artifactId" ) );
+        assertEquals( "file-value", properties.getProperty( "version" ) );
+        assertEquals( "file-value", properties.getProperty( "package" ) );
+        assertEquals( "file-value", properties.getProperty( "property-with-default-1" ) );
+        assertEquals( "file-value", properties.getProperty( "property-with-default-2" ) );
+        assertEquals( "file-value", properties.getProperty( "property-with-default-3" ) );
+        assertEquals( "file-value", properties.getProperty( "property-with-default-4" ) );
+        assertEquals( "file-value", properties.getProperty( "property-without-default-1" ) );
+        assertEquals( "file-value", properties.getProperty( "property-without-default-2" ) );
+        assertEquals( "file-value", properties.getProperty( "property-without-default-3" ) );
+        assertEquals( "file-value", properties.getProperty( "property-without-default-4" ) );
+    }
+
+    public void testBatchModePropertiesDefinedInSystem()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesDefinedInSystem" );
+        System.out.println( "testBatchModePropertiesDefinedInSystem" );
 
         String archetypeGroupId = null;
         String archetypeArtifactId = null;
@@ -201,33 +205,33 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "configure-3";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
-
-        Properties systemProperties = new Properties ();
-        systemProperties.setProperty ( "groupId", "system-value" );
-        systemProperties.setProperty ( "artifactId", "system-value" );
-        systemProperties.setProperty ( "version", "system-value" );
-        systemProperties.setProperty ( "package", "system-value" );
-        systemProperties.setProperty ( "property-with-default-1", "system-value" );
-        systemProperties.setProperty ( "property-with-default-2", "system-value" );
-        systemProperties.setProperty ( "property-with-default-3", "system-value" );
-        systemProperties.setProperty ( "property-with-default-4", "system-value" );
-        systemProperties.setProperty ( "property-without-default-1", "system-value" );
-        systemProperties.setProperty ( "property-without-default-2", "system-value" );
-        systemProperties.setProperty ( "property-without-default-3", "system-value" );
-        systemProperties.setProperty ( "property-without-default-4", "system-value" );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
+
+        Properties systemProperties = new Properties();
+        systemProperties.setProperty( "groupId", "system-value" );
+        systemProperties.setProperty( "artifactId", "system-value" );
+        systemProperties.setProperty( "version", "system-value" );
+        systemProperties.setProperty( "package", "system-value" );
+        systemProperties.setProperty( "property-with-default-1", "system-value" );
+        systemProperties.setProperty( "property-with-default-2", "system-value" );
+        systemProperties.setProperty( "property-with-default-3", "system-value" );
+        systemProperties.setProperty( "property-with-default-4", "system-value" );
+        systemProperties.setProperty( "property-without-default-1", "system-value" );
+        systemProperties.setProperty( "property-without-default-2", "system-value" );
+        systemProperties.setProperty( "property-without-default-3", "system-value" );
+        systemProperties.setProperty( "property-without-default-4", "system-value" );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
             systemProperties,
@@ -235,31 +239,32 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
-
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
-
-        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
-        assertEquals ( "system-value", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "system-value", properties.getProperty ( "version" ) );
-        assertEquals ( "system-value", properties.getProperty ( "package" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-1" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-2" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-3" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-4" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-1" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-2" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-3" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-4" ) );
-    }
+        assertTrue( propertyFile.exists() );
 
-    public void testBatchModePropertiesNotDefined ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+
+        assertEquals( "system-value", properties.getProperty( "groupId" ) );
+        assertEquals( "system-value", properties.getProperty( "artifactId" ) );
+        assertEquals( "system-value", properties.getProperty( "version" ) );
+        assertEquals( "system-value", properties.getProperty( "package" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-1" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-2" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-3" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-4" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-1" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-2" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-3" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-4" ) );
+    }
+
+    public void testBatchModePropertiesNotDefined()
+        throws
+        Exception
     {
-        System.out.println ( "testBatchModePropertiesNotDefined" );
+        System.out.println( "testBatchModePropertiesNotDefined" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -268,44 +273,45 @@
         Boolean interactiveMode = Boolean.FALSE;
 
         String project = "configure-2";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
         try
         {
-            instance.configureArchetype (
+            instance.configureArchetype(
                 interactiveMode,
                 propertyFile,
-                System.getProperties (),
+                System.getProperties(),
                 localRepository,
                 repositories
             );
 
-            fail ( "Exception must be thrown" );
+            fail( "Exception must be thrown" );
         }
         catch ( ArchetypeNotConfigured e )
         {
-            assertEquals (
+            assertEquals(
                 "Exception not correct",
                 "The archetype is not configurated",
-                e.getMessage ()
+                e.getMessage()
             );
         }
     }
 
-    public void testInteractiveModeFileSetArchetype ()
-    throws Exception
+    public void testInteractiveModeFileSetArchetype()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModeFileSetArchetype" );
+        System.out.println( "testInteractiveModeFileSetArchetype" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "fileset";
@@ -314,80 +320,81 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "configure-9";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "N" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "N" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeGenerationQueryer" ),
             "prompter",
             prompter
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
-            System.getProperties (),
+            System.getProperties(),
             localRepository,
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "fileset", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
-
-        assertEquals ( "user-value2", properties.getProperty ( "groupId" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "version" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "package" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-1" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-2" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-3" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-4" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-1" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-2" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-3" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-4" ) );
-    }
-
-    public void testInteractiveModeOldArchetype ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "fileset", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+
+        assertEquals( "user-value2", properties.getProperty( "groupId" ) );
+        assertEquals( "user-value2", properties.getProperty( "artifactId" ) );
+        assertEquals( "user-value2", properties.getProperty( "version" ) );
+        assertEquals( "user-value2", properties.getProperty( "package" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-1" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-2" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-3" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-4" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-1" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-2" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-3" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-4" ) );
+    }
+
+    public void testInteractiveModeOldArchetype()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+        System.out.println( "testInteractiveModePropertiesNotDefined" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "old";
@@ -396,55 +403,56 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "configure-8";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeGenerationQueryer" ),
             "prompter",
             prompter
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
-            System.getProperties (),
+            System.getProperties(),
             localRepository,
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "old", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "old", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
 
-        assertEquals ( "user-value", properties.getProperty ( "groupId" ) );
-        assertEquals ( "user-value", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "user-value", properties.getProperty ( "version" ) );
-        assertEquals ( "user-value", properties.getProperty ( "package" ) );
+        assertEquals( "user-value", properties.getProperty( "groupId" ) );
+        assertEquals( "user-value", properties.getProperty( "artifactId" ) );
+        assertEquals( "user-value", properties.getProperty( "version" ) );
+        assertEquals( "user-value", properties.getProperty( "package" ) );
     }
 
-    public void testInteractiveModePropertiesNotDefined ()
-    throws Exception
+    public void testInteractiveModePropertiesNotDefined()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+        System.out.println( "testInteractiveModePropertiesNotDefined" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -453,80 +461,81 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "configure-5";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "N" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "user-value2" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "N" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "user-value2" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeGenerationQueryer" ),
             "prompter",
             prompter
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
-            System.getProperties (),
+            System.getProperties(),
             localRepository,
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
-
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
-
-        assertEquals ( "user-value2", properties.getProperty ( "groupId" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "version" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "package" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-1" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-2" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-3" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-with-default-4" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-1" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-2" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-3" ) );
-        assertEquals ( "user-value2", properties.getProperty ( "property-without-default-4" ) );
-    }
+        assertTrue( propertyFile.exists() );
 
-    public void testInteractiveModePropertiesOverrided ()
-    throws Exception
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
+
+        assertEquals( "user-value2", properties.getProperty( "groupId" ) );
+        assertEquals( "user-value2", properties.getProperty( "artifactId" ) );
+        assertEquals( "user-value2", properties.getProperty( "version" ) );
+        assertEquals( "user-value2", properties.getProperty( "package" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-1" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-2" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-3" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-with-default-4" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-1" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-2" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-3" ) );
+        assertEquals( "user-value2", properties.getProperty( "property-without-default-4" ) );
+    }
+
+    public void testInteractiveModePropertiesOverrided()
+        throws
+        Exception
     {
-        System.out.println ( "testInteractiveModePropertiesOverrided" );
+        System.out.println( "testInteractiveModePropertiesOverrided" );
 
         String archetypeGroupId = "archetypes";
         String archetypeArtifactId = "basic";
@@ -535,37 +544,37 @@
         Boolean interactiveMode = Boolean.TRUE;
 
         String project = "configure-6";
-        File propertyFile = getPropertiesFile ( project );
-        File propertyFileSample = getPropertiesSampleFile ( project );
-        copy ( propertyFileSample, propertyFile );
+        File propertyFile = getPropertiesFile( project );
+        File propertyFileSample = getPropertiesSampleFile( project );
+        copy( propertyFileSample, propertyFile );
 
         DefaultArchetypeGenerationConfigurator instance =
-            (DefaultArchetypeGenerationConfigurator) lookup (
+            (DefaultArchetypeGenerationConfigurator) lookup(
                 ArchetypeGenerationConfigurator.ROLE
             );
-        instanceDefined ( instance );
+        instanceDefined( instance );
 
-        MockPrompter prompter = new MockPrompter ();
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "user-value" );
-        prompter.addAnswer ( "Y" );
-        setVariableValueToObject (
-            getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ),
+        MockPrompter prompter = new MockPrompter();
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "user-value" );
+        prompter.addAnswer( "Y" );
+        setVariableValueToObject(
+            getVariableValueFromObject( instance, "archetypeGenerationQueryer" ),
             "prompter",
             prompter
         );
 
-        Properties systemProperties = new Properties ();
-        systemProperties.setProperty ( "groupId", "system-value" );
-        systemProperties.setProperty ( "version", "system-value" );
-        systemProperties.setProperty ( "property-with-default-1", "system-value" );
-        systemProperties.setProperty ( "property-with-default-3", "system-value" );
-        systemProperties.setProperty ( "property-without-default-1", "system-value" );
-        systemProperties.setProperty ( "property-without-default-3", "system-value" );
+        Properties systemProperties = new Properties();
+        systemProperties.setProperty( "groupId", "system-value" );
+        systemProperties.setProperty( "version", "system-value" );
+        systemProperties.setProperty( "property-with-default-1", "system-value" );
+        systemProperties.setProperty( "property-with-default-3", "system-value" );
+        systemProperties.setProperty( "property-without-default-1", "system-value" );
+        systemProperties.setProperty( "property-without-default-3", "system-value" );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        instance.configureArchetype (
+        instance.configureArchetype(
             interactiveMode,
             propertyFile,
             systemProperties,
@@ -573,104 +582,112 @@
             repositories
         );
 
-        assertTrue ( propertyFile.exists () );
+        assertTrue( propertyFile.exists() );
 
-        Properties properties = loadProperties ( propertyFile );
-        assertEquals ( "archetypes", properties.getProperty ( "archetype.groupId" ) );
-        assertEquals ( "basic", properties.getProperty ( "archetype.artifactId" ) );
-        assertEquals ( "1.0", properties.getProperty ( "archetype.version" ) );
+        Properties properties = loadProperties( propertyFile );
+        assertEquals( "archetypes", properties.getProperty( "archetype.groupId" ) );
+        assertEquals( "basic", properties.getProperty( "archetype.artifactId" ) );
+        assertEquals( "1.0", properties.getProperty( "archetype.version" ) );
 
-        assertEquals ( "system-value", properties.getProperty ( "groupId" ) );
-        assertEquals ( "file-value", properties.getProperty ( "artifactId" ) );
-        assertEquals ( "system-value", properties.getProperty ( "version" ) );
-        assertEquals ( "user-value", properties.getProperty ( "package" ) );
+        assertEquals( "system-value", properties.getProperty( "groupId" ) );
+        assertEquals( "file-value", properties.getProperty( "artifactId" ) );
+        assertEquals( "system-value", properties.getProperty( "version" ) );
+        assertEquals( "user-value", properties.getProperty( "package" ) );
 
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-1" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-with-default-2" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-with-default-3" ) );
-        assertEquals ( "default-value", properties.getProperty ( "property-with-default-4" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-1" ) );
+        assertEquals( "file-value", properties.getProperty( "property-with-default-2" ) );
+        assertEquals( "system-value", properties.getProperty( "property-with-default-3" ) );
+        assertEquals( "default-value", properties.getProperty( "property-with-default-4" ) );
 
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-1" ) );
-        assertEquals ( "file-value", properties.getProperty ( "property-without-default-2" ) );
-        assertEquals ( "system-value", properties.getProperty ( "property-without-default-3" ) );
-        assertEquals ( "user-value", properties.getProperty ( "property-without-default-4" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-1" ) );
+        assertEquals( "file-value", properties.getProperty( "property-without-default-2" ) );
+        assertEquals( "system-value", properties.getProperty( "property-without-default-3" ) );
+        assertEquals( "user-value", properties.getProperty( "property-without-default-4" ) );
     }
 
-    protected void tearDown ()
-    throws Exception
+    protected void tearDown()
+        throws
+        Exception
     {
-        super.tearDown ();
+        super.tearDown();
     }
 
-    protected void setUp ()
-    throws Exception
+    protected void setUp()
+        throws
+        Exception
     {
-        super.setUp ();
+        super.setUp();
 
         localRepository =
-            new DefaultArtifactRepository (
+            new DefaultArtifactRepository(
                 "local",
-                new File ( getBasedir (), "target/test-classes/repositories/local" ).toURI ()
-                .toString (),
-                new DefaultRepositoryLayout ()
+                new File( getBasedir(), "target/test-classes/repositories/local" ).toURI()
+                    .toString(),
+                new DefaultRepositoryLayout()
             );
 
         repositories =
-            Arrays.asList (
+            Arrays.asList(
                 new ArtifactRepository[]
-                {
-                    new DefaultArtifactRepository (
-                        "central",
-                        new File ( getBasedir (), "target/test-classes/repositories/central" )
-                        .toURI ().toString (),
-                        new DefaultRepositoryLayout ()
-                    )
-                }
+                    {
+                        new DefaultArtifactRepository(
+                            "central",
+                            new File( getBasedir(), "target/test-classes/repositories/central" )
+                                .toURI().toString(),
+                            new DefaultRepositoryLayout()
+                        )
+                    }
             );
     }
 
-    private void copy ( final File in, final File out )
-    throws IOException, FileNotFoundException
-    {
-        assertTrue ( !out.exists () || out.delete () );
-        assertFalse ( out.exists () );
-        IOUtil.copy ( new FileReader ( in ), new FileWriter ( out ) );
-        assertTrue ( out.exists () );
-        assertTrue ( in.exists () );
-    }
-
-    private void instanceDefined ( DefaultArchetypeGenerationConfigurator instance )
-    throws IllegalAccessException
-    {
-        assertNotNull ( instance );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeArtifactManager" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeFactory" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypeGenerationQueryer" ) );
-        assertNotNull ( getVariableValueFromObject ( instance, "archetypePropertiesManager" ) );
-    }
-
-    private Properties loadProperties ( File propertyFile )
-    throws IOException, FileNotFoundException
+    private void copy( final File in,
+                       final File out )
+        throws
+        IOException,
+        FileNotFoundException
+    {
+        assertTrue( !out.exists() || out.delete() );
+        assertFalse( out.exists() );
+        IOUtil.copy( new FileReader( in ), new FileWriter( out ) );
+        assertTrue( out.exists() );
+        assertTrue( in.exists() );
+    }
+
+    private void instanceDefined( DefaultArchetypeGenerationConfigurator instance )
+        throws
+        IllegalAccessException
+    {
+        assertNotNull( instance );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeArtifactManager" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeFactory" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypeGenerationQueryer" ) );
+        assertNotNull( getVariableValueFromObject( instance, "archetypePropertiesManager" ) );
+    }
+
+    private Properties loadProperties( File propertyFile )
+        throws
+        IOException,
+        FileNotFoundException
     {
-        Properties properties = new Properties ();
-        properties.load ( new FileInputStream ( propertyFile ) );
+        Properties properties = new Properties();
+        properties.load( new FileInputStream( propertyFile ) );
         return properties;
     }
 
-    private File getPropertiesFile ( String project )
+    private File getPropertiesFile( String project )
     {
         return
-            new File (
-                getBasedir (),
+            new File(
+                getBasedir(),
                 "target/test-classes/projects/" + project + "/archetype.properties"
             );
     }
 
-    private File getPropertiesSampleFile ( final String project )
+    private File getPropertiesSampleFile( final String project )
     {
         File propertyFileSample =
-            new File (
-                getBasedir (),
+            new File(
+                getBasedir(),
                 "target/test-classes/projects/" + project + "/archetype.properties.sample"
             );
         return propertyFileSample;



Mime
View raw message