[Schmitzm-commits] r1284 - in trunk: src/schmitzm/lang src_junit/schmitzm/lang
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 17 12:23:45 CET 2010
Author: mojays
Date: 2010-11-17 12:23:45 +0100 (Wed, 17 Nov 2010)
New Revision: 1284
Modified:
trunk/src/schmitzm/lang/ResourceProviderOperator.java
trunk/src_junit/schmitzm/lang/ResourceProviderTest.java
Log:
ResourceProviderOperator (BugFix): now "-b" is interpreted correctly as semicolon-separated list
Modified: trunk/src/schmitzm/lang/ResourceProviderOperator.java
===================================================================
--- trunk/src/schmitzm/lang/ResourceProviderOperator.java 2010-11-17 11:23:44 UTC (rev 1283)
+++ trunk/src/schmitzm/lang/ResourceProviderOperator.java 2010-11-17 11:23:45 UTC (rev 1284)
@@ -591,7 +591,9 @@
));
if ( initCompletely || cli.hasOption( CLI_KEY_RESOURCE_BUNDLES ) ) {
- rpo.setResourceBundles( cli.getOptionValues(CLI_KEY_RESOURCE_BUNDLES) );
+ String resourceBundlesList = cli.getOptionValue(CLI_KEY_RESOURCE_BUNDLES);
+ String[] resourceBundles = resourceBundlesList.split(""+RESOURCE_BUNDLES_SEP);
+ rpo.setResourceBundles( resourceBundles );
}
return rpo;
Modified: trunk/src_junit/schmitzm/lang/ResourceProviderTest.java
===================================================================
--- trunk/src_junit/schmitzm/lang/ResourceProviderTest.java 2010-11-17 11:23:44 UTC (rev 1283)
+++ trunk/src_junit/schmitzm/lang/ResourceProviderTest.java 2010-11-17 11:23:45 UTC (rev 1284)
@@ -19,11 +19,13 @@
public class ResourceProviderTest {
@Test
- @Ignore
+// @Ignore
public void testResourceProviderOperatorTest() throws Exception {
ResourceProviderOperator.main( new String[] {
- "-cff",
- "src_junit/schmitzm/lang/ResourceProviderOperator.cfg"
+ "-s",
+ "src_junit",
+ "-b",
+ "schmitzm.lang.resource.locales.TestLangResourceBundle;schmitzm.lang.resource.locales.TestLangResourceBundle2",
});
}
More information about the Schmitzm-commits
mailing list