diff --git a/icu4j/build.xml b/icu4j/build.xml index 0d9003dbc3..a284893b6c 100644 --- a/icu4j/build.xml +++ b/icu4j/build.xml @@ -293,9 +293,11 @@ + todir="${build.dir}/com/ibm/icu/dev/data/rbbi"/> + todir="${build.dir}/com/ibm/icu/dev/test/rbbi"/> + + + + @@ -477,12 +483,14 @@ - + + + diff --git a/icu4j/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java b/icu4j/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java index 742d447f57..7c47bd59dc 100644 --- a/icu4j/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java +++ b/icu4j/src/com/ibm/icu/dev/test/util/ICUResourceBundleTest.java @@ -39,6 +39,10 @@ public final class ICUResourceBundleTest extends TestFmwk { //URL url = loader.getResource("LocaleElements_en.class"); //File file = new File(url.getPath()); URL url = (URL)en.nextElement(); + if (url == null) { + warnln("could not load resource data"); + return; + } File file = new File(url.getPath()); File[] files = file.listFiles(); if(files!=null){ @@ -48,9 +52,13 @@ public final class ICUResourceBundleTest extends TestFmwk { } } }catch(SecurityException ex) { - warnln("could not load resource data"); + warnln("could not load resource data: " + ex); + }catch(NullPointerException ex) { + // thrown by ibm 1.4.2 windows jvm security manager + warnln("could not load resource data: " + ex); }catch(Exception ex){ - errln("Unexpected exception: "+ ex.getMessage()); + ex.printStackTrace(); + errln("Unexpected exception: "+ ex); } } public void TestResourceBundleWrapper(){