You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/12/20 09:28:57 UTC

[maven-ant-plugin] 16/18: o Polished code & site

This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-ant-plugin-2.2
in repository https://gitbox.apache.org/repos/asf/maven-ant-plugin.git

commit c806fb0bb6c05dc36a7391d55fa8f8e8e7b3fa93
Author: Benjamin Bentmann <be...@apache.org>
AuthorDate: Wed Jul 15 10:34:34 2009 +0000

    o Polished code & site
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@794220 13f79535-47bb-0310-9956-ffa450edef68
---
 .../java/org/apache/maven/plugin/ant/AntBuildWriter.java    | 13 +++++++------
 src/site/apt/usage.apt                                      |  2 +-
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
index 86c8b61..9bf35da 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntBuildWriter.java
@@ -554,11 +554,12 @@ public class AntBuildWriter
      * the path with the system property "user.home" in it. If not then just
      * return the absolute path to the local repository.
      */
-    private String getLocalRepositoryPath() {
+    private String getLocalRepositoryPath()
+    {
         String userHome = System.getProperty( "user.home" );
         String defaultPath = ( userHome + "/.m2/repository" ).replace( '\\', '/' );
         String actualPath = localRepository.getAbsolutePath().replace( '\\', '/' );
-        if( actualPath.equals( defaultPath ) )
+        if ( actualPath.equals( defaultPath ) )
         {
             return "${user.home}/.m2/repository";
         }
@@ -703,8 +704,8 @@ public class AntBuildWriter
             writer.addAttribute( "depends", "get-deps" );
             writer.addAttribute( "description", "Compile the code" );
 
-            writeCompileTasks( writer, project.getBasedir(), "${maven.build.outputDir}", compileSourceRoots, project
-                .getBuild().getResources(), null, false );
+            writeCompileTasks( writer, "${maven.build.outputDir}", compileSourceRoots,
+                               project.getBuild().getResources(), null, false );
 
             writer.endElement(); // target
         }
@@ -747,7 +748,7 @@ public class AntBuildWriter
             AntBuildWriterUtil.addWrapAttribute( writer, "target", "description", "Compile the test code", 2 );
             AntBuildWriterUtil.addWrapAttribute( writer, "target", "unless", "maven.test.skip", 2 );
 
-            writeCompileTasks( writer, project.getBasedir(), "${maven.build.testOutputDir}", testCompileSourceRoots,
+            writeCompileTasks( writer, "${maven.build.testOutputDir}", testCompileSourceRoots,
                                project.getBuild().getTestResources(), "${maven.build.outputDir}", true );
 
             writer.endElement(); // target
@@ -1084,7 +1085,7 @@ public class AntBuildWriter
         }
     }
 
-    private void writeCompileTasks( XMLWriter writer, File basedir, String outputDirectory, List compileSourceRoots,
+    private void writeCompileTasks( XMLWriter writer, String outputDirectory, List compileSourceRoots,
                                    List resources, String additionalClassesDirectory, boolean isTest )
         throws IOException
     {
diff --git a/src/site/apt/usage.apt b/src/site/apt/usage.apt
index 294411c..d81a8ac 100644
--- a/src/site/apt/usage.apt
+++ b/src/site/apt/usage.apt
@@ -29,7 +29,7 @@
 Usage
 
  The Ant Plugin generates Ant build files from POMs. The following example describe the basic
- usage of the Plugin.
+ usage of the plugin.
 
 * Generate Ant build files
 

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <co...@maven.apache.org>.