db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r430055 - in /db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward: ForwardRepositoryTask.java RepositoryXmlProcessor.java
Date Wed, 09 Aug 2006 13:50:54 GMT
Author: arminw
Date: Wed Aug  9 06:50:53 2006
New Revision: 430055

URL: http://svn.apache.org/viewvc?rev=430055&view=rev
Log:
fix property name

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/ForwardRepositoryTask.java
    db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/RepositoryXmlProcessor.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/ForwardRepositoryTask.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/ForwardRepositoryTask.java?rev=430055&r1=430054&r2=430055&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/ForwardRepositoryTask.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/ForwardRepositoryTask.java
Wed Aug  9 06:50:53 2006
@@ -44,7 +44,7 @@
 
         try
         {
-            RepositoryXmlProcessor processor = new RepositoryXmlProcessor(getInput(), getBeanOutput(),
getDbOutput());
+            RepositoryXmlProcessor processor = new RepositoryXmlProcessor(getInput(), getDbOutput(),
getBeanOutput());
             processor.generateSQL();
             processor.generateJavaCode();
         }

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/RepositoryXmlProcessor.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/RepositoryXmlProcessor.java?rev=430055&r1=430054&r2=430055&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/RepositoryXmlProcessor.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/tools/org/apache/ojb/tools/mapping/forward/RepositoryXmlProcessor.java
Wed Aug  9 06:50:53 2006
@@ -54,11 +54,11 @@
  */
 public class RepositoryXmlProcessor
 {
-    // the output Torque xml file name.
-    private String torqueXmlFile = "ojb-torque.xml";
+    // the output DB xml file name.
+    private String dbXmlFile = "ojb-db.xml";
 
-    // the output directory for generated torque xml.
-    private String torqueOutputDirectory;
+    // the output directory for generated DB xml.
+    private String dbOutputDirectory;
 
     // the output directory for generated java beans.
     private String beanOutputDirectory;
@@ -113,21 +113,21 @@
      * Creates a new instance of the repository xml processor.
      *
      * @param    repositoryXml the path of the repository.xml to be processed.
-     * @param    torqueOutputDirectory the output directory into which java beans and Torque
xml are
+     * @param    dbOutputDirectory the output directory into which java beans and Torque
xml are
      * generated, specify null for current directory.
      * @param    beanOutputDirectory the name of the Torque xml file, specify null for the
default
      * which is is 'ojb-torque.xml'.
      */
-    public RepositoryXmlProcessor(String repositoryXml, String torqueOutputDirectory, String
beanOutputDirectory) throws Exception
+    public RepositoryXmlProcessor(String repositoryXml, String dbOutputDirectory, String
beanOutputDirectory) throws Exception
     {
-        if(torqueOutputDirectory != null)
-            this.torqueOutputDirectory = torqueOutputDirectory;
+        if(dbOutputDirectory != null)
+            this.dbOutputDirectory = dbOutputDirectory;
         if(beanOutputDirectory != null)
             this.beanOutputDirectory = beanOutputDirectory;
 
         // create output directory if it does not exist.
-        if(!new File(torqueOutputDirectory).exists())
-            new File(torqueOutputDirectory).mkdir();
+        if(!new File(dbOutputDirectory).exists())
+            new File(dbOutputDirectory).mkdir();
 
         DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
         doc = builder.parse(new File(repositoryXml));
@@ -348,9 +348,9 @@
 
         NodeList clsDescList = doc.getElementsByTagName("class-descriptor");
 
-        File out = new File(torqueOutputDirectory);
+        File out = new File(dbOutputDirectory);
         out.mkdirs();
-        FileWriter fwr = new FileWriter(new File(torqueOutputDirectory, torqueXmlFile));
+        FileWriter fwr = new FileWriter(new File(dbOutputDirectory, dbXmlFile));
         fwr.write(TorqueSchemaGenerator.torquePrefix());
 
         for(int i = 0; i < clsDescList.getLength(); i++)



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


Mime
View raw message