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 14:23:17 UTC
svn commit: r640408 [1/2] - in
/maven/plugins/trunk/maven-install-plugin/src: site/apt/ site/apt/examples/
site/fml/ test/java/org/apache/maven/plugin/install/
test/java/org/apache/maven/plugin/install/stubs/
test/resources/unit/basic-install-checksum/...
Author: bentmann
Date: Mon Mar 24 06:23:14 2008
New Revision: 640408
URL: http://svn.apache.org/viewvc?rev=640408&view=rev
Log:
o Added svn:eol-style=native
Modified:
maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/custom-pom-installation.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/generic-pom-generation.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/installing-checksums.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/update-release-info.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/apt/index.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/apt/usage.apt (props changed)
maven/plugins/trunk/maven-install-plugin/src/site/fml/faq.fml (props changed)
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-test-generatePom/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-with-checksum/plugin-config.xml (contents, props changed)
maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-with-pom-as-packaging/plugin-config.xml (contents, props changed)
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/custom-pom-installation.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/generic-pom-generation.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/installing-checksums.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/examples/update-release-info.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/index.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/apt/usage.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/plugins/trunk/maven-install-plugin/src/site/fml/faq.fml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java Mon Mar 24 06:23:14 2008
@@ -1,292 +1,292 @@
-package org.apache.maven.plugin.install;
-
-/*
- * 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 org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.model.Model;
-import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.io.FileReader;
-
-/**
- * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
- */
-public class InstallFileMojoTest
- extends AbstractMojoTestCase
-{
- private String groupId;
-
- private String legacyGroupId;
-
- private String artifactId;
-
- private String version;
-
- private String packaging;
-
- private String classifier;
-
- private File file;
-
- private final String LOCAL_REPO = "target/local-repo/";
-
- public void setUp()
- throws Exception
- {
- super.setUp();
-
- FileUtils.deleteDirectory( new File( getBasedir() + "/" + LOCAL_REPO ) );
- }
-
- public void testInstallFileTestEnvironment()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-basic-test/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
- }
-
- public void testBasicInstallFile()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-basic-test/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- mojo.execute();
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
- }
-
- public void testLayoutInstallFile()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-layout-test/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- //test harness doesn't like expressions.
- mojo.setLocalRepositoryId( "id" );
-
- mojo.setLocalRepositoryPath( new File( getBasedir(), LOCAL_REPO ) );
-
- mojo.execute();
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + legacyGroupId + "/" + "jars" + "/" + artifactId + "-"
- + version + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
- }
-
- public void testInstallFileWithClassifier()
- throws Exception
- {
- File testPom =
- new File( getBasedir(), "target/test-classes/unit/install-file-with-classifier/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- assertNotNull( classifier );
-
- mojo.execute();
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "-" + classifier + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
- }
-
- public void testInstallFileWithGeneratePom()
- throws Exception
- {
- File testPom =
- new File( getBasedir(), "target/test-classes/unit/install-file-test-generatePom/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- mojo.execute();
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + packaging );
-
- assertTrue( ( (Boolean) getVariableValueFromObject( mojo, "generatePom" ) ).booleanValue() );
-
- assertTrue( installedArtifact.exists() );
-
- File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + "pom" );
-
- MavenXpp3Reader reader = new MavenXpp3Reader();
-
- Model model = reader.read( new FileReader( installedPom ) );
-
- assertEquals( "4.0.0", model.getModelVersion() );
-
- assertEquals( (String) getVariableValueFromObject( mojo, "groupId" ), model.getGroupId() );
-
- assertEquals( artifactId, model.getArtifactId() );
-
- assertEquals( version, model.getVersion() );
- }
-
- public void testInstallFileWithPomFile()
- throws Exception
- {
- File testPom =
- new File( getBasedir(), "target/test-classes/unit/install-file-with-pomFile-test/plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- mojo.execute();
-
- File pomFile = (File) getVariableValueFromObject( mojo, "pomFile" );
-
- assertTrue( pomFile.exists() );
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
-
- File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + "pom" );
-
- assertTrue( installedPom.exists() );
- }
-
- public void testInstallFileWithPomAsPackaging()
- throws Exception
- {
- File testPom = new File( getBasedir(),
- "target/test-classes/unit/install-file-with-pom-as-packaging/" + "plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- assertTrue( file.exists() );
-
- assertEquals( "pom", packaging );
-
- mojo.execute();
-
- File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version + "." + "pom" );
-
- assertTrue( installedPom.exists() );
- }
-
- public void testInstallFileWithChecksum()
- throws Exception
- {
- File testPom =
- new File( getBasedir(), "target/test-classes/unit/install-file-with-checksum/" + "plugin-config.xml" );
-
- InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
-
- assertNotNull( mojo );
-
- assignValuesForParameter( mojo );
-
- ArtifactRepository localRepo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" );
-
- boolean createChecksum = ( (Boolean) getVariableValueFromObject( mojo, "createChecksum" ) ).booleanValue();
-
- assertTrue( createChecksum );
-
- mojo.execute();
-
- //get the actual checksum of the artifact
- String actualMd5Sum = mojo.getChecksum( file, "MD5" );
- String actualSha1Sum = mojo.getChecksum( file, "SHA-1" );
-
- String localPath = getBasedir() + "/" + LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
- artifactId + "-" + version;
-
- File installedArtifact = new File( localPath + "." + "jar" );
-
- File md5 = new File( localPath + ".jar.md5" );
- File sha1 = new File( localPath + ".jar.sha1" );
-
- assertTrue( md5.exists() );
- assertTrue( sha1.exists() );
-
- String generatedMd5 = FileUtils.fileRead( md5 );
- String generatedSha1 = FileUtils.fileRead( sha1 );
-
- assertEquals( actualMd5Sum, generatedMd5 );
- assertEquals( actualSha1Sum, generatedSha1 );
-
- assertTrue( installedArtifact.exists() );
- }
-
- private void assignValuesForParameter( Object obj )
- throws Exception
- {
- this.groupId = dotToSlashReplacer( (String) getVariableValueFromObject( obj, "groupId" ) );
-
- this.legacyGroupId = (String) getVariableValueFromObject( obj, "groupId" );
-
- this.artifactId = (String) getVariableValueFromObject( obj, "artifactId" );
-
- this.version = (String) getVariableValueFromObject( obj, "version" );
-
- this.packaging = (String) getVariableValueFromObject( obj, "packaging" );
-
- this.classifier = (String) getVariableValueFromObject( obj, "classifier" );
-
- this.file = (File) getVariableValueFromObject( obj, "file" );
- }
-
- private String dotToSlashReplacer( String parameter )
- {
- return parameter.replace( '.', '/' );
- }
-}
+package org.apache.maven.plugin.install;
+
+/*
+ * 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 org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.model.Model;
+import org.apache.maven.model.io.xpp3.MavenXpp3Reader;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.io.File;
+import java.io.FileReader;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+public class InstallFileMojoTest
+ extends AbstractMojoTestCase
+{
+ private String groupId;
+
+ private String legacyGroupId;
+
+ private String artifactId;
+
+ private String version;
+
+ private String packaging;
+
+ private String classifier;
+
+ private File file;
+
+ private final String LOCAL_REPO = "target/local-repo/";
+
+ public void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ FileUtils.deleteDirectory( new File( getBasedir() + "/" + LOCAL_REPO ) );
+ }
+
+ public void testInstallFileTestEnvironment()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-basic-test/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+ }
+
+ public void testBasicInstallFile()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-basic-test/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ mojo.execute();
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ public void testLayoutInstallFile()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/install-file-layout-test/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ //test harness doesn't like expressions.
+ mojo.setLocalRepositoryId( "id" );
+
+ mojo.setLocalRepositoryPath( new File( getBasedir(), LOCAL_REPO ) );
+
+ mojo.execute();
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + legacyGroupId + "/" + "jars" + "/" + artifactId + "-"
+ + version + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ public void testInstallFileWithClassifier()
+ throws Exception
+ {
+ File testPom =
+ new File( getBasedir(), "target/test-classes/unit/install-file-with-classifier/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ assertNotNull( classifier );
+
+ mojo.execute();
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "-" + classifier + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ public void testInstallFileWithGeneratePom()
+ throws Exception
+ {
+ File testPom =
+ new File( getBasedir(), "target/test-classes/unit/install-file-test-generatePom/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ mojo.execute();
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + packaging );
+
+ assertTrue( ( (Boolean) getVariableValueFromObject( mojo, "generatePom" ) ).booleanValue() );
+
+ assertTrue( installedArtifact.exists() );
+
+ File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + "pom" );
+
+ MavenXpp3Reader reader = new MavenXpp3Reader();
+
+ Model model = reader.read( new FileReader( installedPom ) );
+
+ assertEquals( "4.0.0", model.getModelVersion() );
+
+ assertEquals( (String) getVariableValueFromObject( mojo, "groupId" ), model.getGroupId() );
+
+ assertEquals( artifactId, model.getArtifactId() );
+
+ assertEquals( version, model.getVersion() );
+ }
+
+ public void testInstallFileWithPomFile()
+ throws Exception
+ {
+ File testPom =
+ new File( getBasedir(), "target/test-classes/unit/install-file-with-pomFile-test/plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ mojo.execute();
+
+ File pomFile = (File) getVariableValueFromObject( mojo, "pomFile" );
+
+ assertTrue( pomFile.exists() );
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+
+ File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + "pom" );
+
+ assertTrue( installedPom.exists() );
+ }
+
+ public void testInstallFileWithPomAsPackaging()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/install-file-with-pom-as-packaging/" + "plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ assertTrue( file.exists() );
+
+ assertEquals( "pom", packaging );
+
+ mojo.execute();
+
+ File installedPom = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version + "." + "pom" );
+
+ assertTrue( installedPom.exists() );
+ }
+
+ public void testInstallFileWithChecksum()
+ throws Exception
+ {
+ File testPom =
+ new File( getBasedir(), "target/test-classes/unit/install-file-with-checksum/" + "plugin-config.xml" );
+
+ InstallFileMojo mojo = (InstallFileMojo) lookupMojo( "install-file", testPom );
+
+ assertNotNull( mojo );
+
+ assignValuesForParameter( mojo );
+
+ ArtifactRepository localRepo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" );
+
+ boolean createChecksum = ( (Boolean) getVariableValueFromObject( mojo, "createChecksum" ) ).booleanValue();
+
+ assertTrue( createChecksum );
+
+ mojo.execute();
+
+ //get the actual checksum of the artifact
+ String actualMd5Sum = mojo.getChecksum( file, "MD5" );
+ String actualSha1Sum = mojo.getChecksum( file, "SHA-1" );
+
+ String localPath = getBasedir() + "/" + LOCAL_REPO + groupId + "/" + artifactId + "/" + version + "/" +
+ artifactId + "-" + version;
+
+ File installedArtifact = new File( localPath + "." + "jar" );
+
+ File md5 = new File( localPath + ".jar.md5" );
+ File sha1 = new File( localPath + ".jar.sha1" );
+
+ assertTrue( md5.exists() );
+ assertTrue( sha1.exists() );
+
+ String generatedMd5 = FileUtils.fileRead( md5 );
+ String generatedSha1 = FileUtils.fileRead( sha1 );
+
+ assertEquals( actualMd5Sum, generatedMd5 );
+ assertEquals( actualSha1Sum, generatedSha1 );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ private void assignValuesForParameter( Object obj )
+ throws Exception
+ {
+ this.groupId = dotToSlashReplacer( (String) getVariableValueFromObject( obj, "groupId" ) );
+
+ this.legacyGroupId = (String) getVariableValueFromObject( obj, "groupId" );
+
+ this.artifactId = (String) getVariableValueFromObject( obj, "artifactId" );
+
+ this.version = (String) getVariableValueFromObject( obj, "version" );
+
+ this.packaging = (String) getVariableValueFromObject( obj, "packaging" );
+
+ this.classifier = (String) getVariableValueFromObject( obj, "classifier" );
+
+ this.file = (File) getVariableValueFromObject( obj, "file" );
+ }
+
+ private String dotToSlashReplacer( String parameter )
+ {
+ return parameter.replace( '.', '/' );
+ }
+}
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallFileMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java Mon Mar 24 06:23:14 2008
@@ -1,283 +1,283 @@
-package org.apache.maven.plugin.install;
-
-/*
- * 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 org.apache.maven.artifact.metadata.ArtifactMetadata;
-import org.apache.maven.artifact.repository.ArtifactRepository;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.install.stubs.AttachedArtifactStub0;
-import org.apache.maven.plugin.install.stubs.InstallArtifactStub;
-import org.apache.maven.plugin.testing.AbstractMojoTestCase;
-import org.codehaus.plexus.util.FileUtils;
-
-import java.io.File;
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
- */
-
-public class InstallMojoTest
- extends AbstractMojoTestCase
-{
-
- InstallArtifactStub artifact;
-
- private final String LOCAL_REPO = "target/local-repo/";
-
- public void setUp()
- throws Exception
- {
- super.setUp();
-
- System.out.println( ">>>Cleaning local repo " + getBasedir() + "/" + LOCAL_REPO + "..." );
-
- FileUtils.deleteDirectory( new File( getBasedir() + "/" + LOCAL_REPO ) );
- }
-
- public void testInstallTestEnvironment()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
- }
-
- public void testBasicInstall()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- File file = new File( getBasedir(), "target/test-classes/unit/basic-install-test/target/" +
- "maven-install-test-1.0-SNAPSHOT.jar" );
-
- artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
-
- artifact.setFile( file );
-
- mojo.execute();
-
- String groupId = dotToSlashReplacer( artifact.getGroupId() );
-
- String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
- artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
- }
-
- public void testBasicInstallWithAttachedArtifacts()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test-with-attached-artifacts/" +
- "plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- List attachedArtifacts = (ArrayList) getVariableValueFromObject( mojo, "attachedArtifacts" );
-
- mojo.execute();
-
- String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
-
- String groupId = "";
-
- for ( Iterator iter = attachedArtifacts.iterator(); iter.hasNext(); )
- {
- AttachedArtifactStub0 attachedArtifact = (AttachedArtifactStub0) iter.next();
-
- groupId = dotToSlashReplacer( attachedArtifact.getGroupId() );
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" +
- attachedArtifact.getArtifactId() + "/" + attachedArtifact.getVersion() + "/" +
- attachedArtifact.getArtifactId() + "-" + attachedArtifact.getVersion() + "." + packaging );
-
- assertTrue( installedArtifact.exists() );
- }
- }
-
- public void testUpdateReleaseParamSetToTrue()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/configured-install-test/plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- File file = new File( getBasedir(), "target/test-classes/unit/configured-install-test/target/" +
- "maven-install-test-1.0-SNAPSHOT.jar" );
-
- artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
-
- artifact.setFile( file );
-
- mojo.execute();
-
- assertTrue( artifact.isRelease() );
- }
-
- public void testInstallIfArtifactFileIsNull()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
-
- artifact.setFile( null );
-
- assertNull( artifact.getFile() );
-
- try
- {
- mojo.execute();
-
- fail( "Did not throw mojo execution exception" );
- }
- catch ( MojoExecutionException e )
- {
- //expected
- }
- }
-
- public void testInstallIfPackagingIsPom()
- throws Exception
- {
- File testPom = new File( getBasedir(),
- "target/test-classes/unit/basic-install-test-packaging-pom/" + "plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- String packaging = (String) getVariableValueFromObject( mojo, "packaging" );
-
- assertEquals( "pom", packaging );
-
- artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
-
- mojo.execute();
-
- String groupId = dotToSlashReplacer( artifact.getGroupId() );
-
- File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
- artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + "." + "jar" );
-
- assertTrue( installedArtifact.exists() );
- }
-
- public void testBasicInstallAndCreateChecksumIsTrue()
- throws Exception
- {
- File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-checksum/plugin-config.xml" );
-
- InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
-
- assertNotNull( mojo );
-
- File file = new File( getBasedir(), "target/test-classes/unit/basic-install-checksum/" + "maven-test-jar.jar" );
-
- artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
-
- boolean createChecksum = ( (Boolean) getVariableValueFromObject( mojo, "createChecksum" ) ).booleanValue();
-
- assertTrue( createChecksum );
-
- artifact.setFile( file );
-
- mojo.execute();
-
- ArtifactMetadata metadata = null;
- for ( Iterator iter = artifact.getMetadataList().iterator(); iter.hasNext(); )
- {
- metadata = (ArtifactMetadata) iter.next();
- if ( metadata.getRemoteFilename().endsWith( "pom" ) )
- {
- break;
- }
- }
-
- ArtifactRepository localRepo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" );
-
- File pom = new File( localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata( metadata, localRepo ) );
-
- assertTrue( pom.exists() );
-
- //get the actual checksum of the pom
- String actualPomMd5Sum = mojo.getChecksum( pom, "MD5" );
- String actualPomSha1Sum = mojo.getChecksum( pom, "SHA-1" );
-
- //get the actual checksum of the artifact
- String actualMd5Sum = mojo.getChecksum( file, "MD5" );
- String actualSha1Sum = mojo.getChecksum( file, "SHA-1" );
-
- String groupId = dotToSlashReplacer( artifact.getGroupId() );
-
- String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
-
- String localPath = getBasedir() + "/" + LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
- artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion();
-
- File installedArtifact = new File( localPath + "." + packaging );
-
- File pomMd5 = new File( localPath + ".pom.md5" );
- File pomSha1 = new File( localPath + ".pom.sha1" );
-
- File md5 = new File( localPath + "." + packaging + ".md5" );
- File sha1 = new File( localPath + "." + packaging + ".sha1" );
-
- assertTrue( pomMd5.exists() );
- assertTrue( pomSha1.exists() );
- assertTrue( md5.exists() );
- assertTrue( sha1.exists() );
-
- String generatedMd5 = FileUtils.fileRead( md5 );
- String generatedSha1 = FileUtils.fileRead( sha1 );
- String generatedPomMd5 = FileUtils.fileRead( pomMd5 );
- String generatedPomSha1 = FileUtils.fileRead( pomSha1 );
-
- assertEquals( actualMd5Sum, generatedMd5 );
- assertEquals( actualSha1Sum, generatedSha1 );
- assertEquals( actualPomMd5Sum, generatedPomMd5 );
- assertEquals( actualPomSha1Sum, generatedPomSha1 );
-
- assertTrue( installedArtifact.exists() );
- }
-
- private String dotToSlashReplacer( String parameter )
- {
- return parameter.replace( '.', '/' );
- }
-}
+package org.apache.maven.plugin.install;
+
+/*
+ * 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 org.apache.maven.artifact.metadata.ArtifactMetadata;
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.install.stubs.AttachedArtifactStub0;
+import org.apache.maven.plugin.install.stubs.InstallArtifactStub;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.util.FileUtils;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:aramirez@apache.org">Allan Ramirez</a>
+ */
+
+public class InstallMojoTest
+ extends AbstractMojoTestCase
+{
+
+ InstallArtifactStub artifact;
+
+ private final String LOCAL_REPO = "target/local-repo/";
+
+ public void setUp()
+ throws Exception
+ {
+ super.setUp();
+
+ System.out.println( ">>>Cleaning local repo " + getBasedir() + "/" + LOCAL_REPO + "..." );
+
+ FileUtils.deleteDirectory( new File( getBasedir() + "/" + LOCAL_REPO ) );
+ }
+
+ public void testInstallTestEnvironment()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+ }
+
+ public void testBasicInstall()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ File file = new File( getBasedir(), "target/test-classes/unit/basic-install-test/target/" +
+ "maven-install-test-1.0-SNAPSHOT.jar" );
+
+ artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
+
+ artifact.setFile( file );
+
+ mojo.execute();
+
+ String groupId = dotToSlashReplacer( artifact.getGroupId() );
+
+ String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
+ artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ public void testBasicInstallWithAttachedArtifacts()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test-with-attached-artifacts/" +
+ "plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ List attachedArtifacts = (ArrayList) getVariableValueFromObject( mojo, "attachedArtifacts" );
+
+ mojo.execute();
+
+ String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
+
+ String groupId = "";
+
+ for ( Iterator iter = attachedArtifacts.iterator(); iter.hasNext(); )
+ {
+ AttachedArtifactStub0 attachedArtifact = (AttachedArtifactStub0) iter.next();
+
+ groupId = dotToSlashReplacer( attachedArtifact.getGroupId() );
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" +
+ attachedArtifact.getArtifactId() + "/" + attachedArtifact.getVersion() + "/" +
+ attachedArtifact.getArtifactId() + "-" + attachedArtifact.getVersion() + "." + packaging );
+
+ assertTrue( installedArtifact.exists() );
+ }
+ }
+
+ public void testUpdateReleaseParamSetToTrue()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/configured-install-test/plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ File file = new File( getBasedir(), "target/test-classes/unit/configured-install-test/target/" +
+ "maven-install-test-1.0-SNAPSHOT.jar" );
+
+ artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
+
+ artifact.setFile( file );
+
+ mojo.execute();
+
+ assertTrue( artifact.isRelease() );
+ }
+
+ public void testInstallIfArtifactFileIsNull()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-test/plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
+
+ artifact.setFile( null );
+
+ assertNull( artifact.getFile() );
+
+ try
+ {
+ mojo.execute();
+
+ fail( "Did not throw mojo execution exception" );
+ }
+ catch ( MojoExecutionException e )
+ {
+ //expected
+ }
+ }
+
+ public void testInstallIfPackagingIsPom()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(),
+ "target/test-classes/unit/basic-install-test-packaging-pom/" + "plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ String packaging = (String) getVariableValueFromObject( mojo, "packaging" );
+
+ assertEquals( "pom", packaging );
+
+ artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
+
+ mojo.execute();
+
+ String groupId = dotToSlashReplacer( artifact.getGroupId() );
+
+ File installedArtifact = new File( getBasedir(), LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
+ artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion() + "." + "jar" );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ public void testBasicInstallAndCreateChecksumIsTrue()
+ throws Exception
+ {
+ File testPom = new File( getBasedir(), "target/test-classes/unit/basic-install-checksum/plugin-config.xml" );
+
+ InstallMojo mojo = (InstallMojo) lookupMojo( "install", testPom );
+
+ assertNotNull( mojo );
+
+ File file = new File( getBasedir(), "target/test-classes/unit/basic-install-checksum/" + "maven-test-jar.jar" );
+
+ artifact = (InstallArtifactStub) getVariableValueFromObject( mojo, "artifact" );
+
+ boolean createChecksum = ( (Boolean) getVariableValueFromObject( mojo, "createChecksum" ) ).booleanValue();
+
+ assertTrue( createChecksum );
+
+ artifact.setFile( file );
+
+ mojo.execute();
+
+ ArtifactMetadata metadata = null;
+ for ( Iterator iter = artifact.getMetadataList().iterator(); iter.hasNext(); )
+ {
+ metadata = (ArtifactMetadata) iter.next();
+ if ( metadata.getRemoteFilename().endsWith( "pom" ) )
+ {
+ break;
+ }
+ }
+
+ ArtifactRepository localRepo = (ArtifactRepository) getVariableValueFromObject( mojo, "localRepository" );
+
+ File pom = new File( localRepo.getBasedir(), localRepo.pathOfLocalRepositoryMetadata( metadata, localRepo ) );
+
+ assertTrue( pom.exists() );
+
+ //get the actual checksum of the pom
+ String actualPomMd5Sum = mojo.getChecksum( pom, "MD5" );
+ String actualPomSha1Sum = mojo.getChecksum( pom, "SHA-1" );
+
+ //get the actual checksum of the artifact
+ String actualMd5Sum = mojo.getChecksum( file, "MD5" );
+ String actualSha1Sum = mojo.getChecksum( file, "SHA-1" );
+
+ String groupId = dotToSlashReplacer( artifact.getGroupId() );
+
+ String packaging = getVariableValueFromObject( mojo, "packaging" ).toString();
+
+ String localPath = getBasedir() + "/" + LOCAL_REPO + groupId + "/" + artifact.getArtifactId() + "/" +
+ artifact.getVersion() + "/" + artifact.getArtifactId() + "-" + artifact.getVersion();
+
+ File installedArtifact = new File( localPath + "." + packaging );
+
+ File pomMd5 = new File( localPath + ".pom.md5" );
+ File pomSha1 = new File( localPath + ".pom.sha1" );
+
+ File md5 = new File( localPath + "." + packaging + ".md5" );
+ File sha1 = new File( localPath + "." + packaging + ".sha1" );
+
+ assertTrue( pomMd5.exists() );
+ assertTrue( pomSha1.exists() );
+ assertTrue( md5.exists() );
+ assertTrue( sha1.exists() );
+
+ String generatedMd5 = FileUtils.fileRead( md5 );
+ String generatedSha1 = FileUtils.fileRead( sha1 );
+ String generatedPomMd5 = FileUtils.fileRead( pomMd5 );
+ String generatedPomSha1 = FileUtils.fileRead( pomSha1 );
+
+ assertEquals( actualMd5Sum, generatedMd5 );
+ assertEquals( actualSha1Sum, generatedSha1 );
+ assertEquals( actualPomMd5Sum, generatedPomMd5 );
+ assertEquals( actualPomSha1Sum, generatedPomSha1 );
+
+ assertTrue( installedArtifact.exists() );
+ }
+
+ private String dotToSlashReplacer( String parameter )
+ {
+ return parameter.replace( '.', '/' );
+ }
+}
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/InstallMojoTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java Mon Mar 24 06:23:14 2008
@@ -1,38 +1,38 @@
-package org.apache.maven.plugin.install.stubs;
-
-import java.io.File;
-
-/*
- * 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.
- */
-
-public class AttachedArtifactStub0
- extends InstallArtifactStub
-{
- public String getArtifactId()
- {
- return "attached-artifact-test-0";
- }
-
- public File getFile()
- {
- return new File( System.getProperty( "basedir" ),
- "target/test-classes/unit/basic-install-test-with-attached-artifacts/" +
- "target/maven-install-test-1.0-SNAPSHOT.jar" );
- }
-}
+package org.apache.maven.plugin.install.stubs;
+
+import java.io.File;
+
+/*
+ * 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.
+ */
+
+public class AttachedArtifactStub0
+ extends InstallArtifactStub
+{
+ public String getArtifactId()
+ {
+ return "attached-artifact-test-0";
+ }
+
+ public File getFile()
+ {
+ return new File( System.getProperty( "basedir" ),
+ "target/test-classes/unit/basic-install-test-with-attached-artifacts/" +
+ "target/maven-install-test-1.0-SNAPSHOT.jar" );
+ }
+}
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub0.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java Mon Mar 24 06:23:14 2008
@@ -1,29 +1,29 @@
-package org.apache.maven.plugin.install.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.
- */
-
-public class AttachedArtifactStub1
- extends AttachedArtifactStub0
-{
- public String getArtifactId()
- {
- return "attached-artifact-test-1";
- }
-}
+package org.apache.maven.plugin.install.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.
+ */
+
+public class AttachedArtifactStub1
+ extends AttachedArtifactStub0
+{
+ public String getArtifactId()
+ {
+ return "attached-artifact-test-1";
+ }
+}
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/AttachedArtifactStub1.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java Mon Mar 24 06:23:14 2008
@@ -1,116 +1,116 @@
-package org.apache.maven.plugin.install.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 org.apache.maven.artifact.handler.ArtifactHandler;
-import org.apache.maven.artifact.handler.DefaultArtifactHandler;
-import org.apache.maven.artifact.metadata.ArtifactMetadata;
-import org.apache.maven.plugin.testing.stubs.ArtifactStub;
-
-import java.io.File;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.Map;
-
-
-public class InstallArtifactStub
- extends ArtifactStub
-{
- private Map metadataMap;
-
- private File file;
-
- private boolean release;
-
- public String getArtifactId()
- {
- return "maven-install-test";
- }
-
- public String getGroupId()
- {
- return "org.apache.maven.test";
- }
-
- public String getVersion()
- {
- return "1.0-SNAPSHOT";
- }
-
- public String getBaseVersion()
- {
- return getVersion();
- }
-
- public void setFile( File file )
- {
- this.file = file;
- }
-
- public File getFile()
- {
- return file;
- }
-
- public ArtifactHandler getArtifactHandler()
- {
- return new DefaultArtifactHandler()
- {
- public String getExtension()
- {
- return "jar";
- }
- };
- }
-
- public void addMetadata( ArtifactMetadata metadata )
- {
- if ( metadataMap == null )
- {
- metadataMap = new HashMap();
- }
-
- ArtifactMetadata m = (ArtifactMetadata) metadataMap.get( metadata.getKey() );
- if ( m != null )
- {
- m.merge( metadata );
- }
- else
- {
- metadataMap.put( metadata.getKey(), metadata );
- }
- }
-
- public Collection getMetadataList()
- {
- return metadataMap == null ? Collections.EMPTY_LIST : metadataMap.values();
- }
-
- public boolean isRelease()
- {
- return release;
- }
-
- public void setRelease( boolean release )
- {
- this.release = release;
- }
-}
+package org.apache.maven.plugin.install.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 org.apache.maven.artifact.handler.ArtifactHandler;
+import org.apache.maven.artifact.handler.DefaultArtifactHandler;
+import org.apache.maven.artifact.metadata.ArtifactMetadata;
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+import java.io.File;
+import java.util.Collection;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+
+
+public class InstallArtifactStub
+ extends ArtifactStub
+{
+ private Map metadataMap;
+
+ private File file;
+
+ private boolean release;
+
+ public String getArtifactId()
+ {
+ return "maven-install-test";
+ }
+
+ public String getGroupId()
+ {
+ return "org.apache.maven.test";
+ }
+
+ public String getVersion()
+ {
+ return "1.0-SNAPSHOT";
+ }
+
+ public String getBaseVersion()
+ {
+ return getVersion();
+ }
+
+ public void setFile( File file )
+ {
+ this.file = file;
+ }
+
+ public File getFile()
+ {
+ return file;
+ }
+
+ public ArtifactHandler getArtifactHandler()
+ {
+ return new DefaultArtifactHandler()
+ {
+ public String getExtension()
+ {
+ return "jar";
+ }
+ };
+ }
+
+ public void addMetadata( ArtifactMetadata metadata )
+ {
+ if ( metadataMap == null )
+ {
+ metadataMap = new HashMap();
+ }
+
+ ArtifactMetadata m = (ArtifactMetadata) metadataMap.get( metadata.getKey() );
+ if ( m != null )
+ {
+ m.merge( metadata );
+ }
+ else
+ {
+ metadataMap.put( metadata.getKey(), metadata );
+ }
+ }
+
+ public Collection getMetadataList()
+ {
+ return metadataMap == null ? Collections.EMPTY_LIST : metadataMap.values();
+ }
+
+ public boolean isRelease()
+ {
+ return release;
+ }
+
+ public void setRelease( boolean release )
+ {
+ this.release = release;
+ }
+}
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/java/org/apache/maven/plugin/install/stubs/InstallArtifactStub.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml Mon Mar 24 06:23:14 2008
@@ -1,35 +1,35 @@
-<!--
-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-install-plugin</artifactId>
- <configuration>
- <pomFile>${basedir}/src/test/resources/unit/basic-install-checksum/plugin-config.xml</pomFile>
- <packaging>jar</packaging>
- <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
- <attachedArtifacts/>
- <localRepository>${localRepository}</localRepository>
- <createChecksum>true</createChecksum>
- </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-install-plugin</artifactId>
+ <configuration>
+ <pomFile>${basedir}/src/test/resources/unit/basic-install-checksum/plugin-config.xml</pomFile>
+ <packaging>jar</packaging>
+ <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
+ <attachedArtifacts/>
+ <localRepository>${localRepository}</localRepository>
+ <createChecksum>true</createChecksum>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-checksum/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml Mon Mar 24 06:23:14 2008
@@ -1,34 +1,34 @@
-<!--
-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-install-plugin</artifactId>
- <configuration>
- <pomFile>${basedir}/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml</pomFile>
- <packaging>pom</packaging>
- <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
- <attachedArtifacts/>
- <localRepository>${localRepository}</localRepository>
- </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-install-plugin</artifactId>
+ <configuration>
+ <pomFile>${basedir}/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml</pomFile>
+ <packaging>pom</packaging>
+ <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
+ <attachedArtifacts/>
+ <localRepository>${localRepository}</localRepository>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-packaging-pom/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml Mon Mar 24 06:23:14 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-install-plugin</artifactId>
- <configuration>
- <pomFile>${basedir}/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
- </pomFile>
- <packaging>jar</packaging>
- <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
- <attachedArtifacts>
- <attachedArtifact implementation="org.apache.maven.plugin.install.stubs.AttachedArtifactStub0"/>
- <attachedArtifact implementation="org.apache.maven.plugin.install.stubs.AttachedArtifactStub1"/>
- </attachedArtifacts>
- <localRepository>${localRepository}</localRepository>
- </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-install-plugin</artifactId>
+ <configuration>
+ <pomFile>${basedir}/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
+ </pomFile>
+ <packaging>jar</packaging>
+ <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
+ <attachedArtifacts>
+ <attachedArtifact implementation="org.apache.maven.plugin.install.stubs.AttachedArtifactStub0"/>
+ <attachedArtifact implementation="org.apache.maven.plugin.install.stubs.AttachedArtifactStub1"/>
+ </attachedArtifacts>
+ <localRepository>${localRepository}</localRepository>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test-with-attached-artifacts/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml Mon Mar 24 06:23:14 2008
@@ -1,34 +1,34 @@
-<!--
-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-install-plugin</artifactId>
- <configuration>
- <pomFile>${basedir}/src/test/resources/unit/basic-install-test/plugin-config.xml</pomFile>
- <packaging>jar</packaging>
- <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
- <attachedArtifacts/>
- <localRepository>${localRepository}</localRepository>
- </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-install-plugin</artifactId>
+ <configuration>
+ <pomFile>${basedir}/src/test/resources/unit/basic-install-test/plugin-config.xml</pomFile>
+ <packaging>jar</packaging>
+ <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
+ <attachedArtifacts/>
+ <localRepository>${localRepository}</localRepository>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/basic-install-test/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml Mon Mar 24 06:23:14 2008
@@ -1,35 +1,35 @@
-<!--
-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-install-plugin</artifactId>
- <configuration>
- <pomFile>${basedir}/src/test/resources/unit/configured-install-test/plugin-config.xml</pomFile>
- <packaging>jar</packaging>
- <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
- <updateReleaseInfo>true</updateReleaseInfo>
- <attachedArtifacts/>
- <localRepository>${localRepository}</localRepository>
- </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-install-plugin</artifactId>
+ <configuration>
+ <pomFile>${basedir}/src/test/resources/unit/configured-install-test/plugin-config.xml</pomFile>
+ <packaging>jar</packaging>
+ <artifact implementation="org.apache.maven.plugin.install.stubs.InstallArtifactStub"/>
+ <updateReleaseInfo>true</updateReleaseInfo>
+ <attachedArtifacts/>
+ <localRepository>${localRepository}</localRepository>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/configured-install-test/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml Mon Mar 24 06:23:14 2008
@@ -1,36 +1,36 @@
-<!--
-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-install-plugin</artifactId>
- <configuration>
- <groupId>org.apache.maven.test</groupId>
- <artifactId>maven-install-file-test</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <file>${basedir}/src/test/resources/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
- </file>
- <localRepository>${localRepository}</localRepository>
- </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-install-plugin</artifactId>
+ <configuration>
+ <groupId>org.apache.maven.test</groupId>
+ <artifactId>maven-install-file-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <file>${basedir}/src/test/resources/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
+ </file>
+ <localRepository>${localRepository}</localRepository>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-basic-test/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml?rev=640408&r1=640407&r2=640408&view=diff
==============================================================================
--- maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml (original)
+++ maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml Mon Mar 24 06:23:14 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-install-plugin</artifactId>
- <configuration>
- <groupId>org.apache.maven.test</groupId>
- <artifactId>maven-install-file-test</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <repositoryLayout>legacy</repositoryLayout>
- <file>${basedir}/src/test/resources/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
- </file>
- <localRepository>${localRepository}</localRepository>
- <localRepositoryId>id</localRepositoryId>
- </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-install-plugin</artifactId>
+ <configuration>
+ <groupId>org.apache.maven.test</groupId>
+ <artifactId>maven-install-file-test</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ <packaging>jar</packaging>
+ <repositoryLayout>legacy</repositoryLayout>
+ <file>${basedir}/src/test/resources/unit/install-file-basic-test/target/maven-install-test-1.0-SNAPSHOT.jar
+ </file>
+ <localRepository>${localRepository}</localRepository>
+ <localRepositoryId>id</localRepositoryId>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: maven/plugins/trunk/maven-install-plugin/src/test/resources/unit/install-file-layout-test/plugin-config.xml
------------------------------------------------------------------------------
svn:eol-style = native