« Return to Thread: 1.0.3 - No such property: context for class: java.lang.String

Re: 1.0.3 - No such property: context for class: java.lang.String

by Marc Palmer Local :: Rate this Message:

Reply to Author | View in Thread


On 17 Jul 2008, at 20:17, Graeme Rocher wrote:

> I would say the problem is caused by this code in Package.groovy
>
>    // Get the application context path by looking for a property
> named 'app.context' in the following order of precedence:
>    // System properties
>    // application.properties
>    // config
>    // default to grailsAppName if not specified
>
>    serverContextPath = System.getProperty("app.context")
>    serverContextPath = serverContextPath ?:
> Ant.antProject.properties.'app.context'
>    serverContextPath = serverContextPath ?: config.grails.app.context
>    serverContextPath = serverContextPath ?: grailsAppName
>
>
> The third ternary

OK so this looks like a bug as previously this was not a problem, and  
it should be defaulting to to grailsAppName if there is no such  
property "context" on config.grails.app?

Pls confirm and I will jira (including workaround of specifying  
grails.app.context) and fix in trunk :)

Thanks for the pointer!

Marc


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: 1.0.3 - No such property: context for class: java.lang.String