directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r616766 [2/4] - in /directory/studio/branches/studio-maven: studio-plugin/ studio-plugin/src/ studio-plugin/src/main/ studio-plugin/src/main/java/ studio-plugin/src/main/java/org/ studio-plugin/src/main/java/org/apache/ studio-plugin/src/ma...
Date Wed, 30 Jan 2008 13:59:42 GMT
Added: directory/studio/branches/studio-maven/studio-plugin/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/site/apt/index.apt?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/site/apt/index.apt (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/site/apt/index.apt Wed Jan 30 05:59:34 2008
@@ -0,0 +1,67 @@
+~~ 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.    
+ 
+  ------
+  Introduction
+  ------
+  Apache Directory Project
+  ------
+  Oct 2007
+  ------
+  
+NOTE: THIS IS ONLY SANDBOX DOCUMENTATION!
+
+
+Directory Studio Maven Plugin
+
+  The directory studio maven plugin provides the capability to manipulate artifacts. It
+  can prefix existing jar content with a director or can replace/add a file within an existing
+  zip/jar archive.
+
+* Goals Overview
+
+  The directory studio maven plugin has 6 goals:
+  
+  * {{{prepare-jar-package-mojo.html}studio:prepare-jar-package}} prepares for building jar - copy artifacts not scoped "provided" 
+  to ${project.build.outputDirectory}/libraryPath (default is target/classes/lib)
+  
+  * {{{unpack-with-artifactid-prefix-mojo.html}studio:unpack-with-artifactid-prefix}} unpack an artifact in a desired location and put
+  the artifact content into a directory named like the final artifacts name (This is mainly used
+  to unpack a *-feature.jar).
+
+  * {{{clean-mojo.html}studio:clean}} cleans stuff generated by {{{eclipse-mojo.html}studio:eclipse}}
+  
+  * {{{replace-file-in-eclipse-artifact-mojo.html}studio:replace-file-in-eclipse-artifact}} takes a list of artifacts defined in
+  the plugin configuration section and a configured directory where the artifacts
+  are located (not in the local maven repository, but after a being copied e.g. to target
+  directory) and replaced/adds a desired file to them.
+
+  * {{{eclipse-mojo.html}studio:eclipse}} prepares for eclipse:\
+      Copy artifacts nonscoped "provided" to ${basedir}/lib.\
+      Add artifacts not scoped "provided" to Bundle-ClassPath in MANIFEST.MF.\
+      Adapt ${basedir}/.classpath for artifacts not scoped "provided".\
+
+  * {{{copy-eclipse-artifact-mojo.html}studio:copy-eclipse-artifact}}Copy a set of artifacts to a configured output directory 
+  by replacing the separator between artifactId and version by an underscore instead of a dash.
+
+  []
+  
+* Usage
+
+   * Instructions on how to use the dependency plugin can be found {{{usage.html}here}}.
+
+  []

Added: directory/studio/branches/studio-maven/studio-plugin/src/site/apt/usage.apt
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/site/apt/usage.apt?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/site/apt/usage.apt (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/site/apt/usage.apt Wed Jan 30 05:59:34 2008
@@ -0,0 +1,112 @@
+~~ 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.    
+ 
+  ------
+  Usage
+  ------
+  Apache Directory Project
+  ------
+  Oct 2007
+  ------
+
+Usage
+ 
+  Brief examples on how to use the dependency goals.
+ 
+* Generic Plugin configuration information
+
+  See the following links for information about including and configuring plugins in your project:
+  
+  *{{{http://maven.apache.org/guides/mini/guide-configuring-plugins.html}Configuring Plugins}}
+  
+  *{{{http://maven.apache.org/guides/plugin/guide-java-plugin-development.html}Plugin Development}}
+
+  *{{{http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html}Plugin Prefix}}
+
+* The <<<studio:prefix-jar-content>>> mojo
+
+Prefix built jar
+
+  Prefixes the content of the built jar with its artifact name 
+  (normally used to build extractable studio-*-feature.jar).
+
++---+
+<project>
+  [...]
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.directory.studio</groupId>
+        <artifactId>maven-studio-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>prefix-jar-content</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
+  
+* The <<<studio:replace-file-in-jar>>> mojo
+
+Add or replace a file to existing, distributed artifact
+
+  Adds or replaces a file in an existing, distributed artifact.
+
++---+
+<project>
+  [...]
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.directory.studio</groupId>
+        <artifactId>maven-studio-plugin</artifactId>
+        <executions>
+          <execution>
+            <id>replace-plugin.xml-in-org.eclipse.search</id>
+            <phase>process-resources</phase>
+            <goals>
+              <goal>replace-file-in-eclipse-artifact</goal>
+            </goals>
+            <configuration>
+              <inputFile>src/main/configuration/org.eclipse.search/plugin.xml</inputFile>
+              <destinationDirectory>${studio-dir}/plugins</destinationDirectory>
+              <overWrite>false</overWrite>
+              <outputDirectory>target/eclipse/plugins</outputDirectory>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.eclipse</groupId>
+                  <artifactId>org.eclipse.search</artifactId>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+  [...]
+</project>
++---+
+  
+  
+  

Added: directory/studio/branches/studio-maven/studio-plugin/src/site/fml/faq.fml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/site/fml/faq.fml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/site/fml/faq.fml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/site/fml/faq.fml Wed Jan 30 05:59:34 2008
@@ -0,0 +1,78 @@
+<?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>
+-->
+
+<faqs id="FAQ" title="Frequently Asked Questions">
+<part id="general">
+    <title>General</title>
+   
+    <faq id="Adapting .classpath">
+      <question>
+        My classpath is not updated for a specific module. What is wrong?
+      </question>
+      <answer>
+        <p>You need to have set the skip flag to false, that the studio:eclipse goal is executed on your module.</p>
+        <source>
+<build>
+  <plugins>
+    <plugin>
+      <groupId>org.apache.directory.studio</groupId>
+      <artifactId>maven-studio-plugin</artifactId>
+      <configuration>
+        <skip>false</skip>
+      </configuration>
+    </plugin>
+  </plugins>
+</build>
+        </source>
+      </answer>
+    </faq>
+
+  </part>
+  
+  <part id="install">
+    <title>Installation</title>
+   
+    <faq id="Prefixing plugin goal">
+      <question>
+        Running mvn studio:{goal} maven doesn't finds the plugin 'studio'. What's wrong?
+      </question>
+      <answer>
+        <p>The studio plugin has not the default package name for maven plugins. You need to prefix the studio plugin. See
+        <a href="http://maven.apache.org/guides/introduction/introduction-to-plugin-prefix-mapping.html">Introduction to 
+        Plugin Prefix Resolution</a> or do the prefixing within your projects root pom:
+        <source>
+<build>
+  <plugins>
+    <plugin>
+      <groupId>org.apache.directory.studio</groupId>
+      <artifactId>maven-studio-plugin</artifactId>
+        <configuration>
+          <goalPrefix>studio</goalPrefix>
+        </configuration>
+      </plugin>
+  </plugins>
+</build>
+        </source>
+        </p>
+      </answer>
+    </faq>
+  </part>  
+</faqs>

Added: directory/studio/branches/studio-maven/studio-plugin/src/site/site.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/site/site.xml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/site/site.xml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/site/site.xml Wed Jan 30 05:59:34 2008
@@ -0,0 +1,38 @@
+<?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>
+  <body>
+    <menu name="Overview">
+      <item name="Introduction" href="index.html" />
+      <item name="Goals" href="plugin-info.html" />
+      <item name="Usage" href="usage.html" />
+      <item name="FAQ" href="faq.html" />
+    </menu>
+    <menu name="Examples">
+      <item name="prepare-jar-package" href="examples/prepare-jar-package.html" />
+      <item name="unpack-with-artifactid-prefix" href="examples/unpack-with-artifactid-prefix.html" />
+      <item name="replace-file-in-eclipse-artifact" href="examples/replace-file-in-eclipse-artifact.html" />
+      <item name="copy-eclipse-artifact" href="examples/copy-eclipse-artifact.html" />
+    </menu>
+    <menu ref="reports" />
+  </body>
+</project>
\ No newline at end of file

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCleanMojoTest.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCleanMojoTest.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCleanMojoTest.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCleanMojoTest.java Wed Jan 30 05:59:34 2008
@@ -0,0 +1,121 @@
+/*
+ * 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.RandomAccessFile;
+import java.nio.channels.FileChannel;
+import java.nio.channels.FileLock;
+
+import org.apache.directory.studio.maven.plugins.StudioCleanMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+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 StudioCleanMojoTest extends AbstractMojoTestCase
+{
+    /** {@inheritDoc} */
+    protected void setUp() throws Exception
+    {
+        super.setUp();
+    }
+
+
+    /** {@inheritDoc} */
+    protected void tearDown() throws Exception
+    {
+        super.tearDown();
+    }
+
+
+    /**
+     * Tests the simple removal of the lib dir and the 2 files 'maven-eclipse.xml' and '.externalToolBuilders'
+     *
+     * @throws Exception
+     */
+    public void testBasicClean() throws Exception
+    {
+        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-clean-test/plugin-pom.xml";
+
+        // safety
+        FileUtils.copyDirectory( new File( getBasedir(), "src/test/resources/unit/basic-clean-test" ), new File(
+            getBasedir(), "target/test-classes/unit/basic-clean-test" ), null, "**/.svn,**/.svn/**" );
+
+        StudioCleanMojo mojo = ( StudioCleanMojo ) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
+
+        mojo.execute();
+
+        assertFalse( "File maven-eclipse.xml exists", checkExists( getBasedir() + "/target/test-classes/unit/"
+            + "basic-clean-test/maven-eclipse.xml" ) );
+        assertFalse( "File .externalToolBuilder exists", checkExists( getBasedir() + "/target/test-classes/unit/"
+            + "basic-clean-test/.externalToolBuilders" ) );
+        assertFalse( "Directory exists", checkExists( getBasedir() + "/target/test-classes/unit/basic-clean-test/"
+            + "lib" ) );
+    }
+
+
+    /**
+     * Tests for exception hanndling - an exception should only be logged, but not be thrown
+     *
+     * @throws Exception
+     */
+    public void testBasicCleanException() throws Exception
+    {
+        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml";
+        StudioCleanMojo mojo = ( StudioCleanMojo ) lookupMojo( "clean", pluginPom );
+        assertNotNull( mojo );
+
+        try
+        {
+            mojo.execute();
+        }
+        catch ( Exception e )
+        {
+            fail( "Exception thrown: " + e.toString() );
+        }
+    }
+
+
+    /**
+     * @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;
+    }
+}

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioCopyEclipseDependencyMojoTest.java Wed Jan 30 05:59:34 2008
@@ -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 copy eclipse dependency 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;
+    }
+
+}

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioUnpackPrefixedMojoTest.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioUnpackPrefixedMojoTest.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioUnpackPrefixedMojoTest.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/StudioUnpackPrefixedMojoTest.java Wed Jan 30 05:59:34 2008
@@ -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 unpack prefixed mojo.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class StudioUnpackPrefixedMojoTest 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 unpacking of a (OSGi) artifact into a directory of it's bundlename (=prefix)
+     *
+     * @throws Exception
+     */
+    public void testUnpackPrefixed() throws Exception
+    {
+        String pluginPom = getBasedir() + "/src/test/resources/unit/basic-unpack-test/plugin-pom.xml";
+        StudioUnpackPrefixedMojo mojo = ( StudioUnpackPrefixedMojo ) lookupMojo( "unpack-with-artifactid-prefix",
+            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( "Directory org.eclipse.core.jobs_3.3.1.R33x_v20070709 not exists", checkExists( getBasedir()
+            + "/target/test-classes/unpack-plugins/" + "org.eclipse.core.jobs_3.3.1.R33x_v20070709" ) );
+        assertTrue( "directory org.eclipse.core.commands_3.3.0.I20070605_0010 not exists", checkExists( getBasedir()
+            + "/target/test-classes/unpack-plugins/" + "org.eclipse.core.commands_3.3.0.I20070605_0010" ) );
+    }
+
+
+    /**
+     * @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;
+    }
+
+}

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCleanProjectStub.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCleanProjectStub.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCleanProjectStub.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCleanProjectStub.java Wed Jan 30 05:59:34 2008
@@ -0,0 +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.
+ */
+package org.apache.directory.studio.maven.plugins.stubs;
+
+
+import java.io.File;
+
+import org.apache.maven.plugin.testing.stubs.MavenProjectStub;
+
+
+/**
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class StudioCleanProjectStub extends MavenProjectStub
+{
+    public File getBasedir()
+    {
+        return new File( "target/test-classes/unit/basic-clean-test" );
+    }
+}

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioCopyEclipseDependencyProjectStub.java Wed Jan 30 05:59:34 2008
@@ -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
+}

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioUnpackPrefixedProjectStub.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioUnpackPrefixedProjectStub.java?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioUnpackPrefixedProjectStub.java (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/java/org/apache/directory/studio/maven/plugins/stubs/StudioUnpackPrefixedProjectStub.java Wed Jan 30 05:59:34 2008
@@ -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 StudioUnpackPrefixedProjectStub extends MavenProjectStub
+{
+    // NOP
+}

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -0,0 +1 @@
+f602b5987689e09820fe1a3e67b25c423a1214ae
\ No newline at end of file

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -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

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -0,0 +1 @@
+dcb6027b956650a1f48509eed884383d0ccb19a8
\ No newline at end of file

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -0,0 +1 @@
+8d355e18c3bfbf4869af5cc6b784369bc41d7bbd
\ No newline at end of file

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -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

Added: directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/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/studio/branches/studio-maven/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 Wed Jan 30 05:59:34 2008
@@ -0,0 +1 @@
+6bc64c55230dacd30677d9dca9ca0c5d5cc112de
\ No newline at end of file

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/resources/org/apache/directory/studio/maven/plugins/test-copy-repo/repo-marker.txt Wed Jan 30 05:59:34 2008
@@ -0,0 +1 @@
+This is a marker file to allow the repository to be found in the classpath.
\ No newline at end of file

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/.externalToolBuilders
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/.externalToolBuilders?rev=616766&view=auto
==============================================================================
    (empty)

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/lib/dummy.jar
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/lib/dummy.jar?rev=616766&view=auto
==============================================================================
    (empty)

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/maven-eclipse.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/maven-eclipse.xml?rev=616766&view=auto
==============================================================================
    (empty)

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-exception-pom.xml Wed Jan 30 05:59:34 2008
@@ -0,0 +1,35 @@
+<?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>
+          <libraryPath>lib</libraryPath>
+          <skip>false</skip>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-clean-test/plugin-pom.xml Wed Jan 30 05:59:34 2008
@@ -0,0 +1,36 @@
+<?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.StudioCleanProjectStub" />
+          <libraryPath>lib</libraryPath>
+          <skip>false</skip>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-copy-test/plugin-pom.xml Wed Jan 30 05:59:34 2008
@@ -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>

Added: directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-unpack-test/plugin-pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-unpack-test/plugin-pom.xml?rev=616766&view=auto
==============================================================================
--- directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-unpack-test/plugin-pom.xml (added)
+++ directory/studio/branches/studio-maven/studio-plugin/src/test/resources/unit/basic-unpack-test/plugin-pom.xml Wed Jan 30 05:59:34 2008
@@ -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.StudioUnpackPrefixedProjectStub" />
+          <outputDirectory>target/test-classes/unpack-plugins</outputDirectory>
+          <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>



Mime
View raw message