/**
* @param cx
* @param scope
*/
private void putConf(final Context cx, final ScriptableObject scope) {
final Scriptable sctConf = cx.newObject(scope);
ScriptableObject.putProperty(scope, "FILE_SEPARATOR", File.separator);
ScriptableObject.putProperty(scope, "conf", sctConf);
final Set<String> keys = properties.keySet();
for (final String key : keys) {
if (key.equals(Constants.TARGETS) || key.equals(Constants.PROFILES)) {
final String value = getProperty(key);
final List<String> tokens = new ArrayList<String>();
if (value != null) {
final StringTokenizer st = new StringTokenizer(value, ",");
while (st.hasMoreTokens()) {
final String token = st.nextToken();
tokens.add(token.trim());
}
}
Common.trimList(tokens);
final Scriptable sctArray = cx.newArray(scope, tokens.toArray());
ScriptableObject.putProperty(sctConf, key, sctArray);
} else {
final String value = getProperty(key);
if (key.startsWith(Constants.OPTION_PREFIX)) {
final Boolean b = new Boolean(value);