You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2008/03/24 20:30:01 UTC

svn commit: r640536 - in /maven/plugins/trunk/maven-rar-plugin/src: site/ site/apt/ site/apt/examples/ site/fml/ test/java/org/apache/maven/plugin/rar/ test/java/org/apache/maven/plugin/rar/stubs/ test/resources/unit/basic-rar-test/ test/resources/unit...

Author: bentmann
Date: Mon Mar 24 12:29:56 2008
New Revision: 640536

URL: http://svn.apache.org/viewvc?rev=640536&view=rev
Log:
o Added svn:eol-style=native

Modified:
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/exclude-project-jar.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/include-extra-files.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/manifest.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/ra-custom-location.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/index.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/apt/usage.apt   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/fml/faq.fml   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/site/site.xml   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/ra.xml   (props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml   (contents, props changed)
    maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/ra.xml   (props changed)

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/exclude-project-jar.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/include-extra-files.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/manifest.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/examples/ra-custom-location.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/index.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/apt/usage.apt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/fml/faq.fml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/site/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java Mon Mar 24 12:29:56 2008
@@ -1,343 +1,343 @@
-package org.apache.maven.plugin.rar;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.ArrayList;
-import java.util.Enumeration;
-import java.util.List;
-import java.util.Iterator;
-
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.codehaus.plexus.archiver.zip.ZipEntry;
-import org.codehaus.plexus.archiver.zip.ZipFile;
-import org.codehaus.plexus.util.FileUtils;
-
-/**
- * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
- */
-public class RarMojoTest
-    extends AbstractMojoTestCase
-{
-    public void testRarTestEnvironment()
-        throws Exception
-    {
-        File testPom = new File( getBasedir(),
-                                 "target/test-classes/unit/basic-rar-test/plugin-config.xml" );
-
-        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
-
-        assertNotNull( mojo );
-    }
-
-    public void testBasicRar()
-        throws Exception
-    {
-        File testPom = new File( getBasedir(),
-                                 "target/test-classes/unit/basic-rar-test/plugin-config.xml" );
-
-        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
-
-        assertNotNull( mojo );
-
-        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
-
-        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
-
-        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
-
-        Boolean includeJar = ( Boolean ) getVariableValueFromObject(  mojo, "includeJar" );
-
-        assertTrue( includeJar.booleanValue() );
-
-        //include the project jar to the rar
-        File projectJar = new File( getBasedir(), "src/test/resources/unit/basic-rar-test/target/test-rar.jar" );
-
-        FileUtils.copyFileToDirectory( projectJar, new File( outputDir ) );
-
-        mojo.execute();
-
-        //check the working directory
-        File workDirectory = new File( workDir );
-
-        assertTrue( workDirectory.exists() );
-
-        assertTrue( workDirectory.isDirectory() );
-
-        File[] fileNames = workDirectory.listFiles();
-
-        List expectedFiles = new ArrayList();
-        
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "test-rar.jar" );
-        
-        assertEquals( "Files in working directory", expectedFiles.size(), fileNames.length );
-
-        
-        for( int i=0; i<fileNames.length; i++ )
-        {
-            String fileName = fileNames[i].getName();
-            
-            assertTrue( expectedFiles.contains( fileName ) );
-            
-            if( expectedFiles.contains( fileName ) )
-            {
-                expectedFiles.remove( fileName );
-                assertFalse( expectedFiles.contains( fileName ) );
-            }
-            else
-            {
-                fail( fileName + " is not included in expected files." );
-            }
-        }
-
-        assertEquals( 0, expectedFiles.size() );
-
-        //check the generated rar file
-        File rarFile = new File( outputDir, finalName + ".rar" );
-
-        assertTrue( rarFile.exists() );
-
-        //expected files/directories inside the rar file
-        expectedFiles = new ArrayList();
-
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
-        expectedFiles.add( "META-INF/maven/" );
-        expectedFiles.add( "META-INF/MANIFEST.MF" );
-        expectedFiles.add( "META-INF/" );
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "test-rar.jar" );
-
-        ZipFile rar = new ZipFile( rarFile );
-
-        Enumeration entries = rar.getEntries();
-
-        assertTrue( entries.hasMoreElements() );
-
-        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
-    }
-
-    public void testBasicRarWithDescriptor()
-        throws Exception
-    {
-        File testPom = new File( getBasedir(),
-                                 "target/test-classes/unit/basic-rar-with-descriptor/plugin-config.xml" );
-
-        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
-
-        assertNotNull( mojo );
-
-        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
-
-        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
-
-        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
-
-        mojo.execute();
-
-        //check the working directory
-        File workDirectory = new File( workDir );
-
-        assertTrue( workDirectory.exists() );
-
-        assertTrue( workDirectory.isDirectory() );
-
-        File[] fileNames = workDirectory.listFiles();
-
-        List expectedFiles = new ArrayList();
-        List fileList = new ArrayList();
-
-        for( int i=0; i<fileNames.length; i++ )
-        {
-            addFileToList( fileNames[i], fileList );
-        }
-
-        expectedFiles.add( "ra.xml" );
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "META-INF" );
-
-        assertEquals( expectedFiles.size(), fileList.size() );
-
-        assertEquals( 0, getSizeOfExpectedFiles( fileList, expectedFiles ) );
-
-        //check the generated rar file
-        File rarFile = new File( outputDir, finalName + ".rar" );
-
-        assertTrue( rarFile.exists() );
-
-        //expected files/directories inside the rar file
-        expectedFiles = new ArrayList();
-
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
-        expectedFiles.add( "META-INF/maven/" );
-        expectedFiles.add( "META-INF/MANIFEST.MF" );
-        expectedFiles.add( "META-INF/ra.xml" );
-        expectedFiles.add( "META-INF/" );
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-
-        ZipFile rar = new ZipFile( rarFile );
-
-        Enumeration entries = rar.getEntries();
-
-        assertTrue( entries.hasMoreElements() );
-
-        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
-    }
-
-    public void testBasicRarWithManifest()
-        throws Exception
-    {
-        File testPom = new File( getBasedir(),
-                                 "target/test-classes/unit/basic-rar-with-manifest/plugin-config.xml" );
-
-        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
-
-        assertNotNull( mojo );
-
-        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
-
-        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
-
-        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
-
-        mojo.execute();
-
-        //check the working directory
-        File workDirectory = new File( workDir );
-
-        assertTrue( workDirectory.exists() );
-
-        assertTrue( workDirectory.isDirectory() );
-
-        File[] fileNames = workDirectory.listFiles();
-
-        List expectedFiles = new ArrayList();
-        List fileList = new ArrayList();
-
-        for( int i=0; i<fileNames.length; i++ )
-        {
-            addFileToList( fileNames[i], fileList );
-        }
-
-        expectedFiles.add( "ra.xml" );
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "META-INF" );
-        expectedFiles.add( "MANIFEST.MF" );
-
-        assertEquals( expectedFiles.size(), fileList.size() );
-
-        assertEquals( 0, getSizeOfExpectedFiles( fileList, expectedFiles ) );
-
-        //check the generated rar file
-        File rarFile = new File( outputDir, finalName + ".rar" );
-
-        assertTrue( rarFile.exists() );
-
-        //expected files/directories inside the rar file
-        expectedFiles = new ArrayList();
-
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
-        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
-        expectedFiles.add( "META-INF/maven/" );
-        expectedFiles.add( "META-INF/MANIFEST.MF" );
-        expectedFiles.add( "META-INF/ra.xml" );
-        expectedFiles.add( "META-INF/" );
-        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
-        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
-
-        ZipFile rar = new ZipFile( rarFile );
-
-        Enumeration entries = rar.getEntries();
-
-        assertTrue( entries.hasMoreElements() );
-
-        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
-    }
-
-    private int getSizeOfExpectedFiles( Enumeration entries, List expectedFiles )
-    {
-        while( entries.hasMoreElements() )
-        {
-            ZipEntry entry = ( ZipEntry ) entries.nextElement();
-
-            if( expectedFiles.contains( entry.getName() ) )
-            {
-                expectedFiles.remove( entry.getName() );
-                assertFalse( expectedFiles.contains( entry.getName() ) );
-            }
-            else
-            {
-                fail( entry.getName() + " is not included in the expected files" );
-            }
-        }
-        return expectedFiles.size();
-    }
-
-    private int getSizeOfExpectedFiles( List fileList, List expectedFiles )
-    {
-        for( Iterator iter=fileList.iterator(); iter.hasNext(); )
-        {
-            String fileName = ( String ) iter.next();
-
-            if( expectedFiles.contains(  fileName ) )
-            {
-                expectedFiles.remove( fileName );
-                assertFalse( expectedFiles.contains( fileName ) );
-            }
-            else
-            {
-                fail( fileName + " is not included in the expected files" );
-            }
-        }
-        return expectedFiles.size();
-    }
-
-    private void addFileToList( File file, List fileList )
-    {
-        if( !file.isDirectory() )
-        {
-            fileList.add( file.getName() );
-        }
-        else
-        {
-            fileList.add( file.getName() );
-
-            File[] files = file.listFiles();
-
-            for( int i=0; i<files.length; i++ )
-            {
-                addFileToList( files[i], fileList );
-            }
-        }
-    }
-}
+package org.apache.maven.plugin.rar;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.ArrayList;
+import java.util.Enumeration;
+import java.util.List;
+import java.util.Iterator;
+
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.archiver.zip.ZipEntry;
+import org.codehaus.plexus.archiver.zip.ZipFile;
+import org.codehaus.plexus.util.FileUtils;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class RarMojoTest
+    extends AbstractMojoTestCase
+{
+    public void testRarTestEnvironment()
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "target/test-classes/unit/basic-rar-test/plugin-config.xml" );
+
+        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
+
+        assertNotNull( mojo );
+    }
+
+    public void testBasicRar()
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "target/test-classes/unit/basic-rar-test/plugin-config.xml" );
+
+        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
+
+        assertNotNull( mojo );
+
+        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+        Boolean includeJar = ( Boolean ) getVariableValueFromObject(  mojo, "includeJar" );
+
+        assertTrue( includeJar.booleanValue() );
+
+        //include the project jar to the rar
+        File projectJar = new File( getBasedir(), "src/test/resources/unit/basic-rar-test/target/test-rar.jar" );
+
+        FileUtils.copyFileToDirectory( projectJar, new File( outputDir ) );
+
+        mojo.execute();
+
+        //check the working directory
+        File workDirectory = new File( workDir );
+
+        assertTrue( workDirectory.exists() );
+
+        assertTrue( workDirectory.isDirectory() );
+
+        File[] fileNames = workDirectory.listFiles();
+
+        List expectedFiles = new ArrayList();
+        
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "test-rar.jar" );
+        
+        assertEquals( "Files in working directory", expectedFiles.size(), fileNames.length );
+
+        
+        for( int i=0; i<fileNames.length; i++ )
+        {
+            String fileName = fileNames[i].getName();
+            
+            assertTrue( expectedFiles.contains( fileName ) );
+            
+            if( expectedFiles.contains( fileName ) )
+            {
+                expectedFiles.remove( fileName );
+                assertFalse( expectedFiles.contains( fileName ) );
+            }
+            else
+            {
+                fail( fileName + " is not included in expected files." );
+            }
+        }
+
+        assertEquals( 0, expectedFiles.size() );
+
+        //check the generated rar file
+        File rarFile = new File( outputDir, finalName + ".rar" );
+
+        assertTrue( rarFile.exists() );
+
+        //expected files/directories inside the rar file
+        expectedFiles = new ArrayList();
+
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+        expectedFiles.add( "META-INF/maven/" );
+        expectedFiles.add( "META-INF/MANIFEST.MF" );
+        expectedFiles.add( "META-INF/" );
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "test-rar.jar" );
+
+        ZipFile rar = new ZipFile( rarFile );
+
+        Enumeration entries = rar.getEntries();
+
+        assertTrue( entries.hasMoreElements() );
+
+        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
+    }
+
+    public void testBasicRarWithDescriptor()
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "target/test-classes/unit/basic-rar-with-descriptor/plugin-config.xml" );
+
+        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
+
+        assertNotNull( mojo );
+
+        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+        mojo.execute();
+
+        //check the working directory
+        File workDirectory = new File( workDir );
+
+        assertTrue( workDirectory.exists() );
+
+        assertTrue( workDirectory.isDirectory() );
+
+        File[] fileNames = workDirectory.listFiles();
+
+        List expectedFiles = new ArrayList();
+        List fileList = new ArrayList();
+
+        for( int i=0; i<fileNames.length; i++ )
+        {
+            addFileToList( fileNames[i], fileList );
+        }
+
+        expectedFiles.add( "ra.xml" );
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "META-INF" );
+
+        assertEquals( expectedFiles.size(), fileList.size() );
+
+        assertEquals( 0, getSizeOfExpectedFiles( fileList, expectedFiles ) );
+
+        //check the generated rar file
+        File rarFile = new File( outputDir, finalName + ".rar" );
+
+        assertTrue( rarFile.exists() );
+
+        //expected files/directories inside the rar file
+        expectedFiles = new ArrayList();
+
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+        expectedFiles.add( "META-INF/maven/" );
+        expectedFiles.add( "META-INF/MANIFEST.MF" );
+        expectedFiles.add( "META-INF/ra.xml" );
+        expectedFiles.add( "META-INF/" );
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+
+        ZipFile rar = new ZipFile( rarFile );
+
+        Enumeration entries = rar.getEntries();
+
+        assertTrue( entries.hasMoreElements() );
+
+        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
+    }
+
+    public void testBasicRarWithManifest()
+        throws Exception
+    {
+        File testPom = new File( getBasedir(),
+                                 "target/test-classes/unit/basic-rar-with-manifest/plugin-config.xml" );
+
+        RarMojo mojo = ( RarMojo ) lookupMojo( "rar", testPom );
+
+        assertNotNull( mojo );
+
+        String finalName = ( String ) getVariableValueFromObject( mojo, "finalName" );
+
+        String workDir = ( String ) getVariableValueFromObject( mojo, "workDirectory" );
+
+        String outputDir = ( String ) getVariableValueFromObject( mojo, "outputDirectory" );
+
+        mojo.execute();
+
+        //check the working directory
+        File workDirectory = new File( workDir );
+
+        assertTrue( workDirectory.exists() );
+
+        assertTrue( workDirectory.isDirectory() );
+
+        File[] fileNames = workDirectory.listFiles();
+
+        List expectedFiles = new ArrayList();
+        List fileList = new ArrayList();
+
+        for( int i=0; i<fileNames.length; i++ )
+        {
+            addFileToList( fileNames[i], fileList );
+        }
+
+        expectedFiles.add( "ra.xml" );
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "META-INF" );
+        expectedFiles.add( "MANIFEST.MF" );
+
+        assertEquals( expectedFiles.size(), fileList.size() );
+
+        assertEquals( 0, getSizeOfExpectedFiles( fileList, expectedFiles ) );
+
+        //check the generated rar file
+        File rarFile = new File( outputDir, finalName + ".rar" );
+
+        assertTrue( rarFile.exists() );
+
+        //expected files/directories inside the rar file
+        expectedFiles = new ArrayList();
+
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.properties" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/pom.xml" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/maven-rar-test/" );
+        expectedFiles.add( "META-INF/maven/org.apache.maven.test/" );
+        expectedFiles.add( "META-INF/maven/" );
+        expectedFiles.add( "META-INF/MANIFEST.MF" );
+        expectedFiles.add( "META-INF/ra.xml" );
+        expectedFiles.add( "META-INF/" );
+        expectedFiles.add( "maven-artifact01-1.0-SNAPSHOT.jar" );
+        expectedFiles.add( "maven-artifact02-1.0-SNAPSHOT.jar" );
+
+        ZipFile rar = new ZipFile( rarFile );
+
+        Enumeration entries = rar.getEntries();
+
+        assertTrue( entries.hasMoreElements() );
+
+        assertEquals( 0, getSizeOfExpectedFiles( entries, expectedFiles ) );
+    }
+
+    private int getSizeOfExpectedFiles( Enumeration entries, List expectedFiles )
+    {
+        while( entries.hasMoreElements() )
+        {
+            ZipEntry entry = ( ZipEntry ) entries.nextElement();
+
+            if( expectedFiles.contains( entry.getName() ) )
+            {
+                expectedFiles.remove( entry.getName() );
+                assertFalse( expectedFiles.contains( entry.getName() ) );
+            }
+            else
+            {
+                fail( entry.getName() + " is not included in the expected files" );
+            }
+        }
+        return expectedFiles.size();
+    }
+
+    private int getSizeOfExpectedFiles( List fileList, List expectedFiles )
+    {
+        for( Iterator iter=fileList.iterator(); iter.hasNext(); )
+        {
+            String fileName = ( String ) iter.next();
+
+            if( expectedFiles.contains(  fileName ) )
+            {
+                expectedFiles.remove( fileName );
+                assertFalse( expectedFiles.contains( fileName ) );
+            }
+            else
+            {
+                fail( fileName + " is not included in the expected files" );
+            }
+        }
+        return expectedFiles.size();
+    }
+
+    private void addFileToList( File file, List fileList )
+    {
+        if( !file.isDirectory() )
+        {
+            fileList.add( file.getName() );
+        }
+        else
+        {
+            fileList.add( file.getName() );
+
+            File[] files = file.listFiles();
+
+            for( int i=0; i<files.length; i++ )
+            {
+                addFileToList( files[i], fileList );
+            }
+        }
+    }
+}

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/RarMojoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java Mon Mar 24 12:29:56 2008
@@ -1,113 +1,113 @@
-package org.apache.maven.plugin.rar.stubs;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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 org.apache.maven.plugin.testing.stubs.ArtifactStub;
-
-/**
- * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
- */
-public class RarArtifactStub
-    extends ArtifactStub
-{
-    private String groupId;
-    
-    private String artifactId;
-    
-    private String version;
-    
-    private String scope;
-    
-    private boolean optional;
-    
-    private File file;
-
-    public String getArtifactId()
-    {
-        return artifactId;
-    }
-
-    public void setArtifactId( String artifactId )
-    {
-        this.artifactId = artifactId;
-    }
-
-    public File getFile()
-    {
-        return file;
-    }
-
-    public void setFile( File file )
-    {
-        this.file = file;
-    }
-
-    public String getGroupId()
-    {
-        return groupId;
-    }
-
-    public void setGroupId( String groupId )
-    {
-        this.groupId = groupId;
-    }
-
-    public boolean isOptional()
-    {
-        return optional;
-    }
-
-    public void setOptional( boolean optional )
-    {
-        this.optional = optional;
-    }
-
-    public String getScope()
-    {
-        return scope;
-    }
-
-    public void setScope( String scope )
-    {
-        this.scope = scope;
-    }
-
-    public String getVersion()
-    {
-        return version;
-    }
-
-    public void setVersion( String version )
-    {
-        this.version = version;
-    }
-
-    public String getId()
-    {
-        return getGroupId() + ":" + getArtifactId() + ":" + getVersion();
-    }
-    
-    public String getBaseVersion()
-    {
-        return getVersion();
-    }
-}
+package org.apache.maven.plugin.rar.stubs;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class RarArtifactStub
+    extends ArtifactStub
+{
+    private String groupId;
+    
+    private String artifactId;
+    
+    private String version;
+    
+    private String scope;
+    
+    private boolean optional;
+    
+    private File file;
+
+    public String getArtifactId()
+    {
+        return artifactId;
+    }
+
+    public void setArtifactId( String artifactId )
+    {
+        this.artifactId = artifactId;
+    }
+
+    public File getFile()
+    {
+        return file;
+    }
+
+    public void setFile( File file )
+    {
+        this.file = file;
+    }
+
+    public String getGroupId()
+    {
+        return groupId;
+    }
+
+    public void setGroupId( String groupId )
+    {
+        this.groupId = groupId;
+    }
+
+    public boolean isOptional()
+    {
+        return optional;
+    }
+
+    public void setOptional( boolean optional )
+    {
+        this.optional = optional;
+    }
+
+    public String getScope()
+    {
+        return scope;
+    }
+
+    public void setScope( String scope )
+    {
+        this.scope = scope;
+    }
+
+    public String getVersion()
+    {
+        return version;
+    }
+
+    public void setVersion( String version )
+    {
+        this.version = version;
+    }
+
+    public String getId()
+    {
+        return getGroupId() + ":" + getArtifactId() + ":" + getVersion();
+    }
+    
+    public String getBaseVersion()
+    {
+        return getVersion();
+    }
+}

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarArtifactStub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java Mon Mar 24 12:29:56 2008
@@ -1,148 +1,148 @@
-package org.apache.maven.plugin.rar.stubs;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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.ArrayList;
-import java.util.Collections;
-import java.util.HashSet;
-import java.util.List;
-import java.util.Set;
-
-import org.apache.maven.artifact.Artifact;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.Organization;
-import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.PlexusTestCase;
-
-/**
- * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
- */
-public class RarMavenProjectStub
-    extends MavenProject
-{
-    private List attachedArtifacts;
-    
-    public RarMavenProjectStub()
-    {
-        super( new Model() );
-        
-        super.setGroupId( getGroupId() );
-        super.setArtifactId( getArtifactId() );
-        super.setVersion( getVersion() );
-        super.setDescription( "Test description" );
-
-        Organization org = new Organization();
-        org.setName( "organization" );
-        org.setUrl( "http://www.some.org" );
-        
-        super.setOrganization( org );
-        super.setFile( getFile() );
-        super.setPluginArtifacts( Collections.EMPTY_SET );
-        super.setReportArtifacts( Collections.EMPTY_SET );
-        super.setExtensionArtifacts( Collections.EMPTY_SET );
-        super.setArtifact( getArtifact() );
-        super.setRemoteArtifactRepositories( Collections.EMPTY_LIST );
-        super.setPluginArtifactRepositories( Collections.EMPTY_LIST );
-        super.setCollectedProjects( Collections.EMPTY_LIST );
-        super.setActiveProfiles( Collections.EMPTY_LIST );
-        
-        super.addCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-rar-test/src/main/java" );
-        super.addTestCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-rar-test/src/test/java" );
-        
-        super.setExecutionRoot( false );
-    }
-    
-    public String getGroupId()
-    {
-        return "org.apache.maven.test";
-    }
-    
-    public String getArtifactId()
-    {
-        return "maven-rar-test";
-    }
-    
-    public String getVersion()
-    {
-        return "1.0-SNAPSHOT";
-    }
-    
-    public File getFile()
-    {
-        return new File( getBasedir(), "src/test/resources/unit/basic-rar-test/plugin-config.xml" );
-    }
-    
-    public File getBasedir()
-    {
-        return new File( PlexusTestCase.getBasedir() );
-    }
-    
-    public Artifact getArtifact()
-    {
-        Artifact artifact = new RarArtifactStub();
-        
-        artifact.setGroupId( getGroupId() );
-        
-        artifact.setArtifactId( getArtifactId() );
-        
-        artifact.setVersion( getVersion() );
-        
-        return artifact;
-    }
-    
-    public Set getArtifacts()
-    {   
-        Set artifacts = new HashSet();
- 
-        artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact01", "1.0-SNAPSHOT", false ) );
-        artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact02", "1.0-SNAPSHOT", false ) );
-        
-        return artifacts;
-    }
-    
-    public List getAttachedArtifacts()
-    {
-        if ( attachedArtifacts == null )
-        {
-            attachedArtifacts = new ArrayList();
-        }
-        return attachedArtifacts;
-    }    
-    
-    protected Artifact createArtifact( String groupId, String artifactId, String version, boolean optional )
-    {
-        Artifact artifact = new RarArtifactStub();
-        
-        artifact.setGroupId( groupId );
-        
-        artifact.setArtifactId( artifactId );
-        
-        artifact.setVersion( version );
-        
-        artifact.setOptional( optional );
-        
-        artifact.setFile( new File ( getBasedir() + "/src/test/remote-repo/" + artifact.getGroupId().replace( '.', '/' ) + 
-                          "/" + artifact.getArtifactId() + "/" + artifact.getVersion() + 
-                          "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + ".jar" ) ) ;
-        
-        return artifact;
-    }
-}
+package org.apache.maven.plugin.rar.stubs;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.ArrayList;
+import java.util.Collections;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.maven.artifact.Artifact;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.Organization;
+import org.apache.maven.project.MavenProject;
+import org.codehaus.plexus.PlexusTestCase;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class RarMavenProjectStub
+    extends MavenProject
+{
+    private List attachedArtifacts;
+    
+    public RarMavenProjectStub()
+    {
+        super( new Model() );
+        
+        super.setGroupId( getGroupId() );
+        super.setArtifactId( getArtifactId() );
+        super.setVersion( getVersion() );
+        super.setDescription( "Test description" );
+
+        Organization org = new Organization();
+        org.setName( "organization" );
+        org.setUrl( "http://www.some.org" );
+        
+        super.setOrganization( org );
+        super.setFile( getFile() );
+        super.setPluginArtifacts( Collections.EMPTY_SET );
+        super.setReportArtifacts( Collections.EMPTY_SET );
+        super.setExtensionArtifacts( Collections.EMPTY_SET );
+        super.setArtifact( getArtifact() );
+        super.setRemoteArtifactRepositories( Collections.EMPTY_LIST );
+        super.setPluginArtifactRepositories( Collections.EMPTY_LIST );
+        super.setCollectedProjects( Collections.EMPTY_LIST );
+        super.setActiveProfiles( Collections.EMPTY_LIST );
+        
+        super.addCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-rar-test/src/main/java" );
+        super.addTestCompileSourceRoot( getBasedir() + "/src/test/resources/unit/basic-rar-test/src/test/java" );
+        
+        super.setExecutionRoot( false );
+    }
+    
+    public String getGroupId()
+    {
+        return "org.apache.maven.test";
+    }
+    
+    public String getArtifactId()
+    {
+        return "maven-rar-test";
+    }
+    
+    public String getVersion()
+    {
+        return "1.0-SNAPSHOT";
+    }
+    
+    public File getFile()
+    {
+        return new File( getBasedir(), "src/test/resources/unit/basic-rar-test/plugin-config.xml" );
+    }
+    
+    public File getBasedir()
+    {
+        return new File( PlexusTestCase.getBasedir() );
+    }
+    
+    public Artifact getArtifact()
+    {
+        Artifact artifact = new RarArtifactStub();
+        
+        artifact.setGroupId( getGroupId() );
+        
+        artifact.setArtifactId( getArtifactId() );
+        
+        artifact.setVersion( getVersion() );
+        
+        return artifact;
+    }
+    
+    public Set getArtifacts()
+    {   
+        Set artifacts = new HashSet();
+ 
+        artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact01", "1.0-SNAPSHOT", false ) );
+        artifacts.add( createArtifact( "org.apache.maven.test", "maven-artifact02", "1.0-SNAPSHOT", false ) );
+        
+        return artifacts;
+    }
+    
+    public List getAttachedArtifacts()
+    {
+        if ( attachedArtifacts == null )
+        {
+            attachedArtifacts = new ArrayList();
+        }
+        return attachedArtifacts;
+    }    
+    
+    protected Artifact createArtifact( String groupId, String artifactId, String version, boolean optional )
+    {
+        Artifact artifact = new RarArtifactStub();
+        
+        artifact.setGroupId( groupId );
+        
+        artifact.setArtifactId( artifactId );
+        
+        artifact.setVersion( version );
+        
+        artifact.setOptional( optional );
+        
+        artifact.setFile( new File ( getBasedir() + "/src/test/remote-repo/" + artifact.getGroupId().replace( '.', '/' ) + 
+                          "/" + artifact.getArtifactId() + "/" + artifact.getVersion() + 
+                          "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + ".jar" ) ) ;
+        
+        return artifact;
+    }
+}

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java Mon Mar 24 12:29:56 2008
@@ -1,31 +1,31 @@
-package org.apache.maven.plugin.rar.stubs;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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 RarMavenProjectStub2
-    extends RarMavenProjectStub
-{
-    public File getFile()
-    {
-        return new File( getBasedir(), "src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml" );
-    }
-}
+package org.apache.maven.plugin.rar.stubs;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 RarMavenProjectStub2
+    extends RarMavenProjectStub
+{
+    public File getFile()
+    {
+        return new File( getBasedir(), "src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml" );
+    }
+}

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub2.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java Mon Mar 24 12:29:56 2008
@@ -1,31 +1,31 @@
-package org.apache.maven.plugin.rar.stubs;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you 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 RarMavenProjectStub3
-    extends RarMavenProjectStub
-{
-    public File getFile()
-    {
-        return new File( getBasedir(), "src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml" );
-    }
-}
+package org.apache.maven.plugin.rar.stubs;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 RarMavenProjectStub3
+    extends RarMavenProjectStub
+{
+    public File getFile()
+    {
+        return new File( getBasedir(), "src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml" );
+    }
+}

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/java/org/apache/maven/plugin/rar/stubs/RarMavenProjectStub3.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml Mon Mar 24 12:29:56 2008
@@ -1,38 +1,38 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you 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>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-rar-plugin</artifactId>
-		<configuration>
-		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-test/src/main/rar</rarSourceDirectory>
-		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-test/src/main/rar/META-INF/ra.xml</raXmlFile>
-		  <includeJar>true</includeJar>
-		  <manifestFile>${basedir}/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
-		  <workDirectory>${basedir}/target/unit/basic-rar-test/target/rar-test</workDirectory>
-		  <outputDirectory>${basedir}/target/unit/basic-rar-test/target</outputDirectory>
-		  <finalName>test-rar</finalName>
-		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub" />
-		</configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-rar-plugin</artifactId>
+		<configuration>
+		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-test/src/main/rar</rarSourceDirectory>
+		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-test/src/main/rar/META-INF/ra.xml</raXmlFile>
+		  <includeJar>true</includeJar>
+		  <manifestFile>${basedir}/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
+		  <workDirectory>${basedir}/target/unit/basic-rar-test/target/rar-test</workDirectory>
+		  <outputDirectory>${basedir}/target/unit/basic-rar-test/target</outputDirectory>
+		  <finalName>test-rar</finalName>
+		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub" />
+		</configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-test/plugin-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml Mon Mar 24 12:29:56 2008
@@ -1,38 +1,38 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you 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>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-rar-plugin</artifactId>
-		<configuration>
-		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar</rarSourceDirectory>
-		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/ra.xml</raXmlFile>
-		  <includeJar>false</includeJar>
-		  <manifestFile>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
-		  <workDirectory>${basedir}/target/unit/basic-rar-with-descriptor/target/rar-test-with-descriptor</workDirectory>
-		  <outputDirectory>${basedir}/target/unit/basic-rar-with-descriptor/target</outputDirectory>
-		  <finalName>test-rar-with-descriptor</finalName>
-		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub2" />
-		</configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-rar-plugin</artifactId>
+		<configuration>
+		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar</rarSourceDirectory>
+		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/ra.xml</raXmlFile>
+		  <includeJar>false</includeJar>
+		  <manifestFile>${basedir}/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
+		  <workDirectory>${basedir}/target/unit/basic-rar-with-descriptor/target/rar-test-with-descriptor</workDirectory>
+		  <outputDirectory>${basedir}/target/unit/basic-rar-with-descriptor/target</outputDirectory>
+		  <finalName>test-rar-with-descriptor</finalName>
+		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub2" />
+		</configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/plugin-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-descriptor/src/main/rar/META-INF/ra.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml?rev=640536&r1=640535&r2=640536&view=diff
==============================================================================
--- maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml Mon Mar 24 12:29:56 2008
@@ -1,38 +1,38 @@
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements.  See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership.  The ASF licenses this file
-to you 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>
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-rar-plugin</artifactId>
-		<configuration>
-		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar</rarSourceDirectory>
-		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/ra.xml</raXmlFile>
-		  <includeJar>false</includeJar>
-		  <manifestFile>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
-		  <workDirectory>${basedir}/target/unit/basic-rar-with-manifest/target/rar-test-with-manifest</workDirectory>
-		  <outputDirectory>${basedir}/target/unit/basic-rar-with-manifest/target</outputDirectory>
-		  <finalName>test-rar-with-manifest</finalName>
-		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub3" />
-		</configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-rar-plugin</artifactId>
+		<configuration>
+		  <rarSourceDirectory>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar</rarSourceDirectory>
+		  <raXmlFile>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/ra.xml</raXmlFile>
+		  <includeJar>false</includeJar>
+		  <manifestFile>${basedir}/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/MANIFEST.MF</manifestFile>
+		  <workDirectory>${basedir}/target/unit/basic-rar-with-manifest/target/rar-test-with-manifest</workDirectory>
+		  <outputDirectory>${basedir}/target/unit/basic-rar-with-manifest/target</outputDirectory>
+		  <finalName>test-rar-with-manifest</finalName>
+		  <project implementation="org.apache.maven.plugin.rar.stubs.RarMavenProjectStub3" />
+		</configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/plugin-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/plugins/trunk/maven-rar-plugin/src/test/resources/unit/basic-rar-with-manifest/src/main/rar/META-INF/ra.xml
------------------------------------------------------------------------------
    svn:eol-style = native