Last active
December 15, 2015 07:10
-
-
Save brian428/5221856 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.catalina.loader.WebappLoader | |
eventConfigureTomcat = { tomcat -> | |
def newContextRoot = "/extjs_src" | |
File newContextPath = new File( "C:/Developer/Tools/javascript/ext-4.2.0.663/src" ) | |
if( newContextPath.exists() ) { | |
context = tomcat.addWebapp( newContextRoot, newContextPath.getAbsolutePath() ) | |
context.reloadable = true | |
WebappLoader loader = new WebappLoader( tomcat.class.classLoader ) | |
context.loader = loader | |
println "Added ${ newContextRoot } virtual context root" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment