directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r607608 - in /directory/sandbox/felixk/studio-plugin/src/test: java/org/apache/directory/studio/maven/plugins/ java/org/apache/directory/studio/maven/plugins/stubs/ resources/org/ resources/org/apache/ resources/org/apache/directory/ resour...
Date Sun, 30 Dec 2007 22:57:22 GMT
Author: felixk
Date: Sun Dec 30 14:57:20 2007
New Revision: 607608

URL: http://svn.apache.org/viewvc?rev=607608&view=rev
Log:
Minimal testcase for eclipse copy plugin

Added:
    directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar.sha1
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom.sha1
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar.sha1
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom.sha1
    directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
  (with props)
    directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/
    directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
  (with props)

Added: directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
Sun Dec 30 14:57:20 2007
@@ -0,0 +1,167 @@
+/*
+ * 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.
+ */
+package org.apache.directory.studio.maven.plugins;
+
+
+import java.io.File;
+import java.io.IOException;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Set;
+
+import org.apache.maven.artifact.repository.ArtifactRepository;
+import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
+import org.apache.maven.artifact.repository.DefaultArtifactRepository;
+import org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.codehaus.plexus.util.FileUtils;
+
+
+/**
+ * Test the studio clean mojo.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class StudioCopyEclipseDependencyMojoTest extends AbstractMojoTestCase
+{
+    private Set toDelete = new HashSet();
+    private ArtifactRepositoryFactory repoFactory;
+
+
+    /** {@inheritDoc} */
+    protected void setUp() throws Exception
+    {
+        super.setUp();
+
+        repoFactory = ( ArtifactRepositoryFactory ) lookup( ArtifactRepositoryFactory.ROLE
);
+    }
+
+
+    /** {@inheritDoc} */
+    protected void tearDown() throws Exception
+    {
+        super.tearDown();
+        for ( Iterator it = toDelete.iterator(); it.hasNext(); )
+        {
+            File f = ( File ) it.next();
+
+            if ( f.exists() )
+            {
+                try
+                {
+                    FileUtils.forceDelete( f );
+                }
+                catch ( IOException e )
+                {
+                    //the files on windows can still be locked. They were creaed in a temp
directory anyway and will get removed in a subsequent clean.
+                    //we can safely ignore this error.
+                }
+            }
+        }
+    }
+
+
+    /**
+     * Tests the simple removal of the lib dir and the 2 files 'maven-eclipse.xml' and '.externalToolBuilders'
+     *
+     * @throws Exception
+     */
+    public void testCopyEclipseArtifact() throws Exception
+    {
+        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-copy-test/plugin-pom.xml";
+        StudioCopyEclipseDependencyMojo mojo = ( StudioCopyEclipseDependencyMojo ) lookupMojo(
"copy-eclipse-artifact",
+            pluginPom );
+        assertNotNull( mojo );
+
+        File remoteRepoDir = findRemoteRepositoryDirectory();
+        File localRepo = createTempDir();
+
+        List<ArtifactRepository> remoteRepositories = new ArrayList<ArtifactRepository>();
+        remoteRepositories.add( repoFactory.createArtifactRepository( "central", remoteRepoDir.toURI().toURL()
+            .toExternalForm(), new DefaultRepositoryLayout(), null, null ) );
+        mojo.setRemoteRepos( remoteRepositories );
+
+        DefaultArtifactRepository localRepository = new DefaultArtifactRepository( "local",
+            localRepo.getAbsolutePath(), new DefaultRepositoryLayout() );
+        localRepository.setBasedir( localRepo.getAbsolutePath() );
+        mojo.setLocal( localRepository );
+
+        mojo.execute();
+
+        assertTrue( "File org.eclipse.core.jobs_3.3.1.R33x_v20070709.jar not exists", checkExists(
getBasedir()
+            + "/target/test-classes/copy-plugins/" + "org.eclipse.core.jobs_3.3.1.R33x_v20070709.jar"
) );
+        assertTrue( "File org.eclipse.core.commands_3.3.0.I20070605_0010.jar not exists",
checkExists( getBasedir()
+            + "/target/test-classes/copy-plugins/" + "org.eclipse.core.commands_3.3.0.I20070605_0010.jar"
) );
+    }
+
+
+    /**
+     * @param dir a dir or a file
+     * @return true if a file/dir exists, false otherwise
+     */
+    private boolean checkExists( String dir )
+    {
+        return FileUtils.fileExists( new File( dir ).getAbsolutePath() );
+    }
+
+
+    /**
+     * @param dir a directory
+     * @return true if a dir is empty, false otherwise
+     */
+    private boolean checkEmpty( String dir )
+    {
+        return FileUtils.sizeOfDirectory( new File( dir ).getAbsolutePath() ) == 0;
+    }
+
+
+    private File findRemoteRepositoryDirectory()
+    {
+        String classPath = getClass().getPackage().getName().replace( '.', '/' ) + "/test-copy-repo/repo-marker.txt";
+        ClassLoader cloader = Thread.currentThread().getContextClassLoader();
+
+        URL resource = cloader.getResource( classPath );
+
+        if ( resource == null )
+        {
+            throw new IllegalStateException( "Cannot find repository marker file: " + classPath
+                + " in context classloader!" );
+        }
+
+        File repoDir = new File( resource.getPath() ).getParentFile();
+
+        return repoDir;
+    }
+
+
+    private File createTempDir() throws IOException
+    {
+        File dir = File.createTempFile( "DefaultExtensionManagerTest.", ".dir" );
+        FileUtils.forceDelete( dir );
+
+        dir.mkdirs();
+        toDelete.add( dir );
+
+        return dir;
+    }
+
+}

Propchange: directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
Sun Dec 30 14:57:20 2007
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+package org.apache.directory.studio.maven.plugins.stubs;
+
+
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+
+/**
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class StudioCopyEclipseDependencyProjectStub extends MavenProjectStub
+{
+    // NOP
+}

Propchange: directory/sandbox/felixk/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar?rev=607608&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar.sha1
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar.sha1?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar.sha1
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.jar.sha1
Sun Dec 30 14:57:20 2007
@@ -0,0 +1 @@
+f602b5987689e09820fe1a3e67b25c423a1214ae
\ No newline at end of file

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom
Sun Dec 30 14:57:20 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.eclipse.core</groupId>
+  <artifactId>commands</artifactId>
+  <name>Commands</name>
+  <version>3.3.0-I20070605-0010</version>
+  <licenses>
+    <license>
+      <name>Eclipse Public License - v 1.0</name>
+      <url>http://www.eclipse.org/org/documents/epl-v10.html</url>
+    </license>
+  </licenses>
+  <dependencies>
+    <dependency>
+      <groupId>org.eclipse.equinox</groupId>
+      <artifactId>common</artifactId>
+      <version>[0,4.0.0)</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom.sha1
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom.sha1?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom.sha1
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/commands/3.3.0-I20070605-0010/commands-3.3.0-I20070605-0010.pom.sha1
Sun Dec 30 14:57:20 2007
@@ -0,0 +1 @@
+dcb6027b956650a1f48509eed884383d0ccb19a8
\ No newline at end of file

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar?rev=607608&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar.sha1
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar.sha1?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar.sha1
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.jar.sha1
Sun Dec 30 14:57:20 2007
@@ -0,0 +1 @@
+8d355e18c3bfbf4869af5cc6b784369bc41d7bbd
\ No newline at end of file

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom
Sun Dec 30 14:57:20 2007
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.eclipse.core</groupId>
+  <artifactId>jobs</artifactId>
+  <name>Eclipse Jobs Mechanism</name>
+  <version>3.3.1-R33x_v20070709</version>
+  <licenses>
+    <license>
+      <name>Eclipse Public License - v 1.0</name>
+      <url>http://www.eclipse.org/org/documents/epl-v10.html</url>
+    </license>
+  </licenses>
+  <dependencies>
+    <dependency>
+      <groupId>org.eclipse.equinox</groupId>
+      <artifactId>common</artifactId>
+      <version>[0,4.0.0)</version>
+    </dependency>
+  </dependencies>
+</project>
\ No newline at end of file

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom.sha1
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom.sha1?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom.sha1
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/org/eclipse/core/jobs/3.3.1-R33x_v20070709/jobs-3.3.1-R33x_v20070709.pom.sha1
Sun Dec 30 14:57:20 2007
@@ -0,0 +1 @@
+6bc64c55230dacd30677d9dca9ca0c5d5cc112de
\ No newline at end of file

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
Sun Dec 30 14:57:20 2007
@@ -0,0 +1 @@
+This is a marker file to allow the repository to be found in the classpath.
\ No newline at end of file

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml?rev=607608&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
(added)
+++ directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
Sun Dec 30 14:57:20 2007
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  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.
+-->
+<!--
+  @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.directory.studio</groupId>
+        <artifactId>maven-studio-plugin</artifactId>
+        <configuration>
+          <project implementation="org.apache.directory.studio.maven.plugins.stubs.StudioCopyEclipseDependencyProjectStub"
/>
+          <destinationDirectory>target/test-classes/copy-plugins</destinationDirectory>
+          <artifactItems>
+            <artifactItem>
+              <groupId>org.eclipse.core</groupId>
+              <artifactId>jobs</artifactId>
+              <version>3.3.1-R33x_v20070709</version>
+            </artifactItem>
+            <artifactItem>
+              <groupId>org.eclipse.core</groupId>
+              <artifactId>commands</artifactId>
+              <version>3.3.0-I20070605-0010</version>
+            </artifactItem>
+          </artifactItems>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>

Propchange: directory/sandbox/felixk/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message