|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.cli.support.GrailsBuildHelper
public class GrailsBuildHelper
Helper class that allows a client to bootstrap the Grails build system
in its own class loader. It basically uses reflection to handle the
entry points to the build system: BuildSettings
and GrailsScriptRunner
. This
ensures class loader isolation for Grails.
Constructor Summary | |
---|---|
GrailsBuildHelper(ClassLoader classLoader)
Creates a helper that loads the Grails build system with the given class loader. |
|
GrailsBuildHelper(ClassLoader classLoader,
String grailsHome)
Creates a helper that loads the Grails build system with the given class loader. |
|
GrailsBuildHelper(ClassLoader classLoader,
String grailsHome,
String baseDir)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrailsBuildHelper(ClassLoader classLoader)
GrailsRootLoader
.
You can try other class loaders, but you may run into problems.
classLoader
- The class loader that will be used to load
Grails.public GrailsBuildHelper(ClassLoader classLoader, String grailsHome)
GrailsRootLoader
.
You can try other class loaders, but you may run into problems.
classLoader
- The class loader that will be used to load
Grails.grailsHome
- Location of a local Grails installation.public GrailsBuildHelper(ClassLoader classLoader, String grailsHome, String baseDir)
Method Detail |
---|
public int execute(String script)
script
- The name of the script to execute, such as "Compile".
public int execute(String script, String args)
script
- The name of the script to execute, such as "Compile".args
- A single string containing the arguments for the
script, each argument separated by whitespace.
public int execute(String script, String args, String env)
script
- The name of the script to execute, such as "Compile".args
- A single string containing the arguments for the
script, each argument separated by whitespace.env
- The name of the environment to run in, e.g. "development"
or "production".
public File getGrailsWorkDir()
public void setGrailsWorkDir(File dir)
public File getProjectWorkDir()
public void setProjectWorkDir(File dir)
public File getClassesDir()
public void setClassesDir(File dir)
public File getTestClassesDir()
public void setTestClassesDir(File dir)
public File getResourcesDir()
public void setResourcesDir(File dir)
public File getProjectPluginsDir()
public void setProjectPluginsDir(File dir)
public File getGlobalPluginsDir()
public void setGlobalPluginsDir(File dir)
public File getTestReportsDir()
public void setTestReportsDir(File dir)
public List getCompileDependencies()
public void setCompileDependencies(List dependencies)
public void setDependenciesExternallyConfigured(boolean b)
public List getTestDependencies()
public void setTestDependencies(List dependencies)
public List getRuntimeDependencies()
public void setRuntimeDependencies(List dependencies)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |