Ajax scaffold generator for Rails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Ajax scaffold generator for Rails

Steven Devijver
Reply | Threaded
Open this post in threaded view
|

Ressourceproblem on UNIX

Burkard Endres
Hi,

i did a clean checkout of grails this morning and there is still a
problem in  
org.codehaus.groovy.grails.commons.DefaultGrailsApplication with the
Pattern for UNIX-Systems, can you correct this
to something like:

    private static Pattern GRAILS_RESOURCE_PATTERN =
Pattern.compile(".+\\\\grails-app\\\\\\w+\\\\(.+)\\.groovy");
    static{
            if(File.separator.equals("/")){
                GRAILS_RESOURCE_PATTERN =
                    Pattern.compile(".+/grails-app/\\w+/(.+)\\.groovy");
            }
    }

by the way the same Pattern is used in org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder
which was fixed before, perhaps you can point to this Pattern so it has to be maintained only once?

Burkard

Reply | Threaded
Open this post in threaded view
|

Re: Ressourceproblem on UNIX

graemer
On 26/02/06, Burkard Endres <[hidden email]> wrote:

> Hi,
>
> i did a clean checkout of grails this morning and there is still a
> problem in
> org.codehaus.groovy.grails.commons.DefaultGrailsApplication with the
> Pattern for UNIX-Systems, can you correct this
> to something like:
>
>     private static Pattern GRAILS_RESOURCE_PATTERN =
> Pattern.compile(".+\\\\grails-app\\\\\\w+\\\\(.+)\\.groovy");
>     static{
>             if(File.separator.equals("/")){
>                 GRAILS_RESOURCE_PATTERN =
>                     Pattern.compile(".+/grails-app/\\w+/(.+)\\.groovy");
>             }
>     }
>
> by the way the same Pattern is used in org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder
> which was fixed before, perhaps you can point to this Pattern so it has to be maintained only once?

Hmm yes I did actually do this, but I think when I did a CVS merge I
must have skipped this change, thanks I will correct this

Graeme
>
> Burkard
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Ressourceproblem on UNIX

graemer
Burkard, this is fixed in CVS head now..

Thanks for the report
Graeme

On 26/02/06, Graeme Rocher <[hidden email]> wrote:

> On 26/02/06, Burkard Endres <[hidden email]> wrote:
> > Hi,
> >
> > i did a clean checkout of grails this morning and there is still a
> > problem in
> > org.codehaus.groovy.grails.commons.DefaultGrailsApplication with the
> > Pattern for UNIX-Systems, can you correct this
> > to something like:
> >
> >     private static Pattern GRAILS_RESOURCE_PATTERN =
> > Pattern.compile(".+\\\\grails-app\\\\\\w+\\\\(.+)\\.groovy");
> >     static{
> >             if(File.separator.equals("/")){
> >                 GRAILS_RESOURCE_PATTERN =
> >                     Pattern.compile(".+/grails-app/\\w+/(.+)\\.groovy");
> >             }
> >     }
> >
> > by the way the same Pattern is used in org.codehaus.groovy.grails.commons.spring.GrailsResourceHolder
> > which was fixed before, perhaps you can point to this Pattern so it has to be maintained only once?
>
> Hmm yes I did actually do this, but I think when I did a CVS merge I
> must have skipped this change, thanks I will correct this
>
> Graeme
> >
> > Burkard
> >
> >
>