- Revision
- 3131
- Author
- rimovm
- Date
- 2006-12-19 17:49:15 -0600 (Tue, 19 Dec 2006)
Log Message
Fixed for windows.
Modified Paths
Diff
Modified: java/nanocontainer/trunk/webcontainer/src/test/org/nanocontainer/webcontainer/groovy/WebContainerBuilderTestCase.java (3130 => 3131)
--- java/nanocontainer/trunk/webcontainer/src/test/org/nanocontainer/webcontainer/groovy/WebContainerBuilderTestCase.java 2006-12-19 16:11:09 UTC (rev 3130)
+++ java/nanocontainer/trunk/webcontainer/src/test/org/nanocontainer/webcontainer/groovy/WebContainerBuilderTestCase.java 2006-12-19 23:49:15 UTC (rev 3131)
@@ -174,7 +174,9 @@
File testWar = TestHelper.getTestWarFile();
-
+ String absolutePath = testWar.getParentFile().getAbsolutePath();
+ absolutePath = absolutePath.replace('\\', '/');
+
Reader script = new StringReader("" +
"package org.nanocontainer.script.groovy\n" +
"builder = new GroovyNodeBuilder()\n" +
@@ -182,7 +184,7 @@
// declare the web container
" webContainer(port:8080) {\n" +
" context(path:'/bar') {\n" +
- " staticContent(path:'"+testWar.getParentFile().getAbsolutePath()+"')\n" +
+ " staticContent(path:'"+absolutePath+"')\n" +
" }\n" +
" }\n" +
// end declaration
@@ -206,7 +208,9 @@
File testWar = TestHelper.getTestWarFile();
-
+ String absolutePath = testWar.getParentFile().getAbsolutePath();
+ absolutePath = absolutePath.replace('\\', '/');
+
Reader script = new StringReader("" +
"package org.nanocontainer.script.groovy\n" +
"builder = new GroovyNodeBuilder()\n" +
@@ -214,7 +218,7 @@
// declare the web container
" webContainer(port:8080) {\n" +
" context(path:'/bar') {\n" +
- " staticContent(path:'"+testWar.getParentFile().getAbsolutePath()+"', welcomePage:'hello.html')\n" +
+ " staticContent(path:'" + absolutePath + "', welcomePage:'hello.html')\n" +
" }\n" +
" }\n" +
// end declaration
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
|