• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package org.unicode.cldr.util;
2 
3 /**
4  * Utilities for the TestShims
5  * should go away when we move to all junit tests.
6  * These are here so they can be shared between tools/java and tools/cldr-apps
7  */
8 public class TestShimUtils {
getArgs(Class<?> clazz, String defaultArgs)9     public static String[] getArgs(Class<?> clazz, String defaultArgs) {
10         final String packageName = clazz.getPackage().getName();
11         final String propKey = packageName+".testArgs";
12         final String toSplit = System.getProperty(propKey, defaultArgs);
13         System.err.println(propKey+"="+toSplit);
14         final String s[] = toSplit.split(" "); // TODO: quoted strings, etc.
15         return s;
16     }
17 }
18