You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/10/24 16:59:29 UTC

svn commit: r1188163 - in /db/derby/code/trunk/java: build/org/apache/derbyBuild/splitmessages.java engine/org/apache/derby/loc/build.xml

Author: kahatlen
Date: Mon Oct 24 14:59:29 2011
New Revision: 1188163

URL: http://svn.apache.org/viewvc?rev=1188163&view=rev
Log:
DERBY-5474: Speed up message splitting in build

Run splitmessages embedded in the Java process that runs Ant.

Modified:
    db/derby/code/trunk/java/build/org/apache/derbyBuild/splitmessages.java
    db/derby/code/trunk/java/engine/org/apache/derby/loc/build.xml

Modified: db/derby/code/trunk/java/build/org/apache/derbyBuild/splitmessages.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/build/org/apache/derbyBuild/splitmessages.java?rev=1188163&r1=1188162&r2=1188163&view=diff
==============================================================================
--- db/derby/code/trunk/java/build/org/apache/derbyBuild/splitmessages.java (original)
+++ db/derby/code/trunk/java/build/org/apache/derbyBuild/splitmessages.java Mon Oct 24 14:59:29 2011
@@ -51,7 +51,7 @@ public class splitmessages {
      * Note that all message ids that start with "XJ" are automatically added, 
      * these are just for message ids that have a different prefix.
      */
-    static void initClientMessageIds()
+    static
     {
         // Add message ids that don't start with XJ here
         clientMessageIds.add(SQLState.NO_CURRENT_CONNECTION);
@@ -121,12 +121,10 @@ public class splitmessages {
         clientMessageIds.add(SQLState.PROPERTY_INVALID_VALUE);
         clientMessageIds.add(SQLState.LANG_SUBSTR_START_ADDING_LEN_OUT_OF_RANGE);
         clientMessageIds.add(SQLState.LANG_CURSOR_NOT_FOUND);
-    }
+    };
 
 	public static void main(String[] args) throws Exception {
 
-        initClientMessageIds();
-
 		Properties p = new Properties();
 
 		File dir = new File(args[0]);

Modified: db/derby/code/trunk/java/engine/org/apache/derby/loc/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/loc/build.xml?rev=1188163&r1=1188162&r2=1188163&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/loc/build.xml (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/loc/build.xml Mon Oct 24 14:59:29 2011
@@ -134,8 +134,6 @@
     <mkdir dir="${loc.dir}"/>
     <java classname="org.apache.derbyBuild.splitmessages"
           classpath="${out.dir}"
-          dir="${derby.locales.dir}"
-          fork="yes"
           failonerror="true">
       <arg value="${loc.dir}"/> 
       <arg value="${split.properties}"/>