You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2006/11/10 09:36:06 UTC

svn commit: r473256 - in /maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin: pom.xml src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java

Author: brett
Date: Fri Nov 10 00:36:05 2006
New Revision: 473256

URL: http://svn.apache.org/viewvc?view=rev&rev=473256
Log:
set native eol-style

Modified:
    maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/pom.xml   (props changed)
    maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java   (contents, props changed)

Propchange: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java?view=diff&rev=473256&r1=473255&r2=473256
==============================================================================
--- maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java (original)
+++ maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java Fri Nov 10 00:36:05 2006
@@ -1,86 +1,86 @@
-package org.apache.maven.plugin.csharp.source;
-
-import java.io.File;
-import java.util.List;
-
-import org.apache.maven.artifact.factory.ArtifactFactory;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.plugin.MojoFailureException;
-import org.apache.maven.plugin.csharp.helper.PackagingHelper;
-import org.apache.maven.project.MavenProject;
-
-/**
- * This Mojo adds the result of the compile to the classpath elements
- * This is required by the NUnitMojo.
- *
- * @goal  process-classes
- * @phase process-classes
- * 
- * @author <a href="mailto:chris.stevenson@gmail.com">Chris Stevenson</a>
- */
-public class ProcessClassesMojo extends AbstractMojo {
-
-    /**
-     * Name of the generated assembly
-     *
-     * @parameter alias="jarName" expression="${project.build.finalName}"
-     * @required
-     */
-    private String finalName;
-	
-    /**
-     * @parameter expression="${project}"
-     * @required
-     * @readonly
-     */
-    protected MavenProject project;
-   
-    /**
-	 * Directory containing the classes.
-	 *
-     * @parameter expression="${project.build.outputDirectory}"
-     * @required
-     * @readonly
-     */
-    private File outputDirectory;
-    
-    /**
-     * The classpath elements of the project being tested.
-     *
-     * @parameter expression="${project.testClasspathElements}"
-     * @required
-     * @readonly
-     */
-    private List classpathElements;
-    
-    /**
-     * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
-     * @required
-     * @readonly
-     */
-    private ArtifactFactory artifactFactory;
-    
-	public void execute() throws MojoExecutionException, MojoFailureException {
-		
-		File mainAssembly = getFile( outputDirectory, finalName, project.getPackaging() );
-		
-		project.getBuild().setOutputDirectory( mainAssembly.getAbsolutePath() );
-		
-		this.getLog().info("Setting [" + mainAssembly.getAbsolutePath() + "] to as output folder.");
-	}
-	
-	public File getFile(File directory, String fileName, String packaging) throws MojoExecutionException{
-		
-		String fileAbsolutePath = directory.getAbsolutePath() + File.separator + fileName + "." + PackagingHelper.getExtension( packaging );		
-		
-		this.getLog().debug("Looking for file[" + fileAbsolutePath + "]");
-		
-		File f = new File(fileAbsolutePath);
-		
-		if( ! f.exists() ) throw new MojoExecutionException("Cannot find file[" + fileAbsolutePath + "]");
-		
-		return f;
-	}
-	
-}
+package org.apache.maven.plugin.csharp.source;
+
+import java.io.File;
+import java.util.List;
+
+import org.apache.maven.artifact.factory.ArtifactFactory;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.plugin.MojoFailureException;
+import org.apache.maven.plugin.csharp.helper.PackagingHelper;
+import org.apache.maven.project.MavenProject;
+
+/**
+ * This Mojo adds the result of the compile to the classpath elements
+ * This is required by the NUnitMojo.
+ *
+ * @goal  process-classes
+ * @phase process-classes
+ * 
+ * @author <a href="mailto:chris.stevenson@gmail.com">Chris Stevenson</a>
+ */
+public class ProcessClassesMojo extends AbstractMojo {
+
+    /**
+     * Name of the generated assembly
+     *
+     * @parameter alias="jarName" expression="${project.build.finalName}"
+     * @required
+     */
+    private String finalName;
+	
+    /**
+     * @parameter expression="${project}"
+     * @required
+     * @readonly
+     */
+    protected MavenProject project;
+   
+    /**
+	 * Directory containing the classes.
+	 *
+     * @parameter expression="${project.build.outputDirectory}"
+     * @required
+     * @readonly
+     */
+    private File outputDirectory;
+    
+    /**
+     * The classpath elements of the project being tested.
+     *
+     * @parameter expression="${project.testClasspathElements}"
+     * @required
+     * @readonly
+     */
+    private List classpathElements;
+    
+    /**
+     * @parameter expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
+     * @required
+     * @readonly
+     */
+    private ArtifactFactory artifactFactory;
+    
+	public void execute() throws MojoExecutionException, MojoFailureException {
+		
+		File mainAssembly = getFile( outputDirectory, finalName, project.getPackaging() );
+		
+		project.getBuild().setOutputDirectory( mainAssembly.getAbsolutePath() );
+		
+		this.getLog().info("Setting [" + mainAssembly.getAbsolutePath() + "] to as output folder.");
+	}
+	
+	public File getFile(File directory, String fileName, String packaging) throws MojoExecutionException{
+		
+		String fileAbsolutePath = directory.getAbsolutePath() + File.separator + fileName + "." + PackagingHelper.getExtension( packaging );		
+		
+		this.getLog().debug("Looking for file[" + fileAbsolutePath + "]");
+		
+		File f = new File(fileAbsolutePath);
+		
+		if( ! f.exists() ) throw new MojoExecutionException("Cannot find file[" + fileAbsolutePath + "]");
+		
+		return f;
+	}
+	
+}

Propchange: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-source-plugin/src/main/java/org/apache/maven/plugin/csharp/source/ProcessClassesMojo.java
------------------------------------------------------------------------------
    svn:eol-style = native