From ecaf4b11f5a945a9c4e2033e1e38d08455b7b136 Mon Sep 17 00:00:00 2001 From: felipeal Date: Wed, 26 Oct 2005 01:20:50 +0000 Subject: [PATCH] MPGENAPP-23: added property maven.genapp.repackage.dir as base directory for maven.genapp.repackage git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@328520 13f79535-47bb-0310-9956-ffa450edef68 --- genapp/plugin.jelly | 10 ++-- genapp/plugin.properties | 4 ++ .../plugin-test/nonStandardDirsTest/maven.xml | 52 +++++++++++++++++++ .../nonStandardDirsTest/project.properties | 30 +++++++++++ .../nonStandardDirsTest/project.xml | 36 +++++++++++++ .../nonStandardDirsTest/template.properties | 20 +++++++ genapp/xdocs/changes.xml | 1 + genapp/xdocs/properties.xml | 9 ++++ 8 files changed, 156 insertions(+), 6 deletions(-) create mode 100644 genapp/src/plugin-test/nonStandardDirsTest/maven.xml create mode 100644 genapp/src/plugin-test/nonStandardDirsTest/project.properties create mode 100644 genapp/src/plugin-test/nonStandardDirsTest/project.xml create mode 100644 genapp/src/plugin-test/nonStandardDirsTest/template.properties 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 :
    diff --git a/genapp/xdocs/properties.xml b/genapp/xdocs/properties.xml index 34f33914..39a7ab1f 100644 --- a/genapp/xdocs/properties.xml +++ b/genapp/xdocs/properties.xml @@ -104,6 +104,15 @@ ${basedir} + + maven.genapp.repackage.dir + + Base directory for the maven.genapp.repackage property. + + + ${src} + +