in maven-jdev-plugin/src/main/java/org/apache/myfaces/trinidadbuild/plugin/jdeveloper/JDeveloperMojo.java [1273:1398]
private void replaceDefaultTagLibraries(Xpp3Dom projectDOM,
Xpp3Dom targetLibsDOM)
throws XmlPullParserException
{
// Begin JSF HTML Tag lib
Xpp3Dom hashDOM = new Xpp3Dom("hash");
Xpp3Dom hashBaseDOM = new Xpp3Dom("hash");
Xpp3Dom valueDOM = null;
hashBaseDOM.setAttribute("n", "baseLibrary");
// Add baseLibrary hash to parent hash
hashDOM.addChild(hashBaseDOM);
// Create parent hash for each taglib
// hashDOM = new Xpp3Dom("hash");
// baseLibrary "hash" for each taglib
// Xpp3Dom hashBaseDOM = new Xpp3Dom("hash");
// hashBaseDOM.setAttribute("n", "baseLibrary");
// n="name, v=<name of taglib> in baseLibrary
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "name");
valueDOM.setAttribute("v", "JSF HTML");
hashBaseDOM.addChild(valueDOM);
// Duplicate the "name" <value...
// outside of the baseLibrary
// n="name, v=<name of taglib> in parent hash
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "name");
valueDOM.setAttribute("v", "JSF HTML");
hashDOM.addChild(valueDOM);
// n="version" v=<taglib version> in baseLibrary
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "version");
valueDOM.setAttribute("v", "1.2");
hashBaseDOM.addChild(valueDOM);
// Duplicate the "version" <value...
// outside of the baseLibrary
// n="name, v=<name of taglib> in parent hash
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "version");
valueDOM.setAttribute("v", "1.2");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "jspVersion");
valueDOM.setAttribute("v", "2.1");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "tldURL");
valueDOM.setAttribute("v", tagLibDirectory + "/html_basic.tld");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "URI");
valueDOM.setAttribute("v", "http://java.sun.com/jsf/html");
hashDOM.addChild(valueDOM);
// We are done with this disTagLib
// Add it to the targetLibsDOM
if (hashDOM != null)
targetLibsDOM.addChild(hashDOM);
// Begin JSF Core Taglib
hashDOM = new Xpp3Dom("hash");
hashBaseDOM = new Xpp3Dom("hash");
hashBaseDOM.setAttribute("n", "baseLibrary");
// Add baseLibrary hash to parent hash
hashDOM.addChild(hashBaseDOM);
// n="name, v=<name of taglib> in baseLibrary
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "name");
valueDOM.setAttribute("v", "JSF Core");
hashBaseDOM.addChild(valueDOM);
// Duplicate the "name" <value...
// outside of the baseLibrary
// n="name, v=<name of taglib> in parent hash
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "name");
valueDOM.setAttribute("v", "JSF Core");
hashDOM.addChild(valueDOM);
// n="version" v=<taglib version> in baseLibrary
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "version");
valueDOM.setAttribute("v", "1.2");
hashBaseDOM.addChild(valueDOM);
// Duplicate the "version" <value...
// outside of the baseLibrary
// n="name, v=<name of taglib> in parent hash
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "version");
valueDOM.setAttribute("v", "1.2");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "jspVersion");
valueDOM.setAttribute("v", "2.1");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "tldURL");
valueDOM.setAttribute("v", tagLibDirectory + "/jsf_core.tld");
hashDOM.addChild(valueDOM);
valueDOM = new Xpp3Dom("value");
valueDOM.setAttribute("n", "URI");
valueDOM.setAttribute("v", "http://java.sun.com/jsf/core");
hashDOM.addChild(valueDOM);
// We are done with this disTagLib
// Add it to the targetLibsDOM
if (hashDOM != null)
targetLibsDOM.addChild(hashDOM);
}