GWT .hgignore / .gitignore entries
Asked Answered
M

2

7

What are the typical entries in your source control ignore files for a GWT App (developed in eclipse)?

Melodist answered 13/11, 2011 at 3:35 Comment(0)
S
10

I would recommend:

:

/build
/classes
*.jar
*.class
*~
*/web-app/gwt
*/web-app/WEB-INF/classes
target

The name of certain generated directories can vary slightly, so you should adapt them for your project.

Spicy answered 13/11, 2011 at 4:55 Comment(4)
they didn't include the war directory. Is it OK?Cuman
@RedPlanet it depends how your project is configured, but if you have a war directory, then yes, you can add war/ to the .gitignore file content.Spicy
thanks for the reply. I'm making the first GWT project with Google Maps and only ignore war/WEB-INF/classes/ and gwt-unitCache/.Cuman
@RedPlanet that should be enough, as long as you don't end up versioning large files which are re-generated at each build anyway.Spicy
A
8

In addition to VonC's eclipse/ant/maven suggestions, I'd add the a few more gwt-specific entries:

  • .gwt - compilation logs
  • gwt-unitCache - caching for already compiled files
  • www-test - gwt junit compilation files

Personally I'd stay away from trying to blacklist files/folders in any webapp dir, except either on a project-by-project basis, or by making sure that your compilation process builds gwt compiled files to another dir in a build/ or target/ dir - this might make things more annoying to start up, but you won't need to customize .gitignore with any new gwt module.

Amuse answered 14/11, 2011 at 6:17 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.