You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/05/09 05:29:27 UTC
svn commit: r405289 - in /maven/plugins/trunk/maven-war-plugin: ./
src/main/java/org/apache/maven/plugin/war/ src/test/ src/test/java/
src/test/java/org/ src/test/java/org/apache/
src/test/java/org/apache/maven/ src/test/java/org/apache/maven/plugin/ s...
Author: brett
Date: Mon May 8 20:29:24 2006
New Revision: 405289
URL: http://svn.apache.org/viewcvs?rev=405289&view=rev
Log:
[MWAR-28, MWAR-36] tests and a bugfix for the WAR plugin
Added:
maven/plugins/trunk/maven-war-plugin/src/test/
maven/plugins/trunk/maven-war-plugin/src/test/java/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/ejb.jar (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/include-exclude.war (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/sample.par
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/simple.war (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/tld.jar
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml (with props)
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/
maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml (with props)
Modified:
maven/plugins/trunk/maven-war-plugin/pom.xml
maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java
Modified: maven/plugins/trunk/maven-war-plugin/pom.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/pom.xml?rev=405289&r1=405288&r2=405289&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/pom.xml (original)
+++ maven/plugins/trunk/maven-war-plugin/pom.xml Mon May 8 20:29:24 2006
@@ -30,5 +30,17 @@
<artifactId>maven-artifact</artifactId>
<version>2.0</version>
</dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.maven</groupId>
+ <artifactId>maven-plugin-testing-harness</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
</dependencies>
</project>
Modified: maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java?rev=405289&r1=405288&r2=405289&view=diff
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java (original)
+++ maven/plugins/trunk/maven-war-plugin/src/main/java/org/apache/maven/plugin/war/AbstractWarMojo.java Mon May 8 20:29:24 2006
@@ -807,6 +807,9 @@
Writer fileWriter = null;
try
{
+ // fix for MWAR-36, ensures that the parent dir are created first
+ to.getParentFile().mkdirs();
+
if ( encoding == null || encoding.length() < 1 )
{
fileReader = new BufferedReader( new FileReader( from ) );
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java Mon May 8 20:29:24 2006
@@ -0,0 +1,144 @@
+package org.apache.maven.plugin.war;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+import java.util.Arrays;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.apache.maven.plugin.war.stub.MavenProjectBasicStub;
+
+public abstract class AbstractWarMojoTest
+ extends AbstractMojoTestCase
+{
+
+ protected abstract File getTestDirectory()
+ throws Exception;
+
+ /**
+ * initialize required parameters
+ *
+ * @param mojo
+ * @param filters
+ * @param classesDir
+ * @param webAppSource
+ * @param webAppDir
+ * @param project
+ * @throws Exception
+ */
+ protected void configureMojo( AbstractWarMojo mojo, List filters, File classesDir, File webAppSource,
+ File webAppDir, MavenProjectBasicStub project )
+ throws Exception
+ {
+ setVariableValueToObject( mojo, "filters", filters );
+ mojo.setClassesDirectory( classesDir );
+ mojo.setWarSourceDirectory( webAppSource );
+ mojo.setWebappDirectory( webAppDir );
+ mojo.setProject( project );
+ }
+
+ /**
+ * create an isolated xml dir
+ *
+ * @param id
+ * @param xmlFiles
+ * @return
+ * @throws Exception
+ */
+ protected File createXMLConfigDir( String id, String[] xmlFiles )
+ throws Exception
+ {
+ File xmlConfigDir = new File( getTestDirectory(), "/" + id + "-test-data/xml-config" );
+ File XMLFile;
+
+ createDir( xmlConfigDir );
+
+ if ( xmlFiles != null )
+ {
+ Iterator iterator = Arrays.asList( xmlFiles ).iterator();
+ while ( iterator.hasNext() )
+ {
+ XMLFile = new File( xmlConfigDir, (String) iterator.next() );
+ createFile( XMLFile );
+ }
+ }
+
+ return xmlConfigDir;
+ }
+
+ /**
+ * create an isolated web source with a sample jsp file
+ *
+ * @param id
+ * @return
+ * @throws Exception
+ */
+ protected File createWebAppSource( String id )
+ throws Exception
+ {
+ File webAppSource = new File( getTestDirectory(), "/" + id + "-test-data/source" );
+ File simpleJSP = new File( webAppSource, "pansit.jsp" );
+ File jspFile = new File( webAppSource, "org/web/app/last-exile.jsp" );
+
+ createFile( simpleJSP );
+ createFile( jspFile );
+ return webAppSource;
+ }
+
+ /**
+ * create a class directory with or without a sample class
+ *
+ * @param id
+ * @param empty
+ * @return
+ * @throws Exception
+ */
+ protected File createClassesDir( String id, boolean empty )
+ throws Exception
+ {
+ File classesDir = new File( getTestDirectory() + "/" + id + "-test-data/classes/" );
+
+ createDir( classesDir );
+
+ if ( !empty )
+ {
+ createFile( new File( classesDir + "/sample-servlet.class" ) );
+ }
+
+ return classesDir;
+ }
+
+ protected void createDir( File dir )
+ {
+ if ( !dir.exists() )
+ {
+ assertTrue( "can not create test dir: " + dir.toString(), dir.mkdirs() );
+ }
+ }
+
+ protected void createFile( File testFile )
+ throws Exception
+ {
+ if ( !testFile.exists() )
+ {
+ createDir( testFile.getParentFile() );
+ assertTrue( "can not create test file: " + testFile.toString(), testFile.createNewFile() );
+ }
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/AbstractWarMojoTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java Mon May 8 20:29:24 2006
@@ -0,0 +1,92 @@
+package org.apache.maven.plugin.war;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+import java.io.FileWriter;
+import java.util.Properties;
+
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+
+public class PropertyUtilsTest
+ extends AbstractMojoTestCase
+{
+ private static File testDirectory = new File( getBasedir(), "target/test-classes/unit/propertyutil-test" );
+
+ public void testBasic()
+ throws Exception
+ {
+ File basicProp = new File( testDirectory, "basic.properties" );
+
+ if ( basicProp.exists() )
+ {
+ basicProp.delete();
+ }
+
+ basicProp.createNewFile();
+ FileWriter writer = new FileWriter( basicProp );
+
+ writer.write( "ghost=${non_existent}\n" );
+ writer.write( "key=${untat_na_damgo}\n" );
+ writer.write( "untat_na_damgo=gani_man\n" );
+ writer.flush();
+ writer.close();
+
+ Properties prop = PropertyUtils.loadPropertyFile( basicProp, false, false );
+ assertTrue( prop.getProperty( "key" ).equals( "gani_man" ) );
+ assertTrue( prop.getProperty( "ghost" ).equals("${non_existent}") );
+ }
+
+ public void testSystemProperties()
+ throws Exception
+ {
+ File systemProp = new File( testDirectory, "system.properties" );
+
+ if ( systemProp.exists() )
+ {
+ systemProp.delete();
+ }
+
+ systemProp.createNewFile();
+ FileWriter writer = new FileWriter( systemProp );
+
+ writer.write( "key=${user.dir}" );
+ writer.flush();
+ writer.close();
+
+ Properties prop = PropertyUtils.loadPropertyFile( systemProp, false, true );
+ assertTrue( prop.getProperty( "key" ).equals( System.getProperty( "user.dir" ) ) );
+ }
+
+ public void testException()
+ throws Exception
+ {
+ File nonExistent = new File( testDirectory, "not_existent_file" );
+
+ assertFalse( "property file exist: " + nonExistent.toString(), nonExistent.exists() );
+
+ try
+ {
+ PropertyUtils.loadPropertyFile( nonExistent, true, false );
+ assertTrue( "Exception failed", false );
+ }
+ catch ( Exception ex )
+ {
+ // exception ok
+ }
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/PropertyUtilsTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java Mon May 8 20:29:24 2006
@@ -0,0 +1,562 @@
+package org.apache.maven.plugin.war;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.util.LinkedList;
+import java.util.StringTokenizer;
+
+import org.apache.maven.plugin.war.stub.EJBArtifactStub;
+import org.apache.maven.plugin.war.stub.IncludeExcludeWarArtifactStub;
+import org.apache.maven.plugin.war.stub.MavenProjectArtifactsStub;
+import org.apache.maven.plugin.war.stub.MavenProjectBasicStub;
+import org.apache.maven.plugin.war.stub.PARArtifactStub;
+import org.apache.maven.plugin.war.stub.ResourceStub;
+import org.apache.maven.plugin.war.stub.SimpleWarArtifactStub;
+import org.apache.maven.plugin.war.stub.TLDArtifactStub;
+
+public class WarExplodedMojoTest
+ extends AbstractWarMojoTest
+{
+ protected static final String pomFilePath = getBasedir()
+ + "/target/test-classes/unit/warexplodedmojo/plugin-config.xml";
+
+ private WarExplodedMojo mojo;
+
+ protected File getTestDirectory()
+ throws Exception
+ {
+ return new File( getBasedir(), "target/test-classes/unit/warexplodedmojo/test-dir" );
+ }
+
+ public void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ mojo = (WarExplodedMojo) lookupMojo( "exploded", pomFilePath );
+ assertNotNull( mojo );
+ }
+
+ public void testEnvironment()
+ throws Exception
+ {
+ // see setUp
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testSimpleExplodedWar()
+ throws Exception
+ {
+ // setup test data
+ String testId = "SimpleExplodedWar";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, false );
+ File webAppResource = new File( getTestDirectory(), "resources" );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File sampleResource = new File( webAppResource, "pix/panis_na.jpg" );
+ ResourceStub[] resources = new ResourceStub[] { new ResourceStub() };
+
+ createFile( sampleResource );
+
+ // configure mojo
+ resources[0].setDirectory( webAppResource.getAbsolutePath() );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ setVariableValueToObject( mojo, "webResources", resources );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedWebResourceFile = new File( webAppDirectory, "pix/panis_na.jpg" );
+ File expectedWEBINFDir = new File( webAppDirectory, "WEB-INF" );
+ File expectedMETAINFDir = new File( webAppDirectory, "META-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "resources doesn't exist: " + expectedWebResourceFile, expectedWebResourceFile.exists() );
+ assertTrue( "WEB-INF not found", expectedWEBINFDir.exists() );
+ assertTrue( "META-INF not found", expectedMETAINFDir.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithCustomWebXML()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithCustomWebXML";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ File xmlSource = createXMLConfigDir( testId, new String[] { "web.xml" } );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+
+ // configure mojo
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.setWebXml( new File( xmlSource, "web.xml" ) );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedWEBXMLFile = new File( webAppDirectory, "WEB-INF/web.xml" );
+ File expectedMETAINFDir = new File( webAppDirectory, "META-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "WEB XML not found: " + expectedWEBXMLFile.toString(), expectedWEBXMLFile.exists() );
+ assertTrue( "META-INF not found", expectedMETAINFDir.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithContainerConfigXML()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithContainerConfigXML";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File classesDir = createClassesDir( testId, true );
+ File webAppSource = createWebAppSource( testId );
+ File xmlSource = createXMLConfigDir( testId, new String[] { "config.xml" } );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+
+ // configure mojo
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.setContainerConfigXML( new File( xmlSource, "config.xml" ) );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedContainerConfigXMLFile = new File( webAppDirectory, "META-INF/config.xml" );
+ File expectedWEBINFDir = new File( webAppDirectory, "WEB-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "WEB-INF not found", expectedWEBINFDir.exists() );
+ assertTrue( "Container Config XML not found:" + expectedContainerConfigXMLFile.toString(),
+ expectedContainerConfigXMLFile.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithSimpleExternalWARFile()
+ throws Exception
+ {
+ // setup test data
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ SimpleWarArtifactStub simpleWarArtifact = new SimpleWarArtifactStub( getBasedir() );
+
+ String testId = "ExplodedWar_WithSimpleExternalWARFile";
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ File workDirectory = new File( getTestDirectory(), "/war/work-" + testId );
+ File simpleWarFile = simpleWarArtifact.getFile();
+
+ assertTrue( "simple war not found: " + simpleWarFile.toString(), simpleWarFile.exists() );
+
+ createDir( workDirectory );
+
+ // configure mojo
+ project.addArtifact( simpleWarArtifact );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ setVariableValueToObject( mojo, "workDirectory", workDirectory );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedManifestFile = new File( webAppDirectory, "META-INF/MANIFEST.MF" );
+ File expectedWEBXMLFile = new File( webAppDirectory, "WEB-INF/web.xml" );
+ File expectedWARFile = new File( webAppDirectory, "/org/sample/company/test.jsp" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ // check simple.war in the unit test dir under resources to verify the list of files
+ assertTrue( "web xml not found: " + expectedWEBXMLFile.toString(), expectedWEBXMLFile.exists() );
+ assertTrue( "manifest file not found: " + expectedManifestFile.toString(), expectedManifestFile.exists() );
+ assertTrue( "war file not found: " + expectedWARFile.toString(), expectedWARFile.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithEJB()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithEJB";
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ EJBArtifactStub ejbArtifact = new EJBArtifactStub( getBasedir() );
+ File ejbFile = ejbArtifact.getFile();
+
+ assertTrue( "ejb jar not found: " + ejbFile.toString(), ejbFile.exists() );
+
+ // configure mojo
+ project.addArtifact( ejbArtifact );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ // final name form is <artifactId>-<version>.<type>
+ File expectedEJBArtifact = new File( webAppDirectory, "WEB-INF/lib/ejbartifact-0.0-Test.ejb" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "ejb artifact not found: " + expectedEJBArtifact.toString(), expectedEJBArtifact.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithTLD()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithTLD";
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ TLDArtifactStub tldArtifact = new TLDArtifactStub( getBasedir() );
+ File tldFile = tldArtifact.getFile();
+
+ assertTrue( "tld jar not found: " + tldFile.getAbsolutePath(), tldFile.exists() );
+
+ // configure mojo
+ project.addArtifact( tldArtifact );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ // final name form is <artifactId>-<version>.<type>
+ File expectedTLDArtifact = new File( webAppDirectory, "WEB-INF/tld/tldartifact-0.0-Test.tld" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "tld artifact not found: " + expectedTLDArtifact.toString(), expectedTLDArtifact.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithPAR()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithPAR";
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ PARArtifactStub parartifact = new PARArtifactStub( getBasedir() );
+ File parFile = parartifact.getFile();
+
+ assertTrue( "par not found: " + parFile.getAbsolutePath(), parFile.exists() );
+
+ // configure mojo
+ project.addArtifact( parartifact );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ // final name form is <artifactId>-<version>.<type>
+ File expectedPARArtifact = new File( webAppDirectory, "WEB-INF/lib/parartifact-0.0-Test.jar" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "par artifact not found: " + expectedPARArtifact.toString(), expectedPARArtifact.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithDuplicateDependencies()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithDuplicateDependencies";
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ EJBArtifactStub ejbArtifact = new EJBArtifactStub( getBasedir() );
+ EJBArtifactStub ejbArtifactDup = new EJBArtifactStub( getBasedir() );
+ File ejbFile = ejbArtifact.getFile();
+
+ // ejbArtifact has a hard coded file, only one assert is needed
+ assertTrue( "ejb not found: " + ejbFile.getAbsolutePath(), ejbFile.exists() );
+
+ // configure mojo
+ ejbArtifact.setGroupId( "org.sample.ejb" );
+ ejbArtifactDup.setGroupId( "org.dup.ejb" );
+ project.addArtifact( ejbArtifact );
+ project.addArtifact( ejbArtifactDup );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ // final name form is <artifactId>-<version>.<type>
+ File expectedEJBArtifact = new File( webAppDirectory, "WEB-INF/lib/org.sample.ejb-ejbartifact-0.0-Test.ejb" );
+ File expectedEJBDupArtifact = new File( webAppDirectory, "WEB-INF/lib/org.dup.ejb-ejbartifact-0.0-Test.ejb" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "ejb artifact not found: " + expectedEJBArtifact.toString(), expectedEJBArtifact.exists() );
+ assertTrue( "ejb dup artifact not found: " + expectedEJBDupArtifact.toString(), expectedEJBDupArtifact.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithClasses()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithClasses";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, false );
+
+ // configure mojo
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ // final name form is <artifactId>-<version>.<type>
+ File expectedClass = new File( webAppDirectory, "WEB-INF/classes/sample-servlet.class" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "classes not found: " + expectedClass.toString(), expectedClass.exists() );
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testExplodedWar_WithResourceFiltering()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithResourceFiltering";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, false );
+ File webAppResource = new File( getTestDirectory(), testId + "-test-data/resources" );
+ File sampleResource = new File( webAppResource, "custom-setting.cfg" );
+ File sampleResourceWDir = new File( webAppResource, "custom-config/custom-setting.cfg" );
+ File filterFile = new File( getTestDirectory(), testId + "-test-data/filters/filter.properties" );
+ LinkedList filterList = new LinkedList();
+ ResourceStub[] resources = new ResourceStub[] { new ResourceStub() };
+
+ createFile( sampleResource );
+ createFile( sampleResourceWDir );
+ createFile( filterFile );
+ filterList.add( filterFile.getAbsolutePath() );
+
+ // prepare web resources and filters
+ String filterData = new String( "resource_key=${resource_value}\n" );
+ String systemData = new String( "system_key=${user.dir}\n" );
+ String projectProp = new String( "project_key=${is_this_simple}\n" );
+ FileWriter writer = new FileWriter( sampleResourceWDir );
+ writer.write( filterData + systemData + projectProp );
+ writer.flush();
+ writer.close();
+ writer = new FileWriter( sampleResource );
+ writer.write( filterData + systemData + projectProp );
+ writer.flush();
+ writer.close();
+
+ String filterString = new String( "resource_value=this_is_filtered" );
+ writer = new FileWriter( filterFile );
+ writer.write( filterString );
+ writer.flush();
+ writer.close();
+
+ // configure mojo
+ project.addProperty( "is_this_simple", "i_think_so" );
+ resources[0].setDirectory( webAppResource.getAbsolutePath() );
+ resources[0].setFiltering( true );
+ this.configureMojo( mojo, filterList, classesDir, webAppSource, webAppDirectory, project );
+ setVariableValueToObject( mojo, "webResources", resources );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedResourceFile = new File( webAppDirectory, "custom-setting.cfg" );
+ File expectedResourceWDirFile = new File( webAppDirectory, "custom-config/custom-setting.cfg" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "resource file not found:" + expectedResourceFile.toString(), expectedResourceFile.exists() );
+ assertTrue( "resource file with dir not found:" + expectedResourceWDirFile.toString(), expectedResourceWDirFile
+ .exists() );
+
+ // validate filtered file
+ FileReader reader = new FileReader( expectedResourceWDirFile );
+ char[] data = new char[1024];
+ StringTokenizer tokenizer;
+
+ reader.read( data );
+ tokenizer = new StringTokenizer( String.valueOf( data ), "\n" );
+
+ String token = tokenizer.nextToken();
+ assertTrue( "error in filtering using filter files", token.equals( "resource_key=this_is_filtered" ) );
+
+ token = tokenizer.nextToken();
+ assertTrue( "error in filtering using System properties", token.equals( "system_key="
+ + System.getProperty( "user.dir" ) ) );
+
+ token = tokenizer.nextToken();
+ assertTrue( "error in filtering using project properties", token.equals( "project_key=i_think_so" ) );
+ }
+
+ public void testExplodedWar_WithSourceIncludeExclude()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithSourceIncludeExclude";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+
+ // configure mojo
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ setVariableValueToObject( mojo, "warSourceIncludes", "**/*sit.jsp" );
+ setVariableValueToObject( mojo, "warSourceExcludes", "**/last*.*" );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedWEBXMLDir = new File( webAppDirectory, "WEB-INF" );
+ File expectedMETAINFDir = new File( webAppDirectory, "META-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertFalse( "source files found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "WEB XML not found: " + expectedWEBXMLDir.toString(), expectedWEBXMLDir.exists() );
+ assertTrue( "META-INF not found", expectedMETAINFDir.exists() );
+ }
+
+ public void testExplodedWar_WithWarDependencyIncludeExclude()
+ throws Exception
+ {
+ // setup test data
+ String testId = "ExplodedWar_WithWarDependencyIncludeExclude";
+ MavenProjectArtifactsStub project = new MavenProjectArtifactsStub();
+ IncludeExcludeWarArtifactStub includeexcludeWarArtifact = new IncludeExcludeWarArtifactStub( getBasedir() );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ File workDirectory = new File( getTestDirectory(), "/war/work-" + testId );
+ File includeExcludeWarFile = includeexcludeWarArtifact.getFile();
+
+ assertTrue( "war not found: " + includeExcludeWarFile.toString(), includeExcludeWarFile.exists() );
+
+ createDir( workDirectory );
+
+ // configure mojo
+ project.addArtifact( includeexcludeWarArtifact );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ setVariableValueToObject( mojo, "dependentWarIncludes", "**/*Include.jsp,**/*.xml" );
+ setVariableValueToObject( mojo, "dependentWarExcludes", "**/*Exclude*,**/MANIFEST.MF" );
+ setVariableValueToObject( mojo, "workDirectory", workDirectory );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedManifestFile = new File( webAppDirectory, "META-INF/MANIFEST.MF" );
+ File expectedWEBXMLFile = new File( webAppDirectory, "WEB-INF/web.xml" );
+ File expectedIncludedWARFile = new File( webAppDirectory, "/org/sample/company/testInclude.jsp" );
+ File expectedExcludedWarfile = new File( webAppDirectory, "/org/sample/companyExclude/test.jsp" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ // check include-exclude.war in the unit test dir under resources to verify the list of files
+ assertTrue( "web xml not found: " + expectedWEBXMLFile.toString(), expectedWEBXMLFile.exists() );
+ assertFalse( "manifest file found: " + expectedManifestFile.toString(), expectedManifestFile.exists() );
+ assertTrue( "war file not found: " + expectedIncludedWARFile.toString(), expectedIncludedWARFile.exists() );
+ assertFalse( "war file not found: " + expectedExcludedWarfile.toString(), expectedExcludedWarfile.exists() );
+ }
+
+ public void testExplodedWarWithSourceModificationCheck()
+ throws Exception
+{
+ // setup test data
+ String testId = "ExplodedWarWithSourceModificationCheck";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, false );
+ File webAppDirectory = new File( getTestDirectory(), testId );
+
+ // configure mojo
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, webAppDirectory, project );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppDirectory, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppDirectory, "org/web/app/last-exile.jsp" );
+ File expectedWEBINFDir = new File( webAppDirectory, "WEB-INF" );
+ File expectedMETAINFDir = new File( webAppDirectory, "META-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "WEB-INF not found", expectedWEBINFDir.exists() );
+ assertTrue( "META-INF not found", expectedMETAINFDir.exists() );
+}
+
+
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarExplodedMojoTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java Mon May 8 20:29:24 2006
@@ -0,0 +1,91 @@
+package org.apache.maven.plugin.war;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+import java.util.LinkedList;
+
+import org.apache.maven.plugin.war.stub.MavenProjectBasicStub;
+import org.apache.maven.plugin.war.stub.ResourceStub;
+
+public class WarInPlaceMojoTest
+ extends AbstractWarMojoTest
+{
+ protected static final String pomFilePath = getBasedir()
+ + "/target/test-classes/unit/warexplodedinplacemojo/plugin-config.xml";
+
+ protected File getTestDirectory()
+ throws Exception
+ {
+ return new File( getBasedir(), "target/test-classes/unit/warexplodedinplacemojo/test-dir" );
+ }
+
+ private WarInPlaceMojo mojo;
+
+ public void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ mojo = (WarInPlaceMojo) lookupMojo( "inplace", pomFilePath );
+ assertNotNull( mojo );
+ }
+
+ public void testEnvironment()
+ throws Exception
+ {
+ // see setUp
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+ public void testSimpleExplodedInplaceWar()
+ throws Exception
+ {
+ // setup test data
+ String testId = "SimpleExplodedInplaceWar";
+ MavenProjectBasicStub project = new MavenProjectBasicStub();
+ File webAppSource = createWebAppSource( testId );
+ File classesDir = createClassesDir( testId, true );
+ File webAppResource = new File( getTestDirectory(), "resources" );
+ File sampleResource = new File( webAppResource, "pix/panis_na.jpg" );
+ ResourceStub[] resources = new ResourceStub[] { new ResourceStub() };
+
+ createFile( sampleResource );
+
+ // configure mojo
+ resources[0].setDirectory( webAppResource.getAbsolutePath() );
+ this.configureMojo( mojo, new LinkedList(), classesDir, webAppSource, null, project );
+ setVariableValueToObject( mojo, "webResources", resources );
+ mojo.execute();
+
+ // validate operation
+ File expectedWebSourceFile = new File( webAppSource, "pansit.jsp" );
+ File expectedWebSource2File = new File( webAppSource, "org/web/app/last-exile.jsp" );
+ File expectedWebResourceFile = new File( webAppSource, "pix/panis_na.jpg" );
+ File expectedWEBINFDir = new File( webAppSource, "WEB-INF" );
+ File expectedMETAINFDir = new File( webAppSource, "META-INF" );
+
+ assertTrue( "source files not found: " + expectedWebSourceFile.toString(), expectedWebSourceFile.exists() );
+ assertTrue( "source files not found: " + expectedWebSource2File.toString(), expectedWebSource2File.exists() );
+ assertTrue( "resources doesn't exist: " + expectedWebResourceFile, expectedWebResourceFile.exists() );
+ assertTrue( "WEB-INF not found", expectedWEBINFDir.exists() );
+ assertTrue( "META-INF not found", expectedMETAINFDir.exists() );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/WarInPlaceMojoTest.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,45 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+public abstract class AbstractArtifactStub
+ extends ArtifactStub
+{
+ protected String basedir;
+
+ public AbstractArtifactStub( String _basedir )
+ {
+ basedir = _basedir;
+ }
+
+ public String getVersion()
+ {
+ return "0.0-Test";
+ }
+
+ public String getScope()
+ {
+ return ArtifactStub.SCOPE_RUNTIME;
+ }
+
+ public boolean isOptional()
+ {
+ return false;
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/AbstractArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,62 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+
+public class EJBArtifactStub
+ extends AbstractArtifactStub
+{
+ protected String groupId;
+
+ public EJBArtifactStub( String _basedir )
+ {
+ super( _basedir );
+ }
+
+ public void setGroupId( String id )
+ {
+ groupId = id;
+ }
+
+ public String getGroupId()
+ {
+ if ( groupId != null )
+ {
+ return groupId;
+ }
+ else
+ {
+ return "org.sample.ejb";
+ }
+ }
+
+ public String getType()
+ {
+ return "ejb";
+ }
+
+ public String getArtifactId()
+ {
+ return "ejbartifact";
+ }
+
+ public File getFile()
+ {
+ return new File( basedir, "/target/test-classes/unit/sample_wars/ejb.jar" );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/EJBArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,38 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+
+public class IncludeExcludeWarArtifactStub
+ extends SimpleWarArtifactStub
+{
+ public IncludeExcludeWarArtifactStub( String id )
+ {
+ super( id );
+ }
+
+ public String getArtifactId()
+ {
+ return "war-include-exclude";
+ }
+
+ public File getFile()
+ {
+ return new File( basedir, "/target/test-classes/unit/sample_wars/include-exclude.war" );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/IncludeExcludeWarArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,44 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+public class MavenProjectArtifactsStub
+ extends MavenProjectBasicStub
+{
+ HashSet artifacts;
+
+ public MavenProjectArtifactsStub()
+ throws Exception
+ {
+ artifacts = new HashSet();
+ }
+
+ public void addArtifact( ArtifactStub stub )
+ {
+ artifacts.add( stub );
+ }
+
+ public Set getArtifacts()
+ {
+ return artifacts;
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectArtifactsStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,103 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+import java.util.HashSet;
+import java.util.Properties;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+/**
+ * Stub
+ *
+ *
+ */
+public class MavenProjectBasicStub
+ extends MavenProjectStub
+{
+ protected String testRootDir;
+
+ protected Properties properties;
+
+ protected SimpleWarArtifactStub artifact;
+
+ public MavenProjectBasicStub()
+ throws Exception
+ {
+ properties = new Properties();
+ }
+
+ public Set getArtifacts()
+ {
+ return new HashSet();
+ }
+
+ public String getName()
+ {
+ return "Test Project ";
+ }
+
+ public File getBasedir()
+ {
+ // create an isolated environment
+ // see setupTestEnvironment for details
+ return new File( testRootDir );
+ }
+
+ public void setArtifact( SimpleWarArtifactStub _artifact )
+ {
+ artifact = _artifact;
+ }
+
+ public Artifact getArtifact()
+ {
+ return artifact;
+ }
+
+ public String getGroupId()
+ {
+ return "org.apache.maven.plugin.test";
+ }
+
+ public String getArtifactId()
+ {
+ return "maven-war-plugin-test";
+ }
+
+ public String getPackaging()
+ {
+ return "jar";
+ }
+
+ public String getVersion()
+ {
+ return "0.0-Test";
+ }
+
+ public void addProperty( String key, String value )
+ {
+ properties.put( key, value );
+ }
+
+ public Properties getProperties()
+ {
+ return properties;
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/MavenProjectBasicStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,43 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+
+public class PARArtifactStub
+ extends AbstractArtifactStub
+{
+ public PARArtifactStub( String _basedir )
+ {
+ super( _basedir );
+ }
+
+ public String getType()
+ {
+ return "par";
+ }
+
+ public String getArtifactId()
+ {
+ return "parartifact";
+ }
+
+ public File getFile()
+ {
+ return new File( basedir, "/target/test-classes/unit/sample_wars/sample.par" );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/PARArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,49 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.maven.model.Resource;
+
+public class ResourceStub
+ extends Resource
+{
+ String directory;
+
+ public List getIncludes()
+ {
+ return new ArrayList();
+ }
+
+ public List getExcludes()
+ {
+ return new ArrayList();
+ }
+
+ public void setDirectory( String _directory )
+ {
+ directory = _directory;
+ }
+
+ public String getDirectory()
+ {
+ return directory;
+ }
+
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/ResourceStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,65 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+
+/**
+ * Stub
+ *
+ *
+ */
+public class SimpleWarArtifactStub
+ extends AbstractArtifactStub
+{
+
+ public SimpleWarArtifactStub( String _basedir )
+ {
+ super( _basedir );
+ }
+
+ public String getType()
+ {
+ return "war";
+ }
+
+ public String getArtifactId()
+ {
+ return "simple";
+ }
+
+ public File getFile()
+ {
+ return new File( basedir, "/target/test-classes/unit/sample_wars/simple.war" );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/SimpleWarArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java Mon May 8 20:29:24 2006
@@ -0,0 +1,43 @@
+package org.apache.maven.plugin.war.stub;
+
+/*
+ * Copyright 2001-2006 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.
+ */
+
+import java.io.File;
+
+public class TLDArtifactStub
+ extends AbstractArtifactStub
+{
+ public TLDArtifactStub( String _basedir )
+ {
+ super( _basedir );
+ }
+
+ public String getType()
+ {
+ return "tld";
+ }
+
+ public String getArtifactId()
+ {
+ return "tldartifact";
+ }
+
+ public File getFile()
+ {
+ return new File( basedir, "/target/test-classes/unit/sample_wars/tld.jar" );
+ }
+}
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/java/org/apache/maven/plugin/war/stub/TLDArtifactStub.java
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml Mon May 8 20:29:24 2006
@@ -0,0 +1,12 @@
+<project>
+ <name>war-plugin-test</name>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/propertyutil-test/plugin-config.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/ejb.jar
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/ejb.jar?rev=405289&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/ejb.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/include-exclude.war
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/include-exclude.war?rev=405289&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/include-exclude.war
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/sample.par
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/sample.par?rev=405289&view=auto
==============================================================================
(empty)
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/simple.war
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/simple.war?rev=405289&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/simple.war
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/tld.jar
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/sample_wars/tld.jar?rev=405289&view=auto
==============================================================================
(empty)
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml Mon May 8 20:29:24 2006
@@ -0,0 +1,12 @@
+<project>
+ <name>war-plugin-test</name>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedinplacemojo/plugin-config.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"
Added: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml?rev=405289&view=auto
==============================================================================
--- maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml (added)
+++ maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml Mon May 8 20:29:24 2006
@@ -0,0 +1,12 @@
+<project>
+ <name>war-plugin-test</name>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-war-plugin</artifactId>
+ <configuration>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-war-plugin/src/test/resources/unit/warexplodedmojo/plugin-config.xml
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"