Package gri.gridp.modules

Examples of gri.gridp.modules.Script


    elem.addContent(new CDATA(script.getText()));

  }

  public Script readScript(Element element) {
    Script s = new Script();
    ScriptEnvironment e = s.getEnvironment();

    Attribute a;
    //os:
    a = element.getAttribute("os");
    if (a != null)
      e.setOperatingSystem(a.getValue());

    //shell:
    a = element.getAttribute("shell");
    if (a != null)
      e.setShell(a.getValue());

    //script:
    s.setText(element.getValue());

    return s;
  }
View Full Code Here


        List outputs = new ListSerializer(outputSerializer, "output").readList(child);
        function.setOutputs(outputs);
      }

      else if (name.equals("script")) {
        Script script = scriptSerializer.readScript(child);
        if (script != null)
          function.addScript(script);
      }

    }
View Full Code Here

TOP

Related Classes of gri.gridp.modules.Script

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.