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:37:40 UTC
svn commit: r473257 - in
/maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin:
pom.xml src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java
Author: brett
Date: Fri Nov 10 00:37:39 2006
New Revision: 473257
URL: http://svn.apache.org/viewvc?view=rev&rev=473257
Log:
set eol-style
Modified:
maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/pom.xml (props changed)
maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java (contents, props changed)
Propchange: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java
URL: http://svn.apache.org/viewvc/maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java?view=diff&rev=473257&r1=473256&r2=473257
==============================================================================
--- maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java (original)
+++ maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java Fri Nov 10 00:37:39 2006
@@ -1,72 +1,72 @@
-package org.apache.maven.plugin.csharppackage;
-
-import java.io.File;
-import java.io.FileOutputStream;
-import java.io.IOException;
-
-import org.apache.commons.io.FileUtils;
-import org.apache.maven.plugin.AbstractMojo;
-import org.apache.maven.plugin.MojoExecutionException;
-import org.apache.maven.project.MavenProject;
-
-/**
- * This Mojo just sets the artifact to the result of the
- * compile step, which is the actual dll/exe
- * (doesn't need to jar up like the java compilers).
- *
- * @goal package
- * @phase package
- */
-public class PackageMojo extends AbstractMojo {
-
- /**
- * Name of the generated JAR.
- *
- * @parameter alias="jarName" expression="${project.build.finalName}"
- * @required
- */
- private String finalName;
-
- /**
- * The maven project.
- *
- * @parameter expression="${project}"
- * @required
- * @readonly
- */
- private MavenProject project;
-
- /**
- * Directory containing the classes.
- *
- * @parameter expression="${project.build.outputDirectory}"
- * @required
- * @readonly
- */
- private File outputDirectory;
-
- public void execute() throws MojoExecutionException {
-
- String builddirname = project.getBuild().getDirectory();
-
- File builddir = new File(builddirname);
-
- if( builddir.exists() ){
-
- this.getLog().info("Copying artifact to build directory [" + builddir.getAbsolutePath() + "]");
- this.getLog().debug("nb. this is to allow the create bundle functionality in csharp projects");
-
- try{
-
- FileUtils.copyFileToDirectory( outputDirectory, builddir );
- project.getArtifact().setFile( outputDirectory );
-
- }catch(IOException ioex){
- this.getLog().error("Exception occurred copying file [" + outputDirectory.getAbsolutePath() + "] to [" + builddir.getAbsoluteFile() + "]", ioex);
- throw new MojoExecutionException(ioex.getMessage(), ioex);
- }
- }else {
- this.getLog().warn("BuildDirectory [" + builddir.getAbsolutePath() + "] doesn't exist, something strange has happened");
- }
- }
-}
+package org.apache.maven.plugin.csharppackage;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+
+import org.apache.commons.io.FileUtils;
+import org.apache.maven.plugin.AbstractMojo;
+import org.apache.maven.plugin.MojoExecutionException;
+import org.apache.maven.project.MavenProject;
+
+/**
+ * This Mojo just sets the artifact to the result of the
+ * compile step, which is the actual dll/exe
+ * (doesn't need to jar up like the java compilers).
+ *
+ * @goal package
+ * @phase package
+ */
+public class PackageMojo extends AbstractMojo {
+
+ /**
+ * Name of the generated JAR.
+ *
+ * @parameter alias="jarName" expression="${project.build.finalName}"
+ * @required
+ */
+ private String finalName;
+
+ /**
+ * The maven project.
+ *
+ * @parameter expression="${project}"
+ * @required
+ * @readonly
+ */
+ private MavenProject project;
+
+ /**
+ * Directory containing the classes.
+ *
+ * @parameter expression="${project.build.outputDirectory}"
+ * @required
+ * @readonly
+ */
+ private File outputDirectory;
+
+ public void execute() throws MojoExecutionException {
+
+ String builddirname = project.getBuild().getDirectory();
+
+ File builddir = new File(builddirname);
+
+ if( builddir.exists() ){
+
+ this.getLog().info("Copying artifact to build directory [" + builddir.getAbsolutePath() + "]");
+ this.getLog().debug("nb. this is to allow the create bundle functionality in csharp projects");
+
+ try{
+
+ FileUtils.copyFileToDirectory( outputDirectory, builddir );
+ project.getArtifact().setFile( outputDirectory );
+
+ }catch(IOException ioex){
+ this.getLog().error("Exception occurred copying file [" + outputDirectory.getAbsolutePath() + "] to [" + builddir.getAbsoluteFile() + "]", ioex);
+ throw new MojoExecutionException(ioex.getMessage(), ioex);
+ }
+ }else {
+ this.getLog().warn("BuildDirectory [" + builddir.getAbsolutePath() + "] doesn't exist, something strange has happened");
+ }
+ }
+}
Propchange: maven/sandbox/csharp/maven-csharp/plugins/maven-csharp-package-plugin/src/main/java/org/apache/maven/plugin/csharppackage/PackageMojo.java
------------------------------------------------------------------------------
svn:eol-style = native