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.

View | Details | Raw Unified | Return to bug 49420
Collapse All | Expand All

(-)TomcatManagerImpl.java (-1 / +3 lines)
Lines 168-174 Link Here
168
            FileInputStream in = new FileInputStream (contextXml);
168
            FileInputStream in = new FileInputStream (contextXml);
169
            Context ctx = Context.createGraph (in);
169
            Context ctx = Context.createGraph (in);
170
            String docBaseURI = dir.getAbsoluteFile().toURI().toASCIIString();
170
            String docBaseURI = dir.getAbsoluteFile().toURI().toASCIIString();
171
            String docBase = dir.getAbsolutePath ();
171
            //Must escape '$' since it is valid file specification character on
172
            //Windows, VMS and etc.
173
            String docBase = dir.getAbsolutePath ().replaceAll("\\$", "\\$\\$");
172
            this.tmId = new TomcatModule (t, ctx.getAttributeValue ("path"), docBase); //NOI18N
174
            this.tmId = new TomcatModule (t, ctx.getAttributeValue ("path"), docBase); //NOI18N
173
            if (!docBase.equals (ctx.getAttributeValue ("docBase"))) { //NOI18N
175
            if (!docBase.equals (ctx.getAttributeValue ("docBase"))) { //NOI18N
174
                ctx.setAttributeValue ("docBase", docBase); //NOI18N
176
                ctx.setAttributeValue ("docBase", docBase); //NOI18N

Return to bug 49420