diff --git a/ear/plugin.jelly b/ear/plugin.jelly index c2b63084..29a73fcf 100644 --- a/ear/plugin.jelly +++ b/ear/plugin.jelly @@ -48,21 +48,30 @@ - - - - - - + + + + + + + + + + + + + + + - Building EAR ${maven.final.name} with appxml "${maven.ear.appxml}" + Building EAR ${maven.final.name} with appxml "${finalAppxml}" + appxml="${finalAppxml}"> @@ -161,9 +170,9 @@ - Generating appxml file:"${maven.ear.appxml} version ${maven.ear.appxml.version} encoding: ${maven.ear.appxml.encoding}" + Generating appxml file:"${finalAppxml} version ${maven.ear.appxml.version} encoding: ${maven.ear.appxml.encoding}" - + + + + + + + + + + + Testcase should not have file ${maven.ear.src}/META-INF/application.xml. Please remove it first. + + + + + + + Plugin should not have created file ${maven.ear.src}/META-INF/application.xml. + + + + + + + + + + + + + + diff --git a/ear/src/plugin-test/test03/project.properties b/ear/src/plugin-test/test03/project.properties new file mode 100644 index 00000000..08d24197 --- /dev/null +++ b/ear/src/plugin-test/test03/project.properties @@ -0,0 +1,16 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 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.ear.appxml.generate=true diff --git a/ear/src/plugin-test/test03/project.xml b/ear/src/plugin-test/test03/project.xml new file mode 100644 index 00000000..4f5fe16b --- /dev/null +++ b/ear/src/plugin-test/test03/project.xml @@ -0,0 +1,35 @@ + + + + + 3 + Test project for Maven Ear Plugin 03 + test-maven-ear-plugin-03 + 2004 + Tests that application.xml is not generated at maven.ear.src + Tests that application.xml is not generated at maven.ear.src (see issue MPEAR-7) + + + + Felipe Leme + felipeal + Jelly Developer + + + diff --git a/ear/src/plugin-test/test03/src/application/bogus.jar b/ear/src/plugin-test/test03/src/application/bogus.jar new file mode 100644 index 00000000..e69de29b diff --git a/ear/src/plugin-test/test04/maven.xml b/ear/src/plugin-test/test04/maven.xml new file mode 100644 index 00000000..120721d0 --- /dev/null +++ b/ear/src/plugin-test/test04/maven.xml @@ -0,0 +1,55 @@ + + + + + + + + + +SRC: ${maven.ear.src} + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ear/src/plugin-test/test04/project.properties b/ear/src/plugin-test/test04/project.properties new file mode 100644 index 00000000..ccfe9bb5 --- /dev/null +++ b/ear/src/plugin-test/test04/project.properties @@ -0,0 +1,16 @@ +# ------------------------------------------------------------------- +# Copyright 2001-2004 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.ear.appxml.generate=false diff --git a/ear/src/plugin-test/test04/project.xml b/ear/src/plugin-test/test04/project.xml new file mode 100644 index 00000000..a1567c9f --- /dev/null +++ b/ear/src/plugin-test/test04/project.xml @@ -0,0 +1,35 @@ + + + + + 3 + Test project for Maven Ear Plugin 04 + test-maven-ear-plugin-04 + 2004 + Tests that application.xml is correctly bundled + Tests that application.xml is correctly bundled when it is not generated (see issue MPEAR-7) + + + + Felipe Leme + felipeal + Jelly Developer + + + diff --git a/ear/src/plugin-test/test04/src/application/META-INF/application.xml b/ear/src/plugin-test/test04/src/application/META-INF/application.xml new file mode 100644 index 00000000..78a49209 --- /dev/null +++ b/ear/src/plugin-test/test04/src/application/META-INF/application.xml @@ -0,0 +1,6 @@ + + + + + My Display + diff --git a/ear/src/plugin-test/test04/src/application/bogus.jar b/ear/src/plugin-test/test04/src/application/bogus.jar new file mode 100644 index 00000000..e69de29b diff --git a/ear/xdocs/changes.xml b/ear/xdocs/changes.xml index 4686ca1b..4c64ba5a 100644 --- a/ear/xdocs/changes.xml +++ b/ear/xdocs/changes.xml @@ -25,6 +25,7 @@ + application.xml is now generated at maven.build.dir Add new property dependency (ear.bundle.name) to define the name a dependency should have the EAR. Changed the default value of maven.ear.displayname. Add new property dependency(ear.bundle.dir) to define where a dependency should be added in the EAR. diff --git a/ear/xdocs/properties.xml b/ear/xdocs/properties.xml index 72942213..8c964a8f 100644 --- a/ear/xdocs/properties.xml +++ b/ear/xdocs/properties.xml @@ -35,7 +35,7 @@ Location of the manifest file to be used within the ear file. - ${maven.src.dir}/application/META-INF/MANIFEST.MF + ${maven.ear.src}/META-INF/MANIFEST.MF @@ -46,7 +46,7 @@ to be used within the ear file. - ${maven.src.dir}/application/META-INF/application.xml + ${maven.ear.src}/META-INF/application.xml @@ -111,6 +111,16 @@ UTF-8 + + maven.ear.descriptordir + Yes + + Directory where the application.xml file will be auto-generated (only if maven.ear.appxml.generate is true). + + + ${maven.build.dir} + +