You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by tc...@apache.org on 2006/06/14 12:40:29 UTC

svn commit: r414185 - in /jakarta/commons/sandbox/jci/trunk: ./ compilers/javac/ compilers/javac/src/java/org/apache/commons/jci/compilers/ maven-jci-plugin/ maven-jci-plugin/src/ maven-jci-plugin/src/main/ maven-jci-plugin/src/main/java/ maven-jci-plu...

Author: tcurdt
Date: Wed Jun 14 03:40:27 2006
New Revision: 414185

URL: http://svn.apache.org/viewvc?rev=414185&view=rev
Log:
GSoC: first implementation of the maven2 plugin by Peter Konstantinov

Added:
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java   (with props)
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/
    jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java   (with props)
Modified:
    jakarta/commons/sandbox/jci/trunk/compilers/javac/pom.xml
    jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java
    jakarta/commons/sandbox/jci/trunk/pom.xml

Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/pom.xml?rev=414185&r1=414184&r2=414185&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/pom.xml (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/pom.xml Wed Jun 14 03:40:27 2006
@@ -25,7 +25,7 @@
 			<version>1.0-SNAPSHOT</version>
 		</dependency>
 		<dependency>
-			<groupId>javassist</groupId>
+			<groupId>jboss</groupId>
 			<artifactId>javassist</artifactId>
 			<version>3.0</version>
 		</dependency>

Modified: jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java?rev=414185&r1=414184&r2=414185&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java (original)
+++ jakarta/commons/sandbox/jci/trunk/compilers/javac/src/java/org/apache/commons/jci/compilers/JavacJavaCompiler.java Wed Jun 14 03:40:27 2006
@@ -28,7 +28,7 @@
 			{
 				urls = (URL[]) ArrayUtils.add(
 						((URLClassLoader) baseClassLoader).getURLs(), toolsJar
-								.toURL());
+								.toURI().toURL());
 			}
 			else
 			{

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml Wed Jun 14 03:40:27 2006
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+	<packaging>maven-plugin</packaging>
+
+	<parent>
+		<groupId>org.apache.commons</groupId>
+		<artifactId>commons-jci</artifactId>
+		<version>1.0-SNAPSHOT</version>
+	</parent>
+
+	<groupId>org.apache.commons</groupId>
+	<artifactId>maven-jci-plugin</artifactId>
+	<version>1.0-SNAPSHOT</version>
+
+	<name>Maven JCI Plugin</name>
+
+	<build>
+		<sourceDirectory>src/main/java</sourceDirectory>
+		<testSourceDirectory>src/test/java</testSourceDirectory>
+	</build>
+
+	<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-artifact</artifactId>
+			<version>2.0</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.maven.shared</groupId>
+			<artifactId>maven-plugin-testing-harness</artifactId>
+			<version>1.0-beta-1</version>
+			<scope>test</scope>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>commons-jci-core</artifactId>
+			<version>1.0-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.commons</groupId>
+			<artifactId>commons-jci-eclipse</artifactId>
+			<version>3.2.0.658</version>
+		</dependency>
+	</dependencies>
+</project>

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/pom.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,75 @@
+package org.apache.maven.plugin;
+
+import java.io.File;
+import java.util.List;
+import org.apache.commons.jci.compilers.JavaCompiler;
+import org.apache.commons.jci.compilers.JavaCompilerFactory;
+import org.apache.commons.jci.readers.FileResourceReader;
+import org.apache.commons.jci.stores.FileResourceStore;
+
+public abstract class AbstractJCIMojo extends AbstractMojo
+{
+	/**
+	 * Whether to include debugging information in the compiled class files. The
+	 * default value is true.
+	 * 
+	 * @parameter expression="${maven.compiler.debug}" default-value="true"
+	 */
+	private boolean debug;
+
+	/**
+	 * The compiler id of the compiler to use.
+	 * 
+	 * @parameter expression="${maven.compiler.compilerId}"
+	 *            default-value="eclipse"
+	 */
+	private String compilerId;
+
+	/**
+	 * The directory to run the compiler from if fork is true.
+	 * 
+	 * @parameter expression="${basedir}"
+	 * @required
+	 * @readonly
+	 */
+	private File basedir;
+
+	/**
+	 * The target directory of the compiler if fork is true.
+	 * 
+	 * @parameter expression="${project.build.directory}"
+	 * @required
+	 * @readonly
+	 */
+	private File buildDirectory;
+
+	protected abstract List getClasspathElements();
+
+	protected abstract List getCompileSourceRoots();
+
+	protected abstract File getOutputDirectory();
+
+	public void execute() throws MojoExecutionException, MojoFailureException
+	{
+		JavaCompiler compiler = JavaCompilerFactory.getInstance()
+				.createCompiler(compilerId);
+		if (getLog().isDebugEnabled())
+		{
+			getLog().debug(
+					"Source directories: "
+							+ getCompileSourceRoots().toString().replace(',',
+									'\n'));
+			getLog().debug(
+					"Classpath: "
+							+ getClasspathElements().toString().replace(',',
+									'\n'));
+			getLog().debug("Output directory: " + getOutputDirectory());
+		}
+		FileResourceReader fileResourceReader = new FileResourceReader(
+				new File((String) getCompileSourceRoots().get(0)));
+		FileResourceStore fileResourceStore = new FileResourceStore(
+				getOutputDirectory());
+		compiler.compile(new String[] { "TestCompile0" },
+				fileResourceReader, fileResourceStore);
+	}
+}

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/AbstractJCIMojo.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,89 @@
+package org.apache.maven.plugin;
+
+import java.io.File;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+import org.apache.maven.artifact.Artifact;
+
+/**
+ * Compiles application sources
+ * 
+ * @goal compile
+ * @phase compile
+ * @requiresDependencyResolution compile
+ */
+public class JCIMojo extends AbstractJCIMojo
+{
+	/**
+	 * The source directories containing the sources to be compiled.
+	 * 
+	 * @parameter expression="${project.compileSourceRoots}"
+	 * @required
+	 * @readonly
+	 */
+	private List compileSourceRoots;
+
+	/**
+	 * Project classpath.
+	 * 
+	 * @parameter expression="${project.compileClasspathElements}"
+	 * @required
+	 * @readonly
+	 */
+	private List classpathElements;
+
+	/**
+	 * The directory for compiled classes.
+	 * 
+	 * @parameter expression="${project.build.outputDirectory}"
+	 * @required
+	 * @readonly
+	 */
+	private File outputDirectory;
+
+	/**
+	 * Project artifacts.
+	 * 
+	 * @parameter expression="${project.artifact}"
+	 * @required
+	 * @readonly
+	 * @todo this is an export variable, really
+	 */
+	private Artifact projectArtifact;
+
+	/**
+	 * A list of inclusion filters for the compiler.
+	 * 
+	 * @parameter
+	 */
+	private Set includes = new HashSet();
+
+	/**
+	 * A list of exclusion filters for the compiler.
+	 * 
+	 * @parameter
+	 */
+	private Set excludes = new HashSet();
+
+	protected List getCompileSourceRoots()
+	{
+		return compileSourceRoots;
+	}
+
+	protected List getClasspathElements()
+	{
+		return classpathElements;
+	}
+
+	protected File getOutputDirectory()
+	{
+		return outputDirectory;
+	}
+
+	public void execute() throws MojoExecutionException, MojoFailureException
+	{
+		super.execute();
+		projectArtifact.setFile(outputDirectory);
+	}
+}

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/main/java/org/apache/maven/plugin/JCIMojo.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,88 @@
+package org.apache.maven.plugin;
+
+import java.io.File;
+import java.util.Collections;
+import org.apache.maven.plugin.JCIMojo;
+import org.apache.maven.plugin.stubs.DebugEnabledLog;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+public class JCIMojoTestCase extends AbstractMojoTestCase
+{
+	protected void setUp() throws Exception
+	{
+		// required for mojo lookups to work
+		super.setUp();
+	}
+
+	/**
+	 * tests the ability of the plugin to compile a basic file
+	 * 
+	 * @throws Exception
+	 */
+	public void testCompilerBasic() throws Exception
+	{
+		JCIMojo jciMojo = getJCIMojo("target/test-classes/unit/compiler-basic-test/plugin-config.xml");
+		jciMojo.execute();
+		File testClass = new File(jciMojo.getOutputDirectory(),
+				"TestCompile0.class");
+		assertTrue(testClass.exists());
+	}
+
+	private JCIMojo getJCIMojo(String pomXml) throws Exception
+	{
+		File testPom = new File(getBasedir(), pomXml);
+		assertTrue(testPom.exists());
+		JCIMojo mojo = (JCIMojo) lookupMojo("compile", testPom);
+		setVariableValueToObject(mojo, "log", new DebugEnabledLog());
+		setVariableValueToObject(mojo, "projectArtifact", new ArtifactStub());
+		setVariableValueToObject(mojo, "classpathElements",
+				Collections.EMPTY_LIST);
+		assertNotNull(mojo);
+		return mojo;
+	}
+}
+package org.apache.maven.plugin;
+
+import java.io.File;
+import java.util.Collections;
+import org.apache.maven.plugin.JCIMojo;
+import org.apache.maven.plugin.stubs.DebugEnabledLog;
+import org.apache.maven.plugin.testing.AbstractMojoTestCase;
+import org.apache.maven.plugin.testing.stubs.ArtifactStub;
+
+public class JCIMojoTestCase extends AbstractMojoTestCase
+{
+	protected void setUp() throws Exception
+	{
+		// required for mojo lookups to work
+		super.setUp();
+	}
+
+	/**
+	 * tests the ability of the plugin to compile a basic file
+	 * 
+	 * @throws Exception
+	 */
+	public void testCompilerBasic() throws Exception
+	{
+		JCIMojo jciMojo = getJCIMojo("target/test-classes/unit/compiler-basic-test/plugin-config.xml");
+		jciMojo.execute();
+		File testClass = new File(jciMojo.getOutputDirectory(),
+				"TestCompile0.class");
+		assertTrue(testClass.exists());
+	}
+
+	private JCIMojo getJCIMojo(String pomXml) throws Exception
+	{
+		File testPom = new File(getBasedir(), pomXml);
+		assertTrue(testPom.exists());
+		JCIMojo mojo = (JCIMojo) lookupMojo("compile", testPom);
+		setVariableValueToObject(mojo, "log", new DebugEnabledLog());
+		setVariableValueToObject(mojo, "projectArtifact", new ArtifactStub());
+		setVariableValueToObject(mojo, "classpathElements",
+				Collections.EMPTY_LIST);
+		assertNotNull(mojo);
+		return mojo;
+	}
+}

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/JCIMojoTestCase.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,72 @@
+package org.apache.maven.plugin.stubs;
+
+/*
+ * Copyright 2001-2006 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.logging.SystemStreamLog;
+
+/**
+ * @author Edwin Punzalan
+ */
+public class DebugEnabledLog
+    extends SystemStreamLog
+{
+    public DebugEnabledLog()
+    {
+        super();
+    }
+
+    public boolean isDebugEnabled()
+    {
+        return true;
+    }
+}
+package org.apache.maven.plugin.stubs;
+
+/*
+ * Copyright 2001-2006 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.logging.SystemStreamLog;
+
+/**
+ * @author Edwin Punzalan
+ */
+public class DebugEnabledLog
+    extends SystemStreamLog
+{
+    public DebugEnabledLog()
+    {
+        super();
+    }
+
+    public boolean isDebugEnabled()
+    {
+        return true;
+    }
+}

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/java/org/apache/maven/plugin/stubs/DebugEnabledLog.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml Wed Jun 14 03:40:27 2006
@@ -0,0 +1,80 @@
+<!--
+	~ Copyright 2001-2006 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.
+-->
+
+<project>
+	<build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-jci-plugin</artifactId>
+				<configuration>
+					<compileSourceRoots>
+						<compileSourceRoot>
+							${basedir}/target/test-classes/unit/compiler-basic-test/src/main/java
+						</compileSourceRoot>
+					</compileSourceRoots>
+					<compilerId>eclipse</compilerId>
+					<debug>true</debug>
+					<outputDirectory>
+						${basedir}/target/test/unit/compiler-basic-test/target/classes
+					</outputDirectory>
+					<buildDirectory>
+						${basedir}/target/test/unit/compiler-basic-test/target
+					</buildDirectory>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>
+<!--
+	~ Copyright 2001-2006 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.
+-->
+
+<project>
+	<build>
+		<plugins>
+			<plugin>
+				<artifactId>maven-jci-plugin</artifactId>
+				<configuration>
+					<compileSourceRoots>
+						<compileSourceRoot>
+							${basedir}/target/test-classes/unit/compiler-basic-test/src/main/java
+						</compileSourceRoot>
+					</compileSourceRoots>
+					<compilerId>eclipse</compilerId>
+					<debug>true</debug>
+					<outputDirectory>
+						${basedir}/target/test/unit/compiler-basic-test/target/classes
+					</outputDirectory>
+					<buildDirectory>
+						${basedir}/target/test/unit/compiler-basic-test/target
+					</buildDirectory>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+</project>

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/plugin-config.xml
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,78 @@
+/*
+ * Copyright 2001-2006 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.
+ */
+
+public class TestCompile0
+{
+
+    public TestCompile0()
+    {
+
+        System.out.println("Woo Hoo!");
+    }
+
+}
+/*
+ * Copyright 2001-2006 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.
+ */
+
+public class TestCompile0
+{
+
+    public TestCompile0()
+    {
+
+        System.out.println("Woo Hoo!");
+    }
+
+}
+/*
+ * Copyright 2001-2006 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.
+ */
+
+public class TestCompile0
+{
+
+    public TestCompile0()
+    {
+
+        System.out.println("Woo Hoo!");
+    }
+
+}

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/main/java/TestCompile0.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Added: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java?rev=414185&view=auto
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java (added)
+++ jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java Wed Jun 14 03:40:27 2006
@@ -0,0 +1,104 @@
+/*
+ * Copyright 2001-2006 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 junit.framework.TestCase;
+
+public class TestCompile0Test
+    extends TestCase
+{
+    public void testCompile0Test()
+    {
+        TestCompile0 test = new TestCompile0();
+    }
+}
+/*
+ * Copyright 2001-2006 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 junit.framework.TestCase;
+
+public class TestCompile0Test
+    extends TestCase
+{
+    public void testCompile0Test()
+    {
+        TestCompile0 test = new TestCompile0();
+    }
+}
+/*
+ * Copyright 2001-2006 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 junit.framework.TestCase;
+
+public class TestCompile0Test
+    extends TestCase
+{
+    public void testCompile0Test()
+    {
+        TestCompile0 test = new TestCompile0();
+    }
+}
+/*
+ * Copyright 2001-2006 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 junit.framework.TestCase;
+
+public class TestCompile0Test
+    extends TestCase
+{
+    public void testCompile0Test()
+    {
+        TestCompile0 test = new TestCompile0();
+    }
+}
\ No newline at end of file

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/commons/sandbox/jci/trunk/maven-jci-plugin/src/test/resources/unit/compiler-basic-test/src/test/java/TestCompile0Test.java
------------------------------------------------------------------------------
    svn:keywords = "Author Date Id Revision"

Modified: jakarta/commons/sandbox/jci/trunk/pom.xml
URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/jci/trunk/pom.xml?rev=414185&r1=414184&r2=414185&view=diff
==============================================================================
--- jakarta/commons/sandbox/jci/trunk/pom.xml (original)
+++ jakarta/commons/sandbox/jci/trunk/pom.xml Wed Jun 14 03:40:27 2006
@@ -33,6 +33,7 @@
     <module>compilers/javac</module>
     <module>tests</module>
     <module>examples</module>
+    <module>maven-jci-plugin</module>
   </modules>
 
   <repositories>



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org