Fixes in the Eclipse project files
authorAdrián Romero <adrian.romero@openbravo.com>
Thu, 24 Jan 2008 17:08:46 +0000
changeset 4 6a0b115e730f
parent 3 b1c27a3ba110
child 5 576c0526f466
Fixes in the Eclipse project files
Cleaning in the source code
.classpath
src/org/apache/ddlutils/translation/CombinedTranslation.java
src/org/apache/ddlutils/translation/ReplaceStrTranslation.java
src/org/openbravo/ddlutils/task/CreateDatabase.java
src/org/openbravo/ddlutils/task/DatabaseUtils.java
--- a/.classpath	Thu Jan 24 10:03:38 2008 +0000
+++ b/.classpath	Thu Jan 24 17:08:46 2008 +0000
@@ -1,7 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" path="src"/>
-	<classpathentry kind="lib" path="build/lib/dbsourcesmanager.jar"/>
 	<classpathentry kind="lib" path="lib/build-only/ant-1.6.5.jar"/>
 	<classpathentry kind="lib" path="lib/build-only/junit-3.8.2.jar"/>
 	<classpathentry kind="lib" path="lib/commons-beanutils-1.7.0.jar"/>
@@ -18,7 +17,6 @@
 	<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
 	<classpathentry kind="lib" path="lib/stax-api-1.0.1.jar"/>
 	<classpathentry kind="lib" path="lib/wstx-asl-3.0.2.jar"/>
-	<classpathentry kind="lib" path="nbproject/dist/dbsourcemanager.jar"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="output" path="nbproject/build/classes"/>
 </classpath>
--- a/src/org/apache/ddlutils/translation/CombinedTranslation.java	Thu Jan 24 10:03:38 2008 +0000
+++ b/src/org/apache/ddlutils/translation/CombinedTranslation.java	Thu Jan 24 17:08:46 2008 +0000
@@ -34,7 +34,6 @@
     
     public final String exec(String s) {
         
-        String result = s;
         for (Translation t : _translations) {
             s = t.exec(s);            
         }
--- a/src/org/apache/ddlutils/translation/ReplaceStrTranslation.java	Thu Jan 24 10:03:38 2008 +0000
+++ b/src/org/apache/ddlutils/translation/ReplaceStrTranslation.java	Thu Jan 24 17:08:46 2008 +0000
@@ -12,7 +12,6 @@
 
 package org.apache.ddlutils.translation;
 
-import java.util.regex.Pattern;
 
 /**
  *
--- a/src/org/openbravo/ddlutils/task/CreateDatabase.java	Thu Jan 24 10:03:38 2008 +0000
+++ b/src/org/openbravo/ddlutils/task/CreateDatabase.java	Thu Jan 24 17:08:46 2008 +0000
@@ -13,7 +13,6 @@
 package org.openbravo.ddlutils.task;
 
 import java.io.File;
-import java.sql.SQLException;
 import java.util.Properties;
 
 import org.apache.commons.dbcp.BasicDataSource;
--- a/src/org/openbravo/ddlutils/task/DatabaseUtils.java	Thu Jan 24 10:03:38 2008 +0000
+++ b/src/org/openbravo/ddlutils/task/DatabaseUtils.java	Thu Jan 24 17:08:46 2008 +0000
@@ -13,12 +13,10 @@
 package org.openbravo.ddlutils.task;
 
 import java.io.*;
-import java.sql.*;
 import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.Comparator;
 import java.util.StringTokenizer;
-import javax.sql.DataSource;
 import org.apache.ddlutils.io.DatabaseFilter;
 import org.apache.ddlutils.io.DatabaseIO;
 import org.apache.ddlutils.io.DynamicDatabaseFilter;
@@ -135,17 +133,6 @@
         cropdb.addTrigger(targetdb.findTrigger(sobject));
     }
     
-    private static void executeUpdate(DataSource ds, String query) throws SQLException {
-        
-        Connection c = ds.getConnection();
-        
-        Statement s = c.createStatement();
-        s.execute(query);
-        s.close();
-        
-        c.close();
-    }    
-    
     public static String readFile(File f) throws IOException {
 
         StringBuffer s = new StringBuffer();