This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
FileInputStream in = new FileInputStream (contextXml);
Context ctx = Context.createGraph (in);
String docBaseURI = dir.getAbsoluteFile().toURI().toASCIIString();
String docBase = dir.getAbsolutePath ();
//Must escape '$' since it is valid file specification character on
//Windows, VMS and etc.
String docBase = dir.getAbsolutePath ().replaceAll("\\$", "\\$\\$");
this.tmId = new TomcatModule (t, ctx.getAttributeValue ("path"), docBase); //NOI18N
if (!docBase.equals (ctx.getAttributeValue ("docBase"))) { //NOI18N
ctx.setAttributeValue ("docBase", docBase); //NOI18N