You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by mp...@apache.org on 2001/07/15 15:24:53 UTC
cvs commit: jakarta-turbine/src/java/org/apache/turbine/torque TorqueObjectModelTask.java
mpoeschl 01/07/15 06:24:53
Modified: src/java/org/apache/turbine/torque
TorqueObjectModelTask.java
Log:
put targetPackage to the context.
now it's possible to define the package within the build.xml file
Revision Changes Path
1.7 +16 -11 jakarta-turbine/src/java/org/apache/turbine/torque/TorqueObjectModelTask.java
Index: TorqueObjectModelTask.java
===================================================================
RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/torque/TorqueObjectModelTask.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- TorqueObjectModelTask.java 2001/07/13 18:33:03 1.6
+++ TorqueObjectModelTask.java 2001/07/15 13:24:53 1.7
@@ -25,13 +25,13 @@
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
- * 4. The names "Apache" and "Apache Software Foundation" and
- * "Apache Turbine" must not be used to endorse or promote products
- * derived from this software without prior written permission. For
+ * 4. The names "Apache" and "Apache Software Foundation" and
+ * "Apache Turbine" must not be used to endorse or promote products
+ * derived from this software without prior written permission. For
* written permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache",
- * "Apache Turbine", nor may "Apache" appear in their name, without
+ * "Apache Turbine", nor may "Apache" appear in their name, without
* prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
@@ -68,7 +68,7 @@
*
* @author <a href="mailto:jvanzyl@periapt.com">Jason van Zyl</a>
* @author <a href="mailto:jmcnally@collab.net>John McNally</a>
- * @version $Id: TorqueObjectModelTask.java,v 1.6 2001/07/13 18:33:03 jmcnally Exp $
+ * @version $Id: TorqueObjectModelTask.java,v 1.7 2001/07/15 13:24:53 mpoeschl Exp $
*/
public class TorqueObjectModelTask extends TexenTask
@@ -82,7 +82,7 @@
* XML schema file.
*/
private String xmlFile;
-
+
/**
* Target Java package to place the generated
* files in.
@@ -96,7 +96,7 @@
* soon.
*/
private String targetDatabase;
-
+
/**
* Get the current xml file.
*
@@ -164,17 +164,17 @@
* Create velocity context.
*/
Context context = new VelocityContext();
-
+
/*
* Build our application model from the
* XML schema. Can someone document the
* double pass here?
*/
XmlToAppData xmlParser = new XmlToAppData();
-
+
app = xmlParser.parseFile(xmlFile);
xmlParser.parseFile(xmlFile);
-
+
/*
* Place some initial values in the context.
* most of these could be automatically fed
@@ -187,7 +187,12 @@
* Place the target database in the context.
*/
context.put("targetDatabase", targetDatabase);
-
+
+ /*
+ * Place the target package in the context.
+ */
+ context.put("targetPackage", targetPackage);
+
return context;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-dev-help@jakarta.apache.org