Repository: river-container
Updated Branches:
  refs/heads/master 4b3b01a61 -> 2cbf9f244
  refs/heads/plugin-work [created] 33855de25


Maven Plugin source is now in org.apache.river.container.mvnplugin package.

Project: http://git-wip-us.apache.org/repos/asf/river-container/repo
Commit: http://git-wip-us.apache.org/repos/asf/river-container/commit/2cbf9f24
Tree: http://git-wip-us.apache.org/repos/asf/river-container/tree/2cbf9f24
Diff: http://git-wip-us.apache.org/repos/asf/river-container/diff/2cbf9f24

Branch: refs/heads/master
Commit: 2cbf9f244d6a571d4f319a1ff8415ed3de32fa70
Parents: 4b3b01a
Author: Greg Trasuk <tras...@trasuk.com>
Authored: Sun Jan 19 22:32:35 2014 -0500
Committer: Greg Trasuk <tras...@trasuk.com>
Committed: Sun Jan 19 22:32:35 2014 -0500

----------------------------------------------------------------------
 .../river/container/mvnplugin/MyMojo.java       | 84 ++++++++++++++++++++
 .../river/container/maven/plugin/MyMojo.java    | 84 --------------------
 2 files changed, 84 insertions(+), 84 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/river-container/blob/2cbf9f24/river-container-maven-plugin/src/main/java/org/apache/river/container/mvnplugin/MyMojo.java
----------------------------------------------------------------------
diff --git 
a/river-container-maven-plugin/src/main/java/org/apache/river/container/mvnplugin/MyMojo.java
 
b/river-container-maven-plugin/src/main/java/org/apache/river/container/mvnplugin/MyMojo.java
new file mode 100644
index 0000000..6a00263
--- /dev/null
+++ 
b/river-container-maven-plugin/src/main/java/org/apache/river/container/mvnplugin/MyMojo.java
@@ -0,0 +1,84 @@
+package org.apache.river.container.mvnplugin;
+
+/*
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+
+import org.apache.maven.plugins.annotations.LifecyclePhase;
+import org.apache.maven.plugins.annotations.Mojo;
+import org.apache.maven.plugins.annotations.Parameter;
+import org.apache.maven.plugins.annotations.ResolutionScope;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Goal which touches a timestamp file.
+ *
+ * @deprecated Don't use!
+ */
+@Mojo( name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES )
+public class MyMojo
+    extends AbstractMojo
+{
+    /**
+     * Location of the file.
+     */
+    @Parameter( defaultValue = "${project.build.directory}", property = 
"outputDir", required = true )
+    private File outputDirectory;
+
+    public void execute()
+        throws MojoExecutionException
+    {
+        File f = outputDirectory;
+
+        if ( !f.exists() )
+        {
+            f.mkdirs();
+        }
+
+        File touch = new File( f, "touch.txt" );
+
+        FileWriter w = null;
+        try
+        {
+            w = new FileWriter( touch );
+
+            w.write( "touch.txt" );
+        }
+        catch ( IOException e )
+        {
+            throw new MojoExecutionException( "Error creating file " + touch, 
e );
+        }
+        finally
+        {
+            if ( w != null )
+            {
+                try
+                {
+                    w.close();
+                }
+                catch ( IOException e )
+                {
+                    // ignore
+                }
+            }
+        }
+    }
+}

http://git-wip-us.apache.org/repos/asf/river-container/blob/2cbf9f24/river-container-maven-plugin/src/main/java/org/apache/river/container/river/container/maven/plugin/MyMojo.java
----------------------------------------------------------------------
diff --git 
a/river-container-maven-plugin/src/main/java/org/apache/river/container/river/container/maven/plugin/MyMojo.java
 
b/river-container-maven-plugin/src/main/java/org/apache/river/container/river/container/maven/plugin/MyMojo.java
deleted file mode 100644
index 4bb1083..0000000
--- 
a/river-container-maven-plugin/src/main/java/org/apache/river/container/river/container/maven/plugin/MyMojo.java
+++ /dev/null
@@ -1,84 +0,0 @@
-package org.apache.river.container.river.container.maven.plugin;
-
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-
-import org.apache.maven.plugins.annotations.LifecyclePhase;
-import org.apache.maven.plugins.annotations.Mojo;
-import org.apache.maven.plugins.annotations.Parameter;
-import org.apache.maven.plugins.annotations.ResolutionScope;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-
-/**
- * Goal which touches a timestamp file.
- *
- * @deprecated Don't use!
- */
-@Mojo( name = "touch", defaultPhase = LifecyclePhase.PROCESS_SOURCES )
-public class MyMojo
-    extends AbstractMojo
-{
-    /**
-     * Location of the file.
-     */
-    @Parameter( defaultValue = "${project.build.directory}", property = 
"outputDir", required = true )
-    private File outputDirectory;
-
-    public void execute()
-        throws MojoExecutionException
-    {
-        File f = outputDirectory;
-
-        if ( !f.exists() )
-        {
-            f.mkdirs();
-        }
-
-        File touch = new File( f, "touch.txt" );
-
-        FileWriter w = null;
-        try
-        {
-            w = new FileWriter( touch );
-
-            w.write( "touch.txt" );
-        }
-        catch ( IOException e )
-        {
-            throw new MojoExecutionException( "Error creating file " + touch, 
e );
-        }
-        finally
-        {
-            if ( w != null )
-            {
-                try
-                {
-                    w.close();
-                }
-                catch ( IOException e )
-                {
-                    // ignore
-                }
-            }
-        }
-    }
-}

Reply via email to