Permalink
Browse files

updated to also create a BuildConfig.groovy if it doesn't exist

  • Loading branch information...
1 parent 2aef9fc commit 8162d12fb549a02f690ce76b886d19c979c941a9 @burtbeckwith burtbeckwith committed Jun 16, 2011
Showing with 10 additions and 0 deletions.
  1. +10 −0 scripts/Upgrade.groovy
View
@@ -127,6 +127,16 @@ move it to the new location of '${basedir}/test/integration'. Please move the di
}
}
+ ['BuildConfig.groovy'].each() {template ->
+ if (!new File(baseFile, '/grails-app/conf').listFiles().find { it.name.equals(template) }) {
+ copy(tofile: "${basedir}/grails-app/conf/${template}") {
+ fileset(file: "${grailsHome}/src/grails/grails-app/conf/${template}") {
+ present(present: "srconly", targetdir: "${basedir}/grails-app/conf")
+ }
+ }
+ }
+ }
+
// Install application-only files if needed, with suffix matching
['DataSource.groovy'].each() {template ->
if (!new File(baseFile, '/grails-app/conf').listFiles().find { it.name.startsWith(template) }) {

0 comments on commit 8162d12

Please sign in to comment.