Skip to content

Commit 9318c9b

Browse files
author
graeme
committed
added option to disable auto-recompilation of java sources
git-svn-id: https://svn.codehaus.org/grails/trunk@5354 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent bd39bf7 commit 9318c9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/RunApp.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ import org.codehaus.groovy.tools.RootLoader
3434
Ant.property(environment:"env")
3535
grailsHome = Ant.antProject.properties."env.GRAILS_HOME"
3636
grailsServer = null
37-
grailsContext = null
37+
grailsContext = null
38+
autoRecompile = System.getProperty("disable.auto.recompile") ? !(System.getProperty("disable.auto.recompile").toBoolean()) : true
3839

3940

4041
includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" )
@@ -63,8 +64,7 @@ task ( runApp : "Main implementation that executes a Grails application") {
6364
}
6465
task( watchContext: "Watches the WEB-INF/classes directory for changes and restarts the server if necessary") {
6566
long lastModified = classesDir.lastModified()
66-
while(true) {
67-
67+
while(true && autoRecompile) {
6868
try {
6969
Ant.groovyc(destdir:classesDirPath,
7070
classpathref:"grails.classpath",

0 commit comments

Comments
 (0)