2011/12/27 Olivier Lamy <ol...@apache.org>: > 2011/12/27 Konstantin Kolinko <knst.koli...@gmail.com>: >> 2011/12/27 <ol...@apache.org>: >>> Author: olamy >>> Date: Tue Dec 27 17:36:19 2011 >>> New Revision: 1224955 >>> >>> URL: http://svn.apache.org/viewvc?rev=1224955&view=rev >>> Log: >>> fix path >>> >>> Modified: >>> >>> tomcat/sandbox/trunk-mvn-build/tomcat-tests/src/test/java/org/apache/catalina/authenticator/TestFormAuthenticator.java >>> >>> >>> private FormAuthClient() throws Exception { >>> Tomcat tomcat = getTomcatInstance(); >>> - File appDir = new File(getBuildDirectory(), >>> "webapps/examples"); >>> + File appDir = new File(getBuildDirectory(), "/examples"); >> >> Are you on Linux? The above should be just "examples". > yes. > See change in getBuildDirectory() (return "target") > As with a maven structure, the examples webapp is now on his own > project, the war is expanded before test phase to target/examples and > various resources are available in this path.
I just mean s/ "/examples" / "examples" / without the leading slash in the relative filesystem path. (To my surprise the current code works. I mean concatenation of paths just ignores the leading '/', not honoring the path concatenation rules of the OS. Well, that has a reason.) > >> >>> Context ctx = tomcat.addWebapp(null, "/examples", >>> appDir.getAbsolutePath()); >>> Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org