You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by fe...@apache.org on 2005/10/26 01:56:59 UTC

svn commit: r328510 - in /maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest: maven.xml project.properties

Author: felipeal
Date: Tue Oct 25 16:56:49 2005
New Revision: 328510

URL: http://svn.apache.org/viewcvs?rev=328510&view=rev
Log:
MPGENAPP-24 fixed testcase so it does not ask for user input (tks Arnauld for the tip)

Modified:
    maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/maven.xml
    maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/project.properties

Modified: maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/maven.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/maven.xml?rev=328510&r1=328509&r2=328510&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/maven.xml (original)
+++ maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/maven.xml Tue Oct 25 16:56:49 2005
@@ -1,6 +1,6 @@
 <!-- 
 /*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2005 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.
@@ -15,15 +15,15 @@
  * limitations under the License.
  */
  -->
-<project xmlns:j="jelly:core" xmlns:u="jelly:util" xmlns:x="jelly:xml" xmlns:assert="assert" xmlns:j2ee="j2ee" default="testPlugin">
+<project xmlns:j="jelly:core" xmlns:assert="assert" default="testPlugin">
   <goal name="testPlugin" prereqs="test-genapp">
     <attainGoal name="clean"/>
   </goal>
   <goal name="test-genapp" prereqs="clean">
-    <!-- Doesn't work actually and the prompt blocks the bootstrap
-    <j:set var="maven.genapp.prompt.id" value="" scope="parent"/>-->
-    <!-- TODO: figure it out how to not ask for stuff... -->
-    <!-- <attainGoal name="genapp"/>
-    <assert:assertFileExists file="${maven.genapp.basedir}"/>-->
+    <attainGoal name="genapp"/>
+    <assert:assertFileExists file="${maven.genapp.basedir}"/>
+    <assert:assertFileExists file="${maven.genapp.basedir}/project.xml"/>
+    <assert:assertFileExists file="${maven.genapp.basedir}/project.properties"/>
+    <assert:assertFileExists file="${maven.genapp.basedir}/src"/>
   </goal>
 </project>

Modified: maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/project.properties
URL: http://svn.apache.org/viewcvs/maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/project.properties?rev=328510&r1=328509&r2=328510&view=diff
==============================================================================
--- maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/project.properties (original)
+++ maven/maven-1/plugins/trunk/genapp/src/plugin-test/basedirTest/project.properties Tue Oct 25 16:56:49 2005
@@ -13,4 +13,11 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 # -------------------------------------------------------------------
+# directory where it should be generated
 maven.genapp.basedir=${maven.build.dir}/my_genapp
+# properties necessary to skip the prompt
+template=default
+maven.genapp.template.id=myId
+maven.genapp.template.name="Genapp testcase"
+maven.genapp.template.package=org.apache.genapp
+