You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by ms...@apache.org on 2006/11/03 21:16:23 UTC

svn commit: r470974 - in /incubator/ode/trunk/superbia: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/ode/ src/main/java/org/apache/ode/superbia/ src/main/java/org/apache/ode/superbia/multisource/

Author: mszefler
Date: Fri Nov  3 12:16:22 2006
New Revision: 470974

URL: http://svn.apache.org/viewvc?view=rev&rev=470974
Log:
Ah Maven. 

Added:
    incubator/ode/trunk/superbia/
    incubator/ode/trunk/superbia/.classpath   (with props)
    incubator/ode/trunk/superbia/.project   (with props)
    incubator/ode/trunk/superbia/pom.xml   (with props)
    incubator/ode/trunk/superbia/src/
    incubator/ode/trunk/superbia/src/main/
    incubator/ode/trunk/superbia/src/main/java/
    incubator/ode/trunk/superbia/src/main/java/org/
    incubator/ode/trunk/superbia/src/main/java/org/apache/
    incubator/ode/trunk/superbia/src/main/java/org/apache/ode/
    incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/
    incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/
    incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java   (with props)

Added: incubator/ode/trunk/superbia/.classpath
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/superbia/.classpath?view=auto&rev=470974
==============================================================================
--- incubator/ode/trunk/superbia/.classpath (added)
+++ incubator/ode/trunk/superbia/.classpath Fri Nov  3 12:16:22 2006
@@ -0,0 +1,17 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-repository-metadata/2.0/maven-repository-metadata-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.jar"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-model/2.0/maven-model-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-project/2.0/maven-project-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-profile/2.0/maven-profile-2.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/maven-artifact-manager/2.0/maven-artifact-manager-2.0.jar"/>
+</classpath>
\ No newline at end of file

Propchange: incubator/ode/trunk/superbia/.classpath
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/ode/trunk/superbia/.project
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/superbia/.project?view=auto&rev=470974
==============================================================================
--- incubator/ode/trunk/superbia/.project (added)
+++ incubator/ode/trunk/superbia/.project Fri Nov  3 12:16:22 2006
@@ -0,0 +1,14 @@
+<projectDescription>
+  <name>ode-superbia</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

Propchange: incubator/ode/trunk/superbia/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/ode/trunk/superbia/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/superbia/pom.xml?view=auto&rev=470974
==============================================================================
--- incubator/ode/trunk/superbia/pom.xml (added)
+++ incubator/ode/trunk/superbia/pom.xml Fri Nov  3 12:16:22 2006
@@ -0,0 +1,50 @@
+<?xml version="1.0"?>
+<!--
+  ~ 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.
+  -->
+
+<project>
+    <groupId>org.apache.ode</groupId>
+    <artifactId>ode-superbia</artifactId>
+    <name>ODE :: Superbia</name>
+   <packaging>maven-plugin</packaging>
+	
+
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.ode</groupId>
+    <artifactId>ode</artifactId>
+    <version>2.0-SNAPSHOT</version>
+  </parent>
+    <version>2.0-SNAPSHOT</version>
+	<dependencies>
+		
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-plugin-api</artifactId>
+			<version>2.0</version>
+		</dependency>
+		
+		<dependency>
+			<groupId>org.apache.maven</groupId>
+			<artifactId>maven-project</artifactId>
+			<version>2.0</version>
+		</dependency>
+		
+	</dependencies>
+</project>

Propchange: incubator/ode/trunk/superbia/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java?view=auto&rev=470974
==============================================================================
--- incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java (added)
+++ incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java Fri Nov  3 12:16:22 2006
@@ -0,0 +1,51 @@
+package org.apache.ode.superbia.multisource;
+
+import java.io.File;
+
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.project.MavenProject;
+
+/**
+ * @goal msdp
+ * @phase generate-sources
+ * @description Multiple Source Directory Plugin for Maven2
+ */
+public class MultipleSourceDirMojo extends AbstractMojo {
+
+    /**
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    private MavenProject project;
+
+    /**
+     * @parameter expression="${sourceDir}"
+     * @required
+     */
+    private File sourcedir;
+    
+    public void execute() throws MojoExecutionException, MojoFailureException {
+        getLog().debug("Adding " + sourcedir + " to compiler path");
+        project.addCompileSourceRoot(sourcedir.getAbsolutePath());
+    }
+
+    public MavenProject getProject() {
+        return project;
+    }
+
+    public void setProject(MavenProject project) {
+        this.project = project;
+    }
+
+    public File getSourceDir() {
+        return sourcedir;
+    }
+
+    public void setSourceDir(File sourcedir) {
+        this.sourcedir = sourcedir;
+    }
+
+}

Propchange: incubator/ode/trunk/superbia/src/main/java/org/apache/ode/superbia/multisource/MultipleSourceDirMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native