db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r933883 - /db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java
Date Wed, 14 Apr 2010 08:50:32 GMT
Author: tfischer
Date: Wed Apr 14 08:50:32 2010
New Revision: 933883

URL: http://svn.apache.org/viewvc?rev=933883&view=rev
Log:
Add setters for all mojo parameters

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

Modified: db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java
URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java?rev=933883&r1=933882&r2=933883&view=diff
==============================================================================
--- db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java
(original)
+++ db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java
Wed Apr 14 08:50:32 2010
@@ -299,7 +299,7 @@ public class TorqueGfMojo extends Abstra
 
     /**
      * Additional options which can be added to the generation process.
-     * This overrides any existing options.
+     * This overrides existing options.
      *
      * @parameter
      */
@@ -642,4 +642,73 @@ public class TorqueGfMojo extends Abstra
         }
         this.modifiedFileTargetDirUsage = modifiedFileTargetDirUsage;
     }
+
+    /**
+     * 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)
+    {
+        this.sourceDir = sourceDir;
+    }
+
+    /**
+     * Sets the pattern which files are included in the generation process.
+     *
+     * @param sourceIncludes a list containing the include patterns, or null
+     *        if no include pattern should be used.
+     */
+    public void setSourceIncludes(Set<String> sourceIncludes)
+    {
+        this.sourceIncludes = sourceIncludes;
+    }
+
+    /**
+     * Sets the pattern which files are excluded in the generation process.
+     *
+     * @param sourceExcludes a list containing the exclude patterns, or null
+     *        if no exclude pattern should be used.
+     */
+    public void setSourceExcludes(Set<String> sourceExcludes)
+    {
+        this.sourceExcludes = sourceExcludes;
+    }
+
+    /**
+     * Sets the config directory overriding the template settings.
+     * If set, the settings of this directory are used as "child"
+     * and the "normal" settings are used as "parent".
+     *
+     * @parameter the config directory overriding the template settings,
+     *            or null if the template settings will not be overridden.
+     */
+    public void setOverrideConfigDir(File overrideConfigDir)
+    {
+        this.overrideConfigDir = overrideConfigDir;
+    }
+
+    /**
+     * 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.
+     */
+    public void setLoglevel(String loglevel)
+    {
+        this.loglevel = loglevel;
+    }
+
+    /**
+     * 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.
+     */
+    public void setOptions(Map<String, String> options)
+    {
+        this.options = options;
+    }
 }



---------------------------------------------------------------------
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