Author: tfischer
Date: Tue Sep 21 19:41:50 2010
New Revision: 999572
URL: http://svn.apache.org/viewvc?rev=999572&view=rev
Log:
- added javadoc
- added package.html
- removed trailing spaces
Added:
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/package.html
Modified:
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/Option.java
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/TorqueGeneratorTask.java
Modified:
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/Option.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/Option.java?rev=999572&r1=999571&r2=999572&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/Option.java
(original)
+++
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/Option.java
Tue Sep 21 19:41:50 2010
@@ -22,28 +22,26 @@ package org.apache.torque.ant.task;
public class Option
{
private String key;
-
+
private String value;
public String getKey()
{
return key;
}
-
+
public void setKey(String key)
{
this.key = key;
}
-
+
public String getValue()
{
return value;
}
-
+
public void setValue(String value)
{
this.value = value;
}
-
-
}
Modified:
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/TorqueGeneratorTask.java
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/TorqueGeneratorTask.java?rev=999572&r1=999571&r2=999572&view=diff
==============================================================================
---
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/TorqueGeneratorTask.java
(original)
+++
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/TorqueGeneratorTask.java
Tue Sep 21 19:41:50 2010
@@ -82,7 +82,7 @@ public class TorqueGeneratorTask extends
* The directory where the source files reside.
*/
private File sourceDir;
-
+
/**
* Include patterns for the source files.
* If set, the include and exclude patterns from the templates
@@ -129,12 +129,18 @@ public class TorqueGeneratorTask extends
/**
* The Loglevel to use in the generation process. Must be one of
* trace, debug, info, warn or error.
- * If not set, the log level defined in the generation unit is used.
+ * If not set, the log level defined in the generation unit is used.
*/
private String loglevel;
+ /** The list of options for the generation task. */
private List<Option> options = new ArrayList<Option>();
-
+
+ /**
+ * Creates a new option and adds it to the list of options.
+ *
+ * @return the newly created option.
+ */
public Option createOption()
{
Option option = new Option();
@@ -142,6 +148,9 @@ public class TorqueGeneratorTask extends
return option;
}
+ /**
+ * Runs the generation.
+ */
public void execute() throws BuildException
{
Controller controller = new Controller();
@@ -222,7 +231,7 @@ public class TorqueGeneratorTask extends
FileSourceProvider fileSourceProvider = null;
if (sourceIncludes != null || sourceExcludes != null)
{
- Fileset sourceFileset
+ Fileset sourceFileset
= new Fileset(
projectPaths.getDefaultSourcePath(),
sourceIncludes,
@@ -233,9 +242,9 @@ public class TorqueGeneratorTask extends
Project.MSG_DEBUG);
try
{
- fileSourceProvider
+ fileSourceProvider
= new FileSourceProvider(null, sourceFileset);
- }
+ }
catch (ConfigurationException e)
{
throw new BuildException(
@@ -287,7 +296,7 @@ public class TorqueGeneratorTask extends
CustomProjectPaths childProjectPaths
= new CustomProjectPaths(projectPaths);
childProjectPaths.setConfigurationDir(overrideConfigDir);
-
+
unitDescriptor = new UnitDescriptor(
Packaging.DIRECTORY,
childProjectPaths,
@@ -375,7 +384,7 @@ public class TorqueGeneratorTask 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)
@@ -419,8 +428,8 @@ public class TorqueGeneratorTask 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.
Added:
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/package.html
URL:
http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/package.html?rev=999572&view=auto
==============================================================================
---
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/package.html
(added)
+++
db/torque/torque4/trunk/torque-ant-tasks/src/main/java/org/apache/torque/ant/task/package.html
Tue Sep 21 19:41:50 2010
@@ -0,0 +1,25 @@
+<!--
+ Copyright 2001-2006 The Apache Software Foundation.
+
+ Licensed under the Apache License, Version 2.0 (the "License")
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<html>
+ <head>
+ <title>Torque ant tasks main package</title>
+ </head>
+ <body>
+ <p>
+ This package contains the ant task classes.
+ </p>
+ </body>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]