.gitignore example

View: New views
10 Messages — Rating Filter:   Alert me  

.gitignore example

by jja-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There was a mention of .gitignore last month, but no complete example posted.
I've just started playing with git on a brand new grails project.
Here's my first cut at a .gitignore for Grails 1.0.3.
(Note that /plugins/core was removed from 1.0.3.)
Comments welcome.
John Allison

# .gitignore for Grails 1.0.3

# web application files that are overwritten by "grails upgrade"
#  cf. GRAILS_HOME/scripts/Upgrade.groovy, target( upgrade )
/web-app/WEB-INF

# IDE support files that are overwritten by "grails upgrade"
#  cf. GRAILS_HOME/scripts/CreateApp.groovy, target( createIDESupportFiles )
# to be specific, you could replace "/*" below with your project name,
#  e.g. "foobar.launch" (no slash)
.classpath
.project
.settings
build.xml
/*.launch
/*.tmproj

# logs
stacktrace.log
/test/reports

# project release file
*.war


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

    http://xircles.codehaus.org/manage_email



Re: .gitignore example

by Richard Vowles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

build.xml is not  generated, it is a template you can add extra stuff to. We use it to expose our extract scripts (such as WSDL generation for CXF) so we can run them in the IDE.

On Fri, Sep 19, 2008 at 7:37 AM, <jja@...> wrote:
There was a mention of .gitignore last month, but no complete example posted.
I've just started playing with git on a brand new grails project.
Here's my first cut at a .gitignore for Grails 1.0.3.
(Note that /plugins/core was removed from 1.0.3.)
Comments welcome.
John Allison

# .gitignore for Grails 1.0.3

# web application files that are overwritten by "grails upgrade"
#  cf. GRAILS_HOME/scripts/Upgrade.groovy, target( upgrade )
/web-app/WEB-INF

# IDE support files that are overwritten by "grails upgrade"
#  cf. GRAILS_HOME/scripts/CreateApp.groovy, target( createIDESupportFiles )
# to be specific, you could replace "/*" below with your project name,
#  e.g. "foobar.launch" (no slash)
.classpath
.project
.settings
build.xml
/*.launch
/*.tmproj

# logs
stacktrace.log
/test/reports

# project release file
*.war


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

   http://xircles.codehaus.org/manage_email




Re: .gitignore example

by jja-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Richard Vowles-4 wrote:
build.xml is not  generated, it is a template you can add extra stuff to. We
use it to expose our extract scripts (such as WSDL generation for CXF) so we
can run them in the IDE.
You're right, of course. I don't what I was thinking. Maybe I was looking at the create script or just
copied too much stuff in there.
Thanks, John

.bzrignore example [ was Re: [grails-user] .gitignore example ]

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

I think this makes a perfectly good .bzrignore file as well for those
who prefer Bazaar to Git.

On Thu, 2008-09-18 at 13:37 -0600, jja@... wrote:

> There was a mention of .gitignore last month, but no complete example posted.
> I've just started playing with git on a brand new grails project.
> Here's my first cut at a .gitignore for Grails 1.0.3.
> (Note that /plugins/core was removed from 1.0.3.)
> Comments welcome.
> John Allison
>
> # .gitignore for Grails 1.0.3
>
> # web application files that are overwritten by "grails upgrade"
> #  cf. GRAILS_HOME/scripts/Upgrade.groovy, target( upgrade )
> /web-app/WEB-INF
>
> # IDE support files that are overwritten by "grails upgrade"
> #  cf. GRAILS_HOME/scripts/CreateApp.groovy, target( createIDESupportFiles )
> # to be specific, you could replace "/*" below with your project name,
> #  e.g. "foobar.launch" (no slash)
> .classpath
> .project
> .settings
> build.xml
> /*.launch
> /*.tmproj
>
> # logs
> stacktrace.log
> /test/reports
>
> # project release file
> *.war
--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077


signature.asc (196 bytes) Download Attachment

Re: .gitignore example

by Dmitriy Kopylenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

FWIW, here the .gitignore for Grails Crowd: http://github.com/dima767/grails-crowd/tree/master/.gitignore

Cheers,
Dmitriy.

2008/9/18 jja-3 <jja@...>



Richard Vowles-4 wrote:
>
> build.xml is not  generated, it is a template you can add extra stuff to.
> We
> use it to expose our extract scripts (such as WSDL generation for CXF) so
> we
> can run them in the IDE.
>

You're right, of course. I don't what I was thinking. Maybe I was looking at
the create script or just
copied too much stuff in there.
Thanks, John
--
View this message in context: http://www.nabble.com/.gitignore-example-tp19560531p19564206.html
Sent from the grails - user mailing list archive at Nabble.com.


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

   http://xircles.codehaus.org/manage_email




Re: .gitignore example

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Has the Grails community effectively decided on Git as the DVCS of
choice or are there pockets of Bazaar and/or Mercurial use?

No axe to grind on this, I am just keeping tabs on usage profiles for an
ongoing DVCS threads Jim Hague, Tim Penhey and myself run at the annual
ACCU conference.

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077


signature.asc (196 bytes) Download Attachment

Re: .gitignore example

by Peter Ledbrook-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Has the Grails community effectively decided on Git as the DVCS of
> choice or are there pockets of Bazaar and/or Mercurial use?

I'm pretty much focusing on git at the moment. It's fast and works
pretty well. It is completely black magic to me though, and the
command set is arcane in the extreme :) I do wonder how well it's
going to do in the long run.

I guess I should really test a recent(ish) version of Bazaar - the
Ubuntu package was at 1.3 last time I tried, while Bazaar itself seems
to be on 1.5 or 1.6.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

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

    http://xircles.codehaus.org/manage_email



Re: .gitignore example

by Russel Winder-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Peter,

On Fri, 2008-09-19 at 14:08 +0100, Peter Ledbrook wrote:
> > Has the Grails community effectively decided on Git as the DVCS of
> > choice or are there pockets of Bazaar and/or Mercurial use?
>
> I'm pretty much focusing on git at the moment. It's fast and works
> pretty well. It is completely black magic to me though, and the
> command set is arcane in the extreme :) I do wonder how well it's
> going to do in the long run.

The Git command set and "computational model" is a nightmare, but it
does work and it is fast.  Many believe Git has already won the DVCS
"race", but I think Bazaar and Mercurial are still competitors.  To be
honest though I think it is really Git vs Bazaar since Mercurial is too
similar to Git to be differentiated (other than Mercurial is written in
Python -- slightly unfair, there are other differences, but...)

> I guess I should really test a recent(ish) version of Bazaar - the
> Ubuntu package was at 1.3 last time I tried, while Bazaar itself seems
> to be on 1.5 or 1.6.

I am on the bleeding edge and using the development branch bzr.dev
(1.8dev).  1.7 has just released 1.7rc2 with final coming out next week.
Remember though Bazaar is supposed to be on a monthly release cycle so
we should be on 1.12 fairly soon :-)

I like the model of Bazaar, it is clean and simple, and the command set
is very familiar to Subversion users.   Also Bazaar is an immensely
adaptive system, it can be  a drop in replacement for Subversion or used
as a full-on distributed version control system.  However compared to
Git is it slow.

I am still dithering a little between Git and Bazaar, mostly I favour
Bazaar but I still can't quite get rid of Git.  Mercurial I have managed
to drop --even when using NetBeans ;-)

BTW  IntelliJ IDEA and Eclipse both have good GIt and Bazaar plugins.

--
Russel.
====================================================
Dr Russel Winder                 Partner

Concertant LLP                   t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,              f: +44 8700 516 084
London SW11 1EN, UK.             m: +44 7770 465 077


signature.asc (196 bytes) Download Attachment

Re: .gitignore example

by Dmitriy Kopylenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Git command set doesn't bother me that much as there are about handful of so called 'porcelain' commands that I need to master for all my Git workflow needs. Every day I'm getting more comfortable and proficient with Git. Plus, IMO, GitHub is just wonderful!

Dmitriy.

2008/9/19 Peter Ledbrook <peter@...>
> Has the Grails community effectively decided on Git as the DVCS of
> choice or are there pockets of Bazaar and/or Mercurial use?

I'm pretty much focusing on git at the moment. It's fast and works
pretty well. It is completely black magic to me though, and the
command set is arcane in the extreme :) I do wonder how well it's
going to do in the long run.

I guess I should really test a recent(ish) version of Bazaar - the
Ubuntu package was at 1.3 last time I tried, while Bazaar itself seems
to be on 1.5 or 1.6.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

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

   http://xircles.codehaus.org/manage_email




Re: .gitignore example

by Dmitriy Kopylenko-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check out the community-written book on Git: http://book.git-scm.com/ It's mostly complete, but still WIP.

Cheers,
Dmitriy.

2008/9/19 Dmitriy Kopylenko <dmitriy.kopylenko@...>
Git command set doesn't bother me that much as there are about handful of so called 'porcelain' commands that I need to master for all my Git workflow needs. Every day I'm getting more comfortable and proficient with Git. Plus, IMO, GitHub is just wonderful!

Dmitriy.

2008/9/19 Peter Ledbrook <peter@...>

> Has the Grails community effectively decided on Git as the DVCS of
> choice or are there pockets of Bazaar and/or Mercurial use?

I'm pretty much focusing on git at the moment. It's fast and works
pretty well. It is completely black magic to me though, and the
command set is arcane in the extreme :) I do wonder how well it's
going to do in the long run.

I guess I should really test a recent(ish) version of Bazaar - the
Ubuntu package was at 1.3 last time I tried, while Bazaar itself seems
to be on 1.5 or 1.6.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

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

   http://xircles.codehaus.org/manage_email