You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ep...@apache.org on 2006/05/04 09:35:20 UTC

svn commit: r399586 - /maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java

Author: epunzalan
Date: Thu May  4 00:35:18 2006
New Revision: 399586

URL: http://svn.apache.org/viewcvs?rev=399586&view=rev
Log:
PR: MASSEMBLY-88

Adding one more stub

Added:
    maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java

Added: maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java?rev=399586&view=auto
==============================================================================
--- maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java (added)
+++ maven/plugins/trunk/maven-assembly-plugin/src/test/java/org/apache/maven/plugin/assembly/stubs/MavenProjectWithArtifactsStub.java Thu May  4 00:35:18 2006
@@ -0,0 +1,40 @@
+package org.apache.maven.plugin.assembly.stubs;
+
+import org.apache.maven.artifact.Artifact;
+
+import java.util.Set;
+import java.util.HashSet;
+
+/*
+ * Copyright 2001-2006 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @author Edwin Punzalan
+ */
+public class MavenProjectWithArtifactsStub
+    extends AssemblyMavenProjectStub
+{
+    public MavenProjectWithArtifactsStub()
+    {
+        Set artifacts = new HashSet();
+
+        artifacts.add( new ArtifactStub( "assembly", "dependency-artifact1", "1.0", "jar", Artifact.SCOPE_COMPILE ) );
+        artifacts.add( new ArtifactStub( "assembly", "dependency-artifact2", "1.0", "jar", Artifact.SCOPE_COMPILE ) );
+        artifacts.add( new ArtifactStub( "assembly", "dependency-artifact3", "1.0", "jar", Artifact.SCOPE_COMPILE ) );
+
+        setArtifacts( artifacts );
+    }
+}