directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r519229 - in /directory/sandbox/oersoy/mojo.util: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/commons/ src/main/java/org/apache/commons/io/ src/main/java/org/apache/commons/io/donat...
Date Sat, 17 Mar 2007 03:15:52 GMT
Author: oersoy
Date: Fri Mar 16 20:15:50 2007
New Revision: 519229

URL: http://svn.apache.org/viewvc?view=rev&rev=519229
Log: (empty)

Added:
    directory/sandbox/oersoy/mojo.util/.classpath
    directory/sandbox/oersoy/mojo.util/.project
    directory/sandbox/oersoy/mojo.util/pom.xml
    directory/sandbox/oersoy/mojo.util/src/
    directory/sandbox/oersoy/mojo.util/src/main/
    directory/sandbox/oersoy/mojo.util/src/main/java/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/FileUtilities.java
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilities.java
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.java
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/tuscany/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/tuscany/emf/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/tuscany/emf/io/
    directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/tuscany/emf/io/util/
    directory/sandbox/oersoy/mojo.util/src/test/
    directory/sandbox/oersoy/mojo.util/src/test/java/
    directory/sandbox/oersoy/mojo.util/src/test/java/org/
    directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/
    directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/
    directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/
    directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/AppTest.java
    directory/sandbox/oersoy/mojo.util/target/
    directory/sandbox/oersoy/mojo.util/target/classes/
    directory/sandbox/oersoy/mojo.util/target/classes/org/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/donate/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/donate/FileUtilities.class
  (with props)
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilities.class
  (with props)
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.class
  (with props)
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/tuscany/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/tuscany/emf/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/tuscany/emf/io/
    directory/sandbox/oersoy/mojo.util/target/classes/org/apache/tuscany/emf/io/util/
    directory/sandbox/oersoy/mojo.util/target/mojo.util-1.0-SNAPSHOT.jar   (with props)
    directory/sandbox/oersoy/mojo.util/target/surefire-reports/
    directory/sandbox/oersoy/mojo.util/target/surefire-reports/TEST-org.apache.maven.plugins.AppTest.xml
    directory/sandbox/oersoy/mojo.util/target/surefire-reports/org.apache.maven.plugins.AppTest.txt
    directory/sandbox/oersoy/mojo.util/target/test-classes/
    directory/sandbox/oersoy/mojo.util/target/test-classes/org/
    directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/
    directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/
    directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/plugins/
    directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/plugins/AppTest.class
  (with props)

Added: directory/sandbox/oersoy/mojo.util/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/.classpath?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/.classpath (added)
+++ directory/sandbox/oersoy/mojo.util/.classpath Fri Mar 16 20:15:50 2007
@@ -0,0 +1,9 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/commons-io/commons-io/1.2/commons-io-1.2.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar"/>
+</classpath>
\ No newline at end of file

Added: directory/sandbox/oersoy/mojo.util/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/.project?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/.project (added)
+++ directory/sandbox/oersoy/mojo.util/.project Fri Mar 16 20:15:50 2007
@@ -0,0 +1,14 @@
+<projectDescription>
+  <name>mojo.util</name>
+  <comment/>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/oersoy/mojo.util/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/pom.xml?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/pom.xml (added)
+++ directory/sandbox/oersoy/mojo.util/pom.xml Fri Mar 16 20:15:50 2007
@@ -0,0 +1,46 @@
+<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">
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>org.apache.maven.plugins</groupId>
+   <artifactId>mojo.util</artifactId>
+   <packaging>jar</packaging>
+   <version>1.0-SNAPSHOT</version>
+   <name>mojo.util</name>
+   <url>http://maven.apache.org</url>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <configuration>
+          <source>1.5</source>
+          <target>1.5</target>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+   <dependencies>
+
+      <dependency>   
+         <groupId>org.apache.maven</groupId>
+         <artifactId>maven-plugin-api</artifactId>
+         <version>2.0</version>
+      </dependency>
+
+      <dependency>
+         <groupId>commons-io</groupId>
+         <artifactId>commons-io</artifactId>
+         <version>1.2</version>
+         <scope>compile</scope>
+      </dependency>
+
+      <dependency>
+         <groupId>junit</groupId>
+         <artifactId>junit</artifactId>
+         <version>3.8.1</version>
+         <scope>test</scope>
+      </dependency>
+
+   </dependencies>
+</project>

Added: directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/FileUtilities.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/FileUtilities.java?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/FileUtilities.java
(added)
+++ directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/commons/io/donate/FileUtilities.java
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,45 @@
+package org.apache.commons.io.donate;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import org.apache.commons.io.FileUtils;
+
+public class FileUtilities 
+{
+    public static List<File> create(ArrayList<String> paths)
+    {
+        Iterator<String> pathIterator = paths.iterator();
+        List<File> files  = new ArrayList<File>();
+        while(pathIterator.hasNext())
+        {
+            files.add(new File(pathIterator.next()));
+        }
+        return files;
+    }
+    
+    public static void create(List<File> directories)
+    {
+        Iterator<File> directoryIterator = directories.iterator();
+        
+        while(directoryIterator.hasNext())
+        {
+            File directory = directoryIterator.next();
+            directory.mkdirs();
+        }
+    }
+
+    public static void delete(List<File> directories) throws IOException 
+    {
+        Iterator<File> directoriesIterator = directories.iterator();
+        
+        while(directoriesIterator.hasNext())
+        {
+            File file = directoriesIterator.next();
+            FileUtils.deleteDirectory( file );
+        }
+    }
+}

Added: directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilities.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilities.java?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilities.java
(added)
+++ directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilities.java
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,24 @@
+package org.apache.maven.plugins.mojo.util;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.List;
+
+import org.apache.commons.io.donate.FileUtilities;
+import org.apache.maven.plugin.MojoExecutionException;
+
+public class MojoFileUtilities implements MojoFileUtilityConstants
+{
+    public static void deleteMojoDirectories(List<File> directoriesList) 
+    throws MojoExecutionException
+    {
+        try
+        {
+            FileUtilities.delete(directoriesList);
+        }
+        catch ( IOException e )
+        {
+            throw new MojoExecutionException(DELETE_MOJO_DIRECTORY_EXCEPTION_MESSAGE);
+        }
+    }
+}

Added: directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.java?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.java
(added)
+++ directory/sandbox/oersoy/mojo.util/src/main/java/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.java
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,10 @@
+
+package org.apache.maven.plugins.mojo.util;
+
+public interface MojoFileUtilityConstants
+{
+    String DELETE_MOJO_DIRECTORY_EXCEPTION_MESSAGE = 
+        "One or more directories could not be deleted.  " +
+        "Check paths and permissions and try again.";
+
+}

Added: directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/AppTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/AppTest.java?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/AppTest.java
(added)
+++ directory/sandbox/oersoy/mojo.util/src/test/java/org/apache/maven/plugins/AppTest.java
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,38 @@
+package org.apache.maven.plugins;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest 
+    extends TestCase
+{
+    /**
+     * Create the test case
+     *
+     * @param testName name of the test case
+     */
+    public AppTest( String testName )
+    {
+        super( testName );
+    }
+
+    /**
+     * @return the suite of tests being tested
+     */
+    public static Test suite()
+    {
+        return new TestSuite( AppTest.class );
+    }
+
+    /**
+     * Rigourous Test :-)
+     */
+    public void testApp()
+    {
+        assertTrue( true );
+    }
+}

Added: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/donate/FileUtilities.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/donate/FileUtilities.class?view=auto&rev=519229
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/commons/io/donate/FileUtilities.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilities.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilities.class?view=auto&rev=519229
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilities.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.class?view=auto&rev=519229
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/mojo.util/target/classes/org/apache/maven/plugins/mojo/util/MojoFileUtilityConstants.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/mojo.util/target/mojo.util-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/mojo.util-1.0-SNAPSHOT.jar?view=auto&rev=519229
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/mojo.util/target/mojo.util-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/mojo.util/target/surefire-reports/TEST-org.apache.maven.plugins.AppTest.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/surefire-reports/TEST-org.apache.maven.plugins.AppTest.xml?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/target/surefire-reports/TEST-org.apache.maven.plugins.AppTest.xml
(added)
+++ directory/sandbox/oersoy/mojo.util/target/surefire-reports/TEST-org.apache.maven.plugins.AppTest.xml
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.135" errors="0" skipped="0" tests="1" name="org.apache.maven.plugins.AppTest">
+  <properties>
+    <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
+    <property name="sun.boot.library.path" value="/usr/java/jdk1.6.0/jre/lib/i386"/>
+    <property name="java.vm.version" value="1.6.0-b105"/>
+    <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
+    <property name="java.vendor.url" value="http://java.sun.com/"/>
+    <property name="path.separator" value=":"/>
+    <property name="java.vm.name" value="Java HotSpot(TM) Client VM"/>
+    <property name="file.encoding.pkg" value="sun.io"/>
+    <property name="user.country" value="US"/>
+    <property name="sun.java.launcher" value="SUN_STANDARD"/>
+    <property name="sun.os.patch.level" value="unknown"/>
+    <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
+    <property name="user.dir" value="/home/ole/workspace/mojo.util"/>
+    <property name="java.runtime.version" value="1.6.0-b105"/>
+    <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
+    <property name="basedir" value="/home/ole/workspace/mojo.util"/>
+    <property name="java.endorsed.dirs" value="/usr/java/jdk1.6.0/jre/lib/endorsed"/>
+    <property name="os.arch" value="i386"/>
+    <property name="java.io.tmpdir" value="/tmp"/>
+    <property name="line.separator" value="
+"/>
+    <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
+    <property name="os.name" value="Linux"/>
+    <property name="sun.jnu.encoding" value="UTF-8"/>
+    <property name="java.library.path" value="/usr/java/jdk1.6.0/jre/lib/i386/client:/usr/java/jdk1.6.0/jre/lib/i386:/usr/java/jdk1.6.0/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib"/>
+    <property name="java.specification.name" value="Java Platform API Specification"/>
+    <property name="java.class.version" value="50.0"/>
+    <property name="sun.management.compiler" value="HotSpot Client Compiler"/>
+    <property name="os.version" value="2.6.19-1.2911.6.4.fc6"/>
+    <property name="user.home" value="/home/ole"/>
+    <property name="user.timezone" value=""/>
+    <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
+    <property name="file.encoding" value="UTF-8"/>
+    <property name="java.specification.version" value="1.6"/>
+    <property name="user.name" value="ole"/>
+    <property name="java.class.path" value="/home/ole/.m2/repository/org/apache/maven/surefire/surefire-api/2.0/surefire-api-2.0.jar:/home/ole/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/ole/.m2/repository/org/apache/maven/surefire/surefire-booter/2.0/surefire-booter-2.0.jar"/>
+    <property name="java.vm.specification.version" value="1.0"/>
+    <property name="sun.arch.data.model" value="32"/>
+    <property name="java.home" value="/usr/java/jdk1.6.0/jre"/>
+    <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
+    <property name="user.language" value="en"/>
+    <property name="java.vm.info" value="mixed mode, sharing"/>
+    <property name="java.version" value="1.6.0"/>
+    <property name="java.ext.dirs" value="/usr/java/jdk1.6.0/jre/lib/ext:/usr/java/packages/lib/ext"/>
+    <property name="sun.boot.class.path" value="/usr/java/jdk1.6.0/jre/lib/resources.jar:/usr/java/jdk1.6.0/jre/lib/rt.jar:/usr/java/jdk1.6.0/jre/lib/sunrsasign.jar:/usr/java/jdk1.6.0/jre/lib/jsse.jar:/usr/java/jdk1.6.0/jre/lib/jce.jar:/usr/java/jdk1.6.0/jre/lib/charsets.jar:/usr/java/jdk1.6.0/jre/classes"/>
+    <property name="java.vendor" value="Sun Microsystems Inc."/>
+    <property name="localRepository" value="/home/ole/.m2/repository"/>
+    <property name="file.separator" value="/"/>
+    <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
+    <property name="sun.cpu.endian" value="little"/>
+    <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
+    <property name="sun.cpu.isalist" value=""/>
+  </properties>
+  <testcase time="0.002" name="testApp"/>
+</testsuite>
\ No newline at end of file

Added: directory/sandbox/oersoy/mojo.util/target/surefire-reports/org.apache.maven.plugins.AppTest.txt
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/surefire-reports/org.apache.maven.plugins.AppTest.txt?view=auto&rev=519229
==============================================================================
--- directory/sandbox/oersoy/mojo.util/target/surefire-reports/org.apache.maven.plugins.AppTest.txt
(added)
+++ directory/sandbox/oersoy/mojo.util/target/surefire-reports/org.apache.maven.plugins.AppTest.txt
Fri Mar 16 20:15:50 2007
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: org.apache.maven.plugins.AppTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.15 sec

Added: directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/plugins/AppTest.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/plugins/AppTest.class?view=auto&rev=519229
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/mojo.util/target/test-classes/org/apache/maven/plugins/AppTest.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message