You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/02/20 23:12:18 UTC
svn commit: r1072767 - in
/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype: ./
src/ src/main/ src/main/resources/ src/main/resources/archetype-resources/
src/main/resources/archetype-resources/src/
src/main/resources/archetype-resou...
Author: hboutemy
Date: Sun Feb 20 22:12:17 2011
New Revision: 1072767
URL: http://svn.apache.org/viewvc?rev=1072767&view=rev
Log:
added an archetype building IT with integration test to generate a project from the archetype
Added:
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt (with props)
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java (with props)
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties (with props)
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/goal.txt (with props)
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh (with props)
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt?rev=1072767&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt Sun Feb 20 22:12:17 2011
@@ -0,0 +1 @@
+clean integration-test
\ No newline at end of file
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/goals.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java?rev=1072767&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java Sun Feb 20 22:12:17 2011
@@ -0,0 +1,32 @@
+package ${package};
+
+/*
+ * 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.
+ */
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/java/App.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties?rev=1072767&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties Sun Feb 20 22:12:17 2011
@@ -0,0 +1,4 @@
+version=0.1-SNAPSHOT
+groupId=archetype.it
+artifactId=basic
+package=build.archetype
\ No newline at end of file
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/goal.txt
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/goal.txt?rev=1072767&view=auto
==============================================================================
(empty)
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/goal.txt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/goal.txt
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh?rev=1072767&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh Sun Feb 20 22:12:17 2011
@@ -0,0 +1,29 @@
+
+/*
+ * 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.
+ */
+
+import java.io.*;
+
+File target = new File( basedir, "target/test-classes/projects/basic/project/basic/src/main/java/build/archetype/App.java" );
+if ( !target.isFile() )
+{
+ throw new Exception( target + " file is missing or not a file." );
+}
+
+return true;
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision