MPEAR-24: makes sure maven.ear.src and maven.ear.resources are not set with the same value
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@116236 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
9528d4b667
commit
197e635377
7 files changed
+106
-2
No files matched your search
@@ -0,0 +1 @@
|
||||
src
|
||||
@@ -0,0 +1,46 @@
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
<project xmlns:assert="assert"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:ant="jelly:ant"
|
||||
default="testPlugin">
|
||||
|
||||
<goal name="testPlugin" prereqs="test-ear">
|
||||
<attainGoal name="clean"/>
|
||||
</goal>
|
||||
|
||||
<goal name="test-ear" prereqs="ear:init">
|
||||
|
||||
<!-- first makes sure the project was set correctly -->
|
||||
<j:if test="${context.getVariable('maven.ear.src') != context.getVariable('maven.ear.resources')}">
|
||||
<ant:fail>Properties maven.ear.src and maven.ear.resources must be set with the same value</ant:fail>
|
||||
</j:if>
|
||||
<j:set var="failed" value="true"/>
|
||||
<j:catch>
|
||||
<attainGoal name="ear"/>
|
||||
<j:set var="failed" value="false"/>
|
||||
</j:catch>
|
||||
<j:if test="${not failed}">
|
||||
<ant:fail>ear goal should have failed</ant:fail>
|
||||
</j:if>
|
||||
|
||||
|
||||
</goal>
|
||||
|
||||
</project>
|
||||
@@ -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.src=${maven.ear.resources}
|
||||
@@ -0,0 +1,35 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
-->
|
||||
|
||||
<project>
|
||||
<pomVersion>3</pomVersion>
|
||||
<name>Test project for Maven Ear Plugin 05</name>
|
||||
<artifactId>test-maven-ear-plugin-05</artifactId>
|
||||
<inceptionYear>2004</inceptionYear>
|
||||
<shortDescription>Makes sure maven.src.dir and maven.ear.resources are not the same</shortDescription>
|
||||
<shortDescription>Makes sure the maven.src.dir and maven.ear.resources properties do not have the same value (see issue MPEAR-24)</shortDescription>
|
||||
<url/>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>Felipe Leme</name>
|
||||
<id>felipeal</id>
|
||||
<role>Jelly Developer</role>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
Reference in new issue
Block a user