Removed dependency on non-public goal <code>war:init</code> and computed the name of the WAR file by using the <code>maven.war.final.name</code> property from the WAR plugin.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115828 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
e9f89e7ae4
commit
1ff9f685f6
2 files changed
+9
-2
No files matched your search
+4
-2
@@ -36,7 +36,7 @@
|
||||
<!-- ================================================================ -->
|
||||
<!-- V A L I D A T E A W A R -->
|
||||
<!-- ================================================================ -->
|
||||
<goal name="j2ee:validate-war" prereqs="war:init"
|
||||
<goal name="j2ee:validate-war"
|
||||
description="Check that a war file is valid">
|
||||
|
||||
<ant:taskdef name="warvalidator" classname="org.apache.maven.j2ee.WarValidator">
|
||||
@@ -51,10 +51,12 @@
|
||||
</ant:taskdef>
|
||||
|
||||
<maven:get var="warBuildDir" plugin="maven-war-plugin" property="maven.war.build.dir"/>
|
||||
<maven:get var="warFinalName" plugin="maven-war-plugin" property="maven.war.final.name"/>
|
||||
|
||||
<ant:warvalidator warFileName="${warBuildDir}/${pom.artifactId}.war">
|
||||
<ant:warvalidator warFileName="${warBuildDir}/${maven.war.final.name}">
|
||||
<ant:formatter type="plain" usefile="false"/>
|
||||
</ant:warvalidator>
|
||||
|
||||
</goal>
|
||||
|
||||
<define:taglib uri="j2ee">
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
</properties>
|
||||
<body>
|
||||
<release version="1.5.1-SNAPSHOT" date="in CVS">
|
||||
<action dev="vmassol" type="fix">
|
||||
Removed dependency on non-public goal <code>war:init</code> and computed
|
||||
the name of the WAR file by using the <code>maven.war.final.name</code>
|
||||
property from the WAR plugin.
|
||||
</action>
|
||||
<action dev="dion" type="update">Remove pom.getPluginContext code and replace with maven:get</action>
|
||||
</release>
|
||||
<release version="1.5" date="2004-05-15">
|
||||
|
||||
Reference in new issue
Block a user