[seam-commits] Seam SVN: r12728 - in sandbox/encore: src and 10 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri May 14 16:29:23 EDT 2010


Author: lincolnthree
Date: 2010-05-14 16:29:22 -0400 (Fri, 14 May 2010)
New Revision: 12728

Added:
   sandbox/encore/pom.xml
   sandbox/encore/src/
   sandbox/encore/src/main/
   sandbox/encore/src/main/java/
   sandbox/encore/src/main/java/org/
   sandbox/encore/src/main/java/org/jboss/
   sandbox/encore/src/main/java/org/jboss/encore/
   sandbox/encore/src/main/java/org/jboss/encore/model/
   sandbox/encore/src/main/java/org/jboss/encore/model/Mutable.java
   sandbox/encore/src/main/java/org/jboss/encore/model/Project.java
   sandbox/encore/src/main/java/org/jboss/encore/model/Stateful.java
   sandbox/encore/src/main/java/org/jboss/seam/
   sandbox/encore/src/main/java/org/jboss/seam/encore/
   sandbox/encore/src/main/java/org/jboss/seam/encore/mojo/
   sandbox/encore/src/main/java/org/jboss/seam/encore/mojo/Execute.java
   sandbox/encore/src/main/resources/
   sandbox/encore/src/test/
   sandbox/encore/src/test/java/
   sandbox/encore/src/test/resources/
Modified:
   sandbox/encore/
Log:
Initial import.


Property changes on: sandbox/encore
___________________________________________________________________
Name: svn:ignore
   + target
.settings
.classpath
.project


Added: sandbox/encore/pom.xml
===================================================================
--- sandbox/encore/pom.xml	                        (rev 0)
+++ sandbox/encore/pom.xml	2010-05-14 20:29:22 UTC (rev 12728)
@@ -0,0 +1,36 @@
+<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.jboss.seam.encore</groupId>
+	<artifactId>encore</artifactId>
+	<version>1.0.0-SNAPSHOT</version>
+	<packaging>maven-plugin</packaging>
+	<name>Seam Encore</name>
+	<description>Simplified project bootstrapping and incremental enhancement framework	</description>
+
+	<dependencies>
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-plugin-api</artifactId>
+			<version>2.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.jboss.shrinkwrap</groupId>
+			<artifactId>shrinkwrap-api</artifactId>
+			<version>1.0.0-alpha-9</version>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-model</artifactId>
+			<version>3.0-beta-1</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven.plugins</groupId>
+			<artifactId>maven-clean-plugin</artifactId>
+			<version>2.1.1</version>
+			<scope>provided</scope>
+		</dependency>
+	</dependencies>
+
+</project>
\ No newline at end of file

Added: sandbox/encore/src/main/java/org/jboss/encore/model/Mutable.java
===================================================================
--- sandbox/encore/src/main/java/org/jboss/encore/model/Mutable.java	                        (rev 0)
+++ sandbox/encore/src/main/java/org/jboss/encore/model/Mutable.java	2010-05-14 20:29:22 UTC (rev 12728)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.encore.model;
+
+/**
+ * @author <a href="mailto:lincolnbaxter at gmail.com">Lincoln Baxter, III</a>
+ *
+ */
+public interface Mutable
+{
+
+}

Added: sandbox/encore/src/main/java/org/jboss/encore/model/Project.java
===================================================================
--- sandbox/encore/src/main/java/org/jboss/encore/model/Project.java	                        (rev 0)
+++ sandbox/encore/src/main/java/org/jboss/encore/model/Project.java	2010-05-14 20:29:22 UTC (rev 12728)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.encore.model;
+
+/**
+ * The root node of the Project Object Graph (POG)
+ * 
+ * @author <a href="mailto:lincolnbaxter at gmail.com">Lincoln Baxter, III</a>
+ * 
+ */
+public interface Project extends Mutable, Stateful
+{
+
+}

Added: sandbox/encore/src/main/java/org/jboss/encore/model/Stateful.java
===================================================================
--- sandbox/encore/src/main/java/org/jboss/encore/model/Stateful.java	                        (rev 0)
+++ sandbox/encore/src/main/java/org/jboss/encore/model/Stateful.java	2010-05-14 20:29:22 UTC (rev 12728)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc., and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.encore.model;
+
+/**
+ * @author <a href="mailto:lincolnbaxter at gmail.com">Lincoln Baxter, III</a>
+ *
+ */
+public interface Stateful
+{
+
+}

Added: sandbox/encore/src/main/java/org/jboss/seam/encore/mojo/Execute.java
===================================================================
--- sandbox/encore/src/main/java/org/jboss/seam/encore/mojo/Execute.java	                        (rev 0)
+++ sandbox/encore/src/main/java/org/jboss/seam/encore/mojo/Execute.java	2010-05-14 20:29:22 UTC (rev 12728)
@@ -0,0 +1,75 @@
+package org.jboss.seam.encore.mojo;
+
+import java.io.File;
+
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.jboss.encore.model.Project;
+
+/**
+ * @goal execute
+ * 
+ * @requiresProject false
+ * 
+ *                  We can get the Mojo to run outside of a directory with a POM
+ */
+public class Execute extends AbstractMojo
+{
+
+   /**
+    * This is where build results go.
+    * 
+    * @parameter expression="${project.build.directory}"
+    * @required
+    * @readonly
+    */
+   private File directory;
+
+   /**
+    * This is where compiled classes go.
+    * 
+    * @parameter expression="${project.build.outputDirectory}"
+    * @required
+    * @readonly
+    */
+   private File outputDirectory;
+
+   /**
+    * This is where compiled test classes go.
+    * 
+    * @parameter expression="${project.build.testOutputDirectory}"
+    * @required
+    * @readonly
+    */
+   private File testOutputDirectory;
+
+   /**
+    * This is where the site plugin generates its pages.
+    * 
+    * @parameter expression="${project.reporting.outputDirectory}"
+    * @required
+    * @readonly
+    */
+   private File reportDirectory;
+
+   /**
+    * Do the work
+    */
+   public void execute() throws MojoExecutionException
+   {
+      /*
+       * Get parameters
+       */
+
+      /*
+       * Get Project Object Graph
+       */
+      Project project;
+
+      /*
+       * Invoke specified plugin, providing graph
+       */
+      getLog().info("Hello, world.");
+   }
+}
\ No newline at end of file



More information about the seam-commits mailing list