You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by tf...@apache.org on 2010/04/14 10:50:32 UTC
svn commit: r933883 -
/db/torque/torque4/trunk/maven-torque-generator-plugin/src/main/java/org/apache/torque/gf/maven/TorqueGfMojo.java
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