Class 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 Detail

      • ScriptData

        public ScriptData()
    • 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()
      • setLoadBootstrapLibraries

        public void setLoadBootstrapLibraries​(boolean isLoadBootstrapLibraries)
      • getLoadBootstrapLibraries

        public boolean getLoadBootstrapLibraries()
      • setProperties

        public void setProperties​(Map<String,​String> properties)
      • addProperty

        public void addProperty​(String key,
                                String value)
      • addMacro

        public void addMacro​(String key,
                             String value)
      • addPlugin

        public void addPlugin​(PluginData p)
      • setLibraries

        public void setLibraries​(Map<String,​File> libraries)
      • 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 - unused
        library - library location
      • addLibraryJar

        public void addLibraryJar​(String libraryJar)
      • getLibraryJars

        public List<String> getLibraryJars()