pkg = null;
}
}
final String ctn = el.getText(true);
final JavaScript js;
if (pkg != null && pkg.length() > 0) {
if (ondemand) {
langdef.removeJavaScript("~." + device.packageToPath(pkg));
langdef.removeMergeJavaScriptPackage(pkg);
} else {
langdef.addMergeJavaScriptPackage(pkg);
}
continue; //TODO
} else if (src != null && src.length() > 0) {
if (ctn != null && ctn.length() > 0)
throw new UiException("You cannot specify the content if the src attribute is specified, "+el.getLocator());
final String charset = el.getAttributeValue("charset");
js = new JavaScript(src, charset);
} else if (ctn != null && ctn.length() > 0) {
js = new JavaScript(ctn);
} else {
log.warning("Ignored: none of the src or package attribute, or the content specified, "+el.getLocator());
continue;
}
langdef.addJavaScript(js);