Re: svn commit: r1224955 - /tomcat/sandbox/trunk-mvn-build/tomcat-tests/src/test/java/org/apache/catalina/authenticator/TestFormAuthenticator.java

2011-12-27 Thread Konstantin Kolinko
2011/12/27 Olivier Lamy :
> 2011/12/27 Konstantin Kolinko :
>> 2011/12/27  :
>>> 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



Re: svn commit: r1224955 - /tomcat/sandbox/trunk-mvn-build/tomcat-tests/src/test/java/org/apache/catalina/authenticator/TestFormAuthenticator.java

2011-12-27 Thread Olivier Lamy
2011/12/27 Konstantin Kolinko :
> 2011/12/27  :
>> 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.

>
>>             Context ctx = tomcat.addWebapp(null, "/examples",
>>                     appDir.getAbsolutePath());
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: dev-h...@tomcat.apache.org
>>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



Re: svn commit: r1224955 - /tomcat/sandbox/trunk-mvn-build/tomcat-tests/src/test/java/org/apache/catalina/authenticator/TestFormAuthenticator.java

2011-12-27 Thread Konstantin Kolinko
2011/12/27  :
> 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".

>             Context ctx = tomcat.addWebapp(null, "/examples",
>                     appDir.getAbsolutePath());
>
>
>
>
> -
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>

-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org