db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r999558 - /db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java
Date Tue, 21 Sep 2010 19:25:57 GMT
Author: tfischer
Date: Tue Sep 21 19:25:56 2010
New Revision: 999558

URL: http://svn.apache.org/viewvc?rev=999558&view=rev
Log:
removed trailing spaces

Modified:
    db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java

Modified: db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java?rev=999558&r1=999557&r2=999558&view=diff
==============================================================================
--- db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java
(original)
+++ db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/generator/maven/TorqueGeneratorMojo.java
Tue Sep 21 19:25:56 2010
@@ -56,31 +56,31 @@ public class TorqueGeneratorMojo extends
 {
     private enum TargetDirUsage
     {
-        /** 
-         * The target dir will be added to the maven project's 
+        /**
+         * The target dir will be added to the maven project's
          * compileSourceRoot.
          */
         COMPILE("compile"),
-        /** 
-         * The target dir will be added to the maven project's 
+        /**
+         * The target dir will be added to the maven project's
          * testCompileSourceRoot.
          */
         TEST_COMPILE("test-compile"),
-        /** 
+        /**
          * The target dir will be added to the maven project's resources.
          */
         RESOURCE("resource"),
-        /** 
+        /**
          * The target dir will be added to the maven project's test resources.
          */
         TEST_RESOURCE("test-resource"),
-        /** 
+        /**
          * The target dir will not be used in the maven build.
          */
         NONE("none");
-        
+
         private String key;
-        
+
         /**
          * Constructor.
          *
@@ -90,24 +90,24 @@ public class TorqueGeneratorMojo extends
         {
             this.key = key;
         }
-        
+
         @Override
         public String toString()
         {
             return key;
         }
-        
+
         /**
          * Returns the key of the Usage.
-         * 
+         *
          * @return the key, not null.
          */
         public String getKey()
         {
             return key;
         }
-        
-        public static TargetDirUsage get(String key) 
+
+        public static TargetDirUsage get(String key)
             throws MojoExecutionException
         {
             for (TargetDirUsage candidate : values())
@@ -128,7 +128,7 @@ public class TorqueGeneratorMojo extends
             throw new MojoExecutionException(errorMessage.toString());
         }
     }
-    
+
     /**
      * The packaging type of the generation unit, either "directory" , "jar"
      * or "classpath".
@@ -169,14 +169,14 @@ public class TorqueGeneratorMojo extends
      * @parameter
      */
     private File sourceDir;
-    
+
     /**
      * Include patterns for the source files.
      * If set, the include and exclude patterns from the templates
      * are overridden.
      * If not set, then the include patterns from the templates are used.
      * The patterns are case sensitive, wildcards are * and ?.
-     * 
+     *
      * @parameter
      */
     private Set<String> sourceIncludes;
@@ -187,7 +187,7 @@ public class TorqueGeneratorMojo extends
      * are overridden.
      * If not set, then the include patterns from the templates are used.
      * The patterns are case sensitive, wildcards are * and ?.
-     * 
+     *
      * @parameter
      */
     private Set<String> sourceExcludes;
@@ -224,7 +224,7 @@ public class TorqueGeneratorMojo extends
      *     compileSourceRoot of the maven project.
      *   </li>
      *   <li>
-     *     test-compile: The generated files are treated as compileable 
+     *     test-compile: The generated files are treated as compileable
      *     test sources.
      *     In maven-speak, this means the newFileTargetDir will be added as
      *     testCompileSourceRoot of the maven project.
@@ -258,7 +258,7 @@ public class TorqueGeneratorMojo extends
      *     as compileSourceRoot of the maven project.
      *   </li>
      *   <li>
-     *     test-compile: The generated files are treated as compileable 
+     *     test-compile: The generated files are treated as compileable
      *     test sources.
      *     In maven-speak, this means the modifiedFileTargetDir will be added
      *     as testCompileSourceRoot of the maven project.
@@ -326,7 +326,7 @@ public class TorqueGeneratorMojo extends
                 = TargetDirUsage.get(newFileTargetDirUsage);
         TargetDirUsage modifiedFileTargetDirUsageConverted
                 = TargetDirUsage.get(modifiedFileTargetDirUsage);
-        
+
         UnitDescriptor.Packaging packaging;
         if ("jar".equals(this.packaging))
         {
@@ -400,20 +400,20 @@ public class TorqueGeneratorMojo extends
         FileSourceProvider fileSourceProvider = null;
         if (sourceIncludes != null || sourceExcludes != null)
         {
-            Fileset sourceFileset 
+            Fileset sourceFileset
                     = new Fileset(
                             projectPaths.getDefaultSourcePath(),
                             sourceIncludes,
                             sourceExcludes);
-            getLog().debug("Setting source includes to " 
+            getLog().debug("Setting source includes to "
                     + sourceIncludes);
-            getLog().debug("Setting source excludes to " 
+            getLog().debug("Setting source excludes to "
                     + sourceExcludes);
             try
             {
-                fileSourceProvider 
+                fileSourceProvider
                         = new FileSourceProvider(null, sourceFileset);
-            } 
+            }
             catch (ConfigurationException e)
             {
                 throw new MojoExecutionException(
@@ -459,7 +459,7 @@ public class TorqueGeneratorMojo extends
             CustomProjectPaths childProjectPaths
                 = new CustomProjectPaths(projectPaths);
             childProjectPaths.setConfigurationDir(overrideConfigDir);
-            
+
             unitDescriptor = new UnitDescriptor(
                     Packaging.DIRECTORY,
                     childProjectPaths,
@@ -486,17 +486,17 @@ public class TorqueGeneratorMojo extends
         File newFileTargetPath = projectPaths.getNewFileTargetPath();
         if (newFileTargetPath.exists())
         {
-            switch (newFileTargetDirUsageConverted) 
+            switch (newFileTargetDirUsageConverted)
             {
             case COMPILE:
                 project.addCompileSourceRoot(newFileTargetPath.toString());
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + newFileTargetPath.toString()
                         + " as compile source root");
                 break;
             case TEST_COMPILE:
                 project.addTestCompileSourceRoot(newFileTargetPath.toString());
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + newFileTargetPath.toString()
                         + " as test compile source root");
                 break;
@@ -504,7 +504,7 @@ public class TorqueGeneratorMojo extends
                 Resource resource = new Resource();
                 resource.setDirectory(newFileTargetPath.toString());
                 project.addResource(resource);
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + newFileTargetPath.toString()
                         + " to the project resources");
                 break;
@@ -512,7 +512,7 @@ public class TorqueGeneratorMojo extends
                 resource = new Resource();
                 resource.setDirectory(newFileTargetPath.toString());
                 project.addTestResource(resource);
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + newFileTargetPath.toString()
                         + " to the project test resources");
                 break;
@@ -523,18 +523,18 @@ public class TorqueGeneratorMojo extends
         File modifiedFileTargetPath = projectPaths.getModifiedFileTargetPath();
         if (modifiedFileTargetPath.exists())
         {
-            switch (modifiedFileTargetDirUsageConverted) 
+            switch (modifiedFileTargetDirUsageConverted)
             {
             case COMPILE:
                 project.addCompileSourceRoot(modifiedFileTargetPath.toString());
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + modifiedFileTargetPath.toString()
                         + " as compile source root");
                 break;
             case TEST_COMPILE:
                 project.addTestCompileSourceRoot(
                         modifiedFileTargetPath.toString());
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + modifiedFileTargetPath.toString()
                         + " as test compile source root");
                 break;
@@ -542,7 +542,7 @@ public class TorqueGeneratorMojo extends
                 Resource resource = new Resource();
                 resource.setDirectory(modifiedFileTargetPath.toString());
                 project.addResource(resource);
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + modifiedFileTargetPath.toString()
                         + " to the project resources");
                 break;
@@ -550,7 +550,7 @@ public class TorqueGeneratorMojo extends
                 resource = new Resource();
                 resource.setDirectory(modifiedFileTargetPath.toString());
                 project.addTestResource(resource);
-                getLog().debug("Added " 
+                getLog().debug("Added "
                         + modifiedFileTargetPath.toString()
                         + " to the project test resources");
                 break;
@@ -632,7 +632,7 @@ public class TorqueGeneratorMojo extends
 
     /**
      * Sets the usage for the newFileTargetDir.
-     * 
+     *
      * @param newFileTargetDirUsage the new usage, not null.
      */
     public void setNewFileTargetDirUsage(String newFileTargetDirUsage)
@@ -647,7 +647,7 @@ public class TorqueGeneratorMojo extends
 
     /**
      * Sets the usage for the modifiedFileTargetDir.
-     * 
+     *
      * @param modifiedFileTargetDirUsage the new usage, not null.
      */
     public void setModifiedFileTargetDirUsage(String modifiedFileTargetDirUsage)
@@ -662,7 +662,7 @@ public class TorqueGeneratorMojo extends
 
     /**
      * Sets the directory in which the source files are located.
-     * 
+     *
      * @param sourceDir the directory in which the source files are located.
      */
     public void setSourceDir(File sourceDir)
@@ -706,8 +706,8 @@ public class TorqueGeneratorMojo extends
     }
 
     /**
-     * Sets the Loglevel to use in the generation process. 
-     * 
+     * Sets the Loglevel to use in the generation process.
+     *
      * @param loglevel the loglevel, must be one of trace, debug, info, warn
      *        or error, or null if the loglevel defined in the templates
      *        should be used.
@@ -720,7 +720,7 @@ public class TorqueGeneratorMojo extends
     /**
      * Sets additional options which can be added to the generation process.
      * These options overrides existing options in the templates.
-     * 
+     *
      * @param options the overriding options, or null if no options
      *        should be overridden.
      */



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


Mime
View raw message