Posts tagged: grails

Running Grails apps on a different port

To run Grails apps on a different port, specify something like

grails -Dgrails.server.port.http=9000 run-app

Grails project files and directories

Standard project-related files and directories in an Grails project

  • .project – Eclipse project file
  • .classpath – Eclipse classpath file
  • .settings – Eclipse settings
  • *-test.launch – Eclipse run tests
  • *.launch – Eclipse run app
  • *.tmproj – Maybe Textmate project file

Grails + Autobase

See “Cry for Help on OpenSource projects

Grails 1.1.1 + Autobase 0.8.5 (LiquiBase 1.9.3)

Patch to make Autobase work

In ~/.grails/1.1.1/projects/[project]/plugins/autobase-0.8.5

Edit files

scripts/CreateMigration.groovy, scripts/CreateGroovyMigration.groovy

Comment out line 2

//import liquibase.dsl.properties.LbdslProperties as Props

Below line 7 add

includeTargets << grailsScript(“Compile”)
compile()
def LbdslProperties = Class.forName(“liquibase.dsl.properties.LbdslProperties”, true, this.class.classLoader)
assert LbdslProperties
includeTargets << new File ( “${grailsHome}/scripts/Init.groovy” )
includeTargets << new File ( “${autobasePluginDir}/scripts/_MigrationBase.groovy” )

Experiments in Grails

Assumed – Netbeans > 6.5.1, Groovy 1.6.0, Grails 1.1.1

Installing jsecurity plugin

grails install-plugin jsecurity

Defaults to ~/.grails, not global plugin location, or plugin location inside project directory.

WordPress Themes