diff --git a/genapp/plugin.jelly b/genapp/plugin.jelly index de287f86..5c1efdf8 100644 --- a/genapp/plugin.jelly +++ b/genapp/plugin.jelly @@ -131,9 +131,9 @@ - - + @@ -145,17 +145,15 @@ - + - - - + diff --git a/genapp/plugin.properties b/genapp/plugin.properties index fb0810b3..f197529b 100644 --- a/genapp/plugin.properties +++ b/genapp/plugin.properties @@ -32,3 +32,7 @@ maven.genapp.default.user=${user.name} # directory where the artefacts will be created maven.genapp.basedir=${basedir} + +# base directory for the maven.genapp.repackage +maven.genapp.repackage.dir=src + diff --git a/genapp/src/plugin-test/nonStandardDirsTest/maven.xml b/genapp/src/plugin-test/nonStandardDirsTest/maven.xml new file mode 100644 index 00000000..0dfc1d0b --- /dev/null +++ b/genapp/src/plugin-test/nonStandardDirsTest/maven.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/genapp/src/plugin-test/nonStandardDirsTest/project.properties b/genapp/src/plugin-test/nonStandardDirsTest/project.properties new file mode 100644 index 00000000..a3049dec --- /dev/null +++ b/genapp/src/plugin-test/nonStandardDirsTest/project.properties @@ -0,0 +1,30 @@ +# ------------------------------------------------------------------- +# 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. +# 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. +# ------------------------------------------------------------------- + +# where is the template +maven.genapp.template.dir=${maven.build.dir}/non-standard-template +# directory where it should be generated +maven.genapp.basedir=${maven.build.dir}/my_genapp +# properties that set non-standard directories +mySrc=my_src +maven.genapp.repackage.dir=${mySrc} + +# 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 + diff --git a/genapp/src/plugin-test/nonStandardDirsTest/project.xml b/genapp/src/plugin-test/nonStandardDirsTest/project.xml new file mode 100644 index 00000000..1c9785d3 --- /dev/null +++ b/genapp/src/plugin-test/nonStandardDirsTest/project.xml @@ -0,0 +1,36 @@ + + + + 3 + Genapp Plugin - Non-Standard Directories Test + test-maven-genapp-plugin-basedirTest + 2005 + Tests maven.genapp.basedir property + Tests maven.genapp.basedir property + + + + Felipe Leme + felipeal + maven@felipeal.net + Falcon Informatica + + + diff --git a/genapp/src/plugin-test/nonStandardDirsTest/template.properties b/genapp/src/plugin-test/nonStandardDirsTest/template.properties new file mode 100644 index 00000000..19586e61 --- /dev/null +++ b/genapp/src/plugin-test/nonStandardDirsTest/template.properties @@ -0,0 +1,20 @@ +# ------------------------------------------------------------------- +# 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. +# 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. +# ------------------------------------------------------------------- + +maven.genapp.repackage=my_java,my_test +maven.genapp.filter=project.xml + +maven.genapp.default.package=example.app diff --git a/genapp/xdocs/changes.xml b/genapp/xdocs/changes.xml index a645e081..bed1d06e 100644 --- a/genapp/xdocs/changes.xml +++ b/genapp/xdocs/changes.xml @@ -22,6 +22,7 @@ + Added property maven.genapp.repackage.dir as base directory for maven.genapp.repackage. Added new property maven.genapp.basedir property. Update dependencies to match ones in maven 1.1 core and to unify them between plugins. The following dependencies are updated :