Quantcast

grails project svn issue

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

grails project svn issue

Nevill
hi all,

I created a grails app, and imported it to my SVN repos, then added
"web-app/WEB-INF/classes",  "web-app/WEB-INF/lib",
"web-app/WEB-INF/grails-app" to svn ignore list.

But after i execute command "grails clean" or "grails run-app", the 3
directory will be deleted, then when i commit to svn, it tells me the
directories are obstructed.

So I change the Package.groovy / Clean.groovy to make it works.

e.g.

original code:
        Ant.delete(dir:"${webInf}/classes")
        Ant.delete(dir:"${webInf}/lib")
        Ant.mkdir(dir:"${webInf}/classes")
        Ant.mkdir(dir:"${webInf}/lib")

changed to:
   Ant.delete(includeemptydirs: true) {
        fileset(dir:"${webInf}/classes", includes:"**/*")
    }
    Ant.delete(includeemptydirs: true) {
        fileset(dir:"${webInf}/lib", includes:"**/*")
    }

anyone has some better suggestions, or the new grails release will
modify the script?

btw, i use grails-0.4.2 on Windows

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails project svn issue

kate rhodes


On 3/30/07, Nevill <[hidden email]> wrote:
hi all,

I created a grails app, and imported it to my SVN repos, then added
"web-app/WEB-INF/classes",  "web-app/WEB-INF/lib",
"web-app/WEB-INF/grails-app" to svn ignore list.

But after i execute command "grails clean" or "grails run-app", the 3
directory will be deleted, then when i commit to svn, it tells me the
directories are obstructed.

[snip]


Why not just alter the run-app script so that it doesn't copy the .svn directories when it copies things to web-app?

--
- kate = masukomi
http://weblog.masukomi.org/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails project svn issue

Nevill
I think the problem is, grails delete the who directory, including the
.svn directory.

i'm curious that nobody here use svn for grails project? I doubt that
if i use it with svn in a wrong way?

Thx

On 3/31/07, kate rhodes <[hidden email]> wrote:

>
>
> On 3/30/07, Nevill <[hidden email]> wrote:
> > hi all,
> >
> > I created a grails app, and imported it to my SVN repos, then added
> > "web-app/WEB-INF/classes",  "web-app/WEB-INF/lib",
> > "web-app/WEB-INF/grails-app" to svn ignore list.
> >
> > But after i execute command "grails clean" or "grails run-app", the 3
> > directory will be deleted, then when i commit to svn, it tells me the
> > directories are obstructed.
>
> [snip]
>
>
> Why not just alter the run-app script so that it doesn't copy the .svn
> directories when it copies things to web-app?
>
> --
> - kate = masukomi
> http://weblog.masukomi.org/


--
Best Regards
- Nevill

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails project svn issue

kate rhodes
On 3/31/07, Nevill <[hidden email]> wrote:
> I think the problem is, grails delete the who directory, including the
> .svn directory.
>
> i'm curious that nobody here use svn for grails project? I doubt that
> if i use it with svn in a wrong way?

I use Subversion with Grails every day. Grails itself is version
controled by Subversion.

I simply don't check in any of the funky dirs under web-app. I use it
from the command line and i use it via Subversive when in Eclipse. If
you haven't tried Subversive i HIGHLY recommend it. It is miles ahead
of Subclipse.
http://www.polarion.org/index.php?page=features&project=subversive

--
- kate = masukomi
http://weblog.masukomi.org/

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails project svn issue

pledbrook
> I use Subversion with Grails every day. Grails itself is version
> controled by Subversion.

Same here. Nevill, have you looked at this page:

  http://docs.codehaus.org/display/GRAILS/Checking+Projects+into+SVN

?

Cheers,

Peter

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

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: grails project svn issue

Nevill
Thx Peter,

That is what I want.

On 4/1/07, Peter Ledbrook <[hidden email]> wrote:

> > I use Subversion with Grails every day. Grails itself is version
> > controled by Subversion.
>
> Same here. Nevill, have you looked at this page:
>
>   http://docs.codehaus.org/display/GRAILS/Checking+Projects+into+SVN
>
> ?
>
> Cheers,
>
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>


--
Best Regards
- Nevill

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

    http://xircles.codehaus.org/manage_email

Loading...