[arquillian-issues] [JBoss JIRA] (ARQGRA-383) Improve @Location for contextRoot

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Sun Sep 29 14:33:02 EDT 2013


    [ https://issues.jboss.org/browse/ARQGRA-383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12808062#comment-12808062 ] 

Lukáš Fryč edited comment on ARQGRA-383 at 9/29/13 2:31 PM:
------------------------------------------------------------

It's completely valid to use @Location("") or @Location(".") or even @Location("/") (not that it would be useful in this case).

All of them are valid URL relocations against deployment context path as described by URL object:
[http://docs.oracle.com/javase/7/docs/api/java/net/URL.html#URL(java.net.URL, java.lang.String)|http://docs.oracle.com/javase/7/docs/api/java/net/URL.html#URL(java.net.URL, java.lang.String)]

We can change @Location to have sensible default: @Location("")

and document that accordingly.
                
      was (Author: lfryc):
    It's completely valid to use @Location("") or @Location(".") or even @Location("/") (not that it would be useful in this case).

All of them are valid URL relocations against deployment context path as described by URL object:
http://docs.oracle.com/javase/7/docs/api/java/net/URL.html#URL(java.net.URL, java.lang.String)

We can change @Location to have sensible default: @Location("")

and document that accordingly.
                  
> Improve @Location for contextRoot
> ---------------------------------
>
>                 Key: ARQGRA-383
>                 URL: https://issues.jboss.org/browse/ARQGRA-383
>             Project: Arquillian Graphene
>          Issue Type: Enhancement
>            Reporter: Karel Piwko
>            Priority: Minor
>
> In cases when @Location represents @ArquillianResource URL contextPath, it might be confusing that user needs to set it to:
> {code}
> @Location("")
> {code}
> It might be more convenient to provide a better way how to say that location equals contextPath, maybe *@DeploymentLocation or something like that.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list