MPGENAPP-24 fixed testcase so it does not ask for user input (tks Arnauld for the tip)
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@328510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
92e602a98c
commit
e80c60baa9
2 files changed
+14
-7
No files matched your search
@@ -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>
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user