Package jetbrains.mps.tool.common
Class ScriptData
- java.lang.Object
 - 
- jetbrains.mps.tool.common.ScriptData
 
 
- 
public class ScriptData extends Object
Keeps properties necessary to start an MPS instance and to execute a worker class within this new instance. Primary purpose is to supply persistence of the attributes to ensure they get passed between Java process boundaries. Primary scenario for this class is to get MPS started in a distinct setup (e.g. by configuring IdeaEnvionment with EnvironmentConfig which gets populated with the properties serialized by this class) Unlike Script counterpart, doesn't know anything about specific ant tasks and their possible arguments. Collections are returned by-reference and could be modified from outside (this class is just a data holder + persistence) FIXME deserves better name FIXME auxiliary properties are likely not part of MPS startup sequence FIXME myLibraries - what the hell is 'name' key, and do I really want to stick to File there provided I may use macro values as part of a library path 
- 
- 
Constructor Summary
Constructors Constructor Description ScriptData() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLibrary(String name, File library)XXX seems to be identical to library jar, both end up in EnvironmentConfig.addLib().voidaddLibraryJar(String libraryJar)voidaddMacro(String key, String value)voidaddPlugin(PluginData p)voidaddProperty(String key, String value)booleangetFailOnError()Map<String,File>getLibraries()List<String>getLibraryJars()booleangetLoadBootstrapLibraries()org.apache.log4j.LevelgetLogLevel()Map<String,String>getMacros()List<PluginData>getPlugins()Map<String,String>getProperties()RepositoryDescriptorgetRepo()StringgetWorker()voidread(org.jdom.Element root)voidsetFailOnError(boolean failOnError)voidsetLibraries(Map<String,File> libraries)voidsetLoadBootstrapLibraries(boolean isLoadBootstrapLibraries)voidsetLogLevel(org.apache.log4j.Level logLevel)voidsetMacros(Map<String,String> macros)voidsetProperties(Map<String,String> properties)voidsetRepo(RepositoryDescriptor repo)voidsetWorker(String workerClass)voidwrite(org.jdom.Element root) 
 - 
 
- 
- 
Method Detail
- 
write
public void write(org.jdom.Element root)
 
- 
read
public void read(org.jdom.Element root)
 
- 
setWorker
public void setWorker(String workerClass)
 
- 
getWorker
public String getWorker()
 
- 
setFailOnError
public void setFailOnError(boolean failOnError)
 
- 
getFailOnError
public boolean getFailOnError()
 
- 
setLogLevel
public void setLogLevel(org.apache.log4j.Level logLevel)
 
- 
getLogLevel
public org.apache.log4j.Level getLogLevel()
 
- 
getRepo
public RepositoryDescriptor getRepo()
 
- 
setRepo
public void setRepo(RepositoryDescriptor repo)
 
- 
setLoadBootstrapLibraries
public void setLoadBootstrapLibraries(boolean isLoadBootstrapLibraries)
 
- 
getLoadBootstrapLibraries
public boolean getLoadBootstrapLibraries()
 
- 
getPlugins
public List<PluginData> getPlugins()
 
- 
addPlugin
public void addPlugin(PluginData p)
 
- 
addLibrary
public void addLibrary(String name, File library)
XXX seems to be identical to library jar, both end up in EnvironmentConfig.addLib(). Deprecate?- Parameters:
 name- unusedlibrary- library location
 
- 
addLibraryJar
public void addLibraryJar(String libraryJar)
 
 - 
 
 -