You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by an...@apache.org on 2013/02/12 15:08:48 UTC
svn commit: r1445175 - in /maven/archetype/trunk/maven-archetype-plugin:
pom.xml src/it/generate-basic/ src/it/generate-basic/invoker.properties
src/it/generate-basic/verify.bsh
Author: andham
Date: Tue Feb 12 14:08:48 2013
New Revision: 1445175
URL: http://svn.apache.org/r1445175
Log:
Added a basic IT for generate goal.
Added:
maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/
maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties (with props)
maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh (with props)
Modified:
maven/archetype/trunk/maven-archetype-plugin/pom.xml
Modified: maven/archetype/trunk/maven-archetype-plugin/pom.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/pom.xml?rev=1445175&r1=1445174&r2=1445175&view=diff
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/pom.xml (original)
+++ maven/archetype/trunk/maven-archetype-plugin/pom.xml Tue Feb 12 14:08:48 2013
@@ -180,7 +180,7 @@ under the License.
<projectsDirectory>src/it</projectsDirectory>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<pomIncludes>
- <pomInclude>*/pom.xml</pomInclude>
+ <pomInclude>*</pomInclude>
</pomIncludes>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties?rev=1445175&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties Tue Feb 12 14:08:48 2013
@@ -0,0 +1 @@
+invoker.goals = org.apache.maven.plugins:maven-archetype-plugin:${project.version}:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.1 -DgroupId=com.company -DartifactId=project -Dversion=1.0-SNAPSHOT -Dpackage=com.company.project
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/invoker.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh?rev=1445175&view=auto
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh (added)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh Tue Feb 12 14:08:48 2013
@@ -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 pom = new File( basedir, "project/pom.xml" );
+if ( !pom.isFile() )
+{
+ throw new Exception( "No project created from archetype." );
+}
+
+return true;
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/archetype/trunk/maven-archetype-plugin/src/it/generate-basic/verify.bsh
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision