File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ import org.codehaus.groovy.tools.RootLoader
3434Ant . property(environment :" env" )
3535grailsHome = Ant . antProject. properties. " env.GRAILS_HOME"
3636grailsServer = null
37- grailsContext = null
37+ grailsContext = null
38+ autoRecompile = System . getProperty(" disable.auto.recompile" ) ? ! (System . getProperty(" disable.auto.recompile" ). toBoolean()) : true
3839
3940
4041includeTargets << new File ( " ${ grailsHome} /scripts/Package.groovy" )
@@ -63,8 +64,7 @@ task ( runApp : "Main implementation that executes a Grails application") {
6364}
6465task( 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" ,
You can’t perform that action at this time.
0 commit comments