You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2007/07/06 18:35:16 UTC

svn commit: r553946 [15/19] - in /maven/archetype/branches/maven-archetypeng: ./ maven-archetypeng-bundles/ maven-archetypeng-bundles/maven-archetypeng-archetype/ maven-archetypeng-bundles/maven-archetypeng-archetype/src/ maven-archetypeng-bundles/mave...

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java Fri Jul  6 09:34:35 2007
@@ -0,0 +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

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-fileset-1.0/archetype-resources/subproject/subsubproject/src/main/java/App.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<archetype>
+  <id>maven-archetype-test-old</id>
+  <sources>
+    <source>src/main/java/App.java</source>
+  </sources>
+  <resources>
+    <resource>src/main/resources/App.properties</resource>
+  </resources>
+  <siteResources>
+    <resource>src/site/site.xml</resource>
+  </siteResources>
+</archetype>

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/META-INF/archetype.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations 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 Old archetype</name>
+    <packaging>jar</packaging>
+
+</project>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java Fri Jul  6 09:34:35 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties Fri Jul  6 09:34:35 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/main/resources/App.properties
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-old-1.0/archetype-resources/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<archetype-descriptor id="test-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>
+
+</archetype-descriptor>

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations 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>
+</project>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java Fri Jul  6 09:34:35 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java Fri Jul  6 09:34:35 2007
@@ -0,0 +1,4 @@
+groupId=${groupId}
+artifactId=${artifactId}
+version=${version}
+package=${package}
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-partial-1.0/archetype-resources/src/test/java/AppTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<archetype-descriptor id="test-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>
+
+    <fileSets>
+        <fileSet filtered="true" packaged="false" >
+            <directory>src/site</directory>
+            <includes>
+                <include>**/*.xml</include>
+                <include>**/*.apt</include>
+            </includes>
+        </fileSet>
+    </fileSets>
+
+</archetype-descriptor>

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations 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 site</name>
+    <packaging>pom</packaging>
+</project>

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt Fri Jul  6 09:34:35 2007
@@ -0,0 +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

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/apt/test.apt
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +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

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/archetypes/maven-archetype-test-site-1.0/archetype-resources/src/site/site.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <groupId>org.codehaus.mojo.archetypes</groupId>
+    <artifactId>maven-archetype-test-fileset</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-fileset/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <groupId>org.codehaus.mojo.archetypes</groupId>
+    <artifactId>maven-archetype-test-old</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-old/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <groupId>org.codehaus.mojo.archetypes</groupId>
+    <artifactId>maven-archetype-test-partial</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-partial/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <groupId>org.codehaus.mojo.archetypes</groupId>
+    <artifactId>maven-archetype-test-site</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test-site/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <groupId>org.codehaus.mojo.archetypes</groupId>
+    <artifactId>maven-archetype-test</artifactId>
+    <versioning>
+        <latest>1.0</latest>
+        <release>1.0</release>
+        <versions>
+            <version>1.0</version>
+        </versions>
+        <lastUpdated>20060220044115</lastUpdated>
+    </versioning>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-archetype-test/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml Fri Jul  6 09:34:35 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Copyright 2006 The Apache Software Foundation.
+  ~
+  ~ Licensed under the Apache License, Version 2.0 (the "License");
+  ~ you may not use this file except in compliance with the License.
+  ~ You may obtain a copy of the License at
+  ~
+  ~      http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing, software
+  ~ distributed under the License is distributed on an "AS IS" BASIS,
+  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  ~ See the License for the specific language governing permissions and
+  ~ limitations under the License.
+-->
+<metadata>
+    <plugins>
+        <plugin>
+            <name>Maven TEST Complete Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>maven-archetype-test</artifactId>
+        </plugin>
+        <plugin>
+            <name>Maven TEST Partial Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>maven-archetype-test-partial</artifactId>
+        </plugin>
+        <plugin>
+            <name>Maven TEST Site Plugin</name>
+            <prefix>archetypes</prefix>
+            <artifactId>maven-archetype-test-site</artifactId>
+        </plugin>
+    </plugins>
+</metadata>
\ No newline at end of file

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/central-repository/maven-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java
URL: http://svn.apache.org/viewvc/maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java?view=auto&rev=553946
==============================================================================
--- maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java (added)
+++ maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java Fri Jul  6 09:34:35 2007
@@ -0,0 +1,709 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.codehaus.mojo.archetypeng.generator;
+
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.repository.DefaultArtifactRepository;
+import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+
+import org.codehaus.mojo.archetypeng.exception.ArchetypeNotConfigured;
+
+import org.codehaus.plexus.util.IOUtil;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+
+import java.util.Arrays;
+import java.util.List;
+import java.util.Properties;
+
+public class DefaultArchetypeGenerationConfiguratorTest
+extends AbstractMojoTestCase
+{
+    ArtifactRepository localRepository;
+    List repositories;
+
+    public void testBatchModeArchetypeNotDefined ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModeArchetypeNotDefined" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-1";
+        File propertyFile = getPropertiesFile ( project );
+        assertTrue ( !propertyFile.exists () || propertyFile.delete () );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertFalse ( propertyFile.exists () );
+
+        try
+        {
+            instance.configureArchetype (
+                interactiveMode,
+                propertyFile,
+                System.getProperties (),
+                localRepository,
+                repositories
+            );
+
+            fail ( "Exception must be thrown" );
+        }
+        catch ( FileNotFoundException e )
+        {
+            assertFalse ( propertyFile.exists () );
+        }
+    }
+
+    public void testBatchModeOldArchetype ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModeOldArchetype" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        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" );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals (
+            "maven-archetype-test-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" ) );
+    }
+
+    public void testBatchModePropertiesDefinedInFile ()
+    throws Exception
+    {
+        System.out.println ( "testBatchModePropertiesDefinedInSytem" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-4";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals ( "maven-archetype-test", 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 ( "XXXtestBatchModePropertiesDefinedInSystem" );
+
+        String archetypeGroupId = null;
+        String archetypeArtifactId = null;
+        String archetypeVersion = null;
+
+        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" );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals ( "maven-archetype-test", 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" );
+
+        String archetypeGroupId = "org.codehaus.mojo.archetypes";
+        String archetypeArtifactId = "maven-archetype-test";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.FALSE;
+
+        String project = "configure-2";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        assertTrue ( propertyFile.exists () );
+
+        try
+        {
+            instance.configureArchetype (
+                interactiveMode,
+                propertyFile,
+                System.getProperties (),
+                localRepository,
+                repositories
+            );
+
+            fail ( "Exception must be thrown" );
+        }
+        catch ( ArchetypeNotConfigured e )
+        {
+            assertEquals (
+                "Exception not correct",
+                "The archetype is not configurated",
+                e.getMessage ()
+            );
+        }
+    }
+
+    public void testInteractiveModeFileSetArchetype ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModeFileSetArchetype" );
+
+        String archetypeGroupId = "org.codehaus.mojo.archetypes";
+        String archetypeArtifactId = "maven-archetype-test-fileset";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-9";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        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" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals (
+            "maven-archetype-test-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" );
+
+        String archetypeGroupId = "org.codehaus.mojo.archetypes";
+        String archetypeArtifactId = "maven-archetype-test-old";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-8";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        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" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals (
+            "maven-archetype-test-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" ) );
+    }
+
+    public void testInteractiveModePropertiesNotDefined ()
+    throws Exception
+    {
+        System.out.println ( "testInteractiveModePropertiesNotDefined" );
+
+        String archetypeGroupId = "org.codehaus.mojo.archetypes";
+        String archetypeArtifactId = "maven-archetype-test";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-5";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        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" ),
+            "prompter",
+            prompter
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            System.getProperties (),
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals ( "maven-archetype-test", 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" );
+
+        String archetypeGroupId = "org.codehaus.mojo.archetypes";
+        String archetypeArtifactId = "maven-archetype-test";
+        String archetypeVersion = "1.0";
+
+        Boolean interactiveMode = Boolean.TRUE;
+
+        String project = "configure-6";
+        File propertyFile = getPropertiesFile ( project );
+        File propertyFileSample = getPropertiesSampleFile ( project );
+        copy ( propertyFileSample, propertyFile );
+
+        DefaultArchetypeGenerationConfigurator instance =
+            (DefaultArchetypeGenerationConfigurator) lookup (
+                ArchetypeGenerationConfigurator.ROLE
+            );
+        instanceDefined ( instance );
+
+        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" );
+
+        assertTrue ( propertyFile.exists () );
+
+        instance.configureArchetype (
+            interactiveMode,
+            propertyFile,
+            systemProperties,
+            localRepository,
+            repositories
+        );
+
+        assertTrue ( propertyFile.exists () );
+
+        Properties properties = loadProperties ( propertyFile );
+        assertEquals (
+            "org.codehaus.mojo.archetypes",
+            properties.getProperty ( "archetype.groupId" )
+        );
+        assertEquals ( "maven-archetype-test", 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 ( "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" ) );
+    }
+
+    protected void tearDown ()
+    throws Exception
+    {
+        super.tearDown ();
+    }
+
+    protected void setUp ()
+    throws Exception
+    {
+        super.setUp ();
+
+        localRepository =
+            new DefaultArtifactRepository (
+                "local",
+                new File ( getBasedir (), "target/test-classes/repositories/local" ).toURI ()
+                .toString (),
+                new DefaultRepositoryLayout ()
+            );
+
+        repositories =
+            Arrays.asList (
+                new ArtifactRepository[]
+                {
+                    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
+    {
+        Properties properties = new Properties ();
+        properties.load ( new FileInputStream ( propertyFile ) );
+        return properties;
+    }
+
+    private File getPropertiesFile ( String project )
+    {
+        return
+            new File (
+                getBasedir (),
+                "target/test-classes/projects/" + project + "/archetype.properties"
+            );
+    }
+
+    private File getPropertiesSampleFile ( final String project )
+    {
+        File propertyFileSample =
+            new File (
+                getBasedir (),
+                "target/test-classes/projects/" + project + "/archetype.properties.sample"
+            );
+        return propertyFileSample;
+    }
+}

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/archetype/branches/maven-archetypeng/maven-archetypeng-core/maven-archetypeng-generator/src/test/java/org/codehaus/mojo/archetypeng/generator/DefaultArchetypeGenerationConfiguratorTest.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"