Donnerstag, 25. August 2011

Spring Source Tool STS 2.7.1 and Grails

There are several pitfall you can win if you start using STS behind a proxy. Here is my shit list :-)

Install Groovy and Grails support in STS
After downloading STS 2.7 most of us would try to install the Grails and Groovy Support on the Extension tab of the STS. This will fail if you are behind a proxy. They claim to fix it in later versions. Till then just do the following:
  1. Adjust your network settings within the STS Window->Prefs->network according to your proxy

  2. Go to Help->Install New Software and http://download.eclipse.org/mylyn/snapshots/3.6 as a new site

  3. Install the MyLyn Task List Feature

  4. Restart

you should now be able to use the extension tab.

Install Grails plugins
If you try to install Grails plugins behind a proxy or firewall i.e. like

grails install-plugin calendar
 
you might get an error. To workaround this set the Proxy settings for grails 
within the  ProxySettings.groovy wihtin your .grails folder in your home dir. 
Or you go the grails command line way like that:
grails add-proxy aproxy "--host=myproxy.de" "--port=8008" "--username=myusername" "--password=mypassword" 
grails set-proxy aproxy 
 
That should create a valid ProxySettings.groovy and activate the proxy. 
Even the STS integrated Grails plugin manager should work now.
 
 

Dienstag, 9. August 2011

WinMerge Filter for Java and SVN

## This is a directory/file filter for WinMerge
name: Java and SVN
desc: Suppresses various binaries found in JAVA and svn source trees
## Ignore Java bin files
f: \.class$
f: \.jar$

## Ignore subversion folders
d: \\.svn$
d: \\._svn$