Examples of RubyScriptReader


Examples of org.wso2.mashup.deployer.util.RubyScriptReader

            Parameter locParam = service.getParameter(RubyConstants.SERVICE_RUBY);

            if(locParam!=null){
                String location = (String)service.getParameter(RubyConstants.SERVICE_RUBY).getValue() ;
                File f = new File(location);
                RubyScriptReader reader = new RubyScriptReader();
                return reader.readScript(f);
            }
            else{
                throw new AxisFault("Can't retrieve ruby Script. Parameter missing..");
            }
        }
View Full Code Here

Examples of org.wso2.mashup.deployer.util.RubyScriptReader

* To change this template use File | Settings | File Templates.
*/
public class RubyScriptEngine {

     public static void main(String[] args) throws AxisFault {
               RubyScriptReader reader = new RubyScriptReader();
               String s = reader.readScript(new File("/home/usw/jRuby/testRuby/test.rb"));
                System.out.println(s);
                Ruby runtime = Ruby.getDefaultInstance();
                System.out.println(s +"func2 10,15 ");

                List params = new ArrayList();
View Full Code Here

Examples of org.wso2.mashup.deployer.util.RubyScriptReader

                XmlSchema schema = schemaGenerator.getSchema();
                axisService.addSchema(schema);
                QName paramElementQname = new QName(schemaTargetNamespace, "RubyParameter");


            RubyScriptReader scriptreader = new RubyScriptReader();
            String scriptFile = scriptreader.readScript(currentFile.getFile());
            //HashMap annoMap = RubyOperationsAnnotationParser.parseRubyOperationsAnnotation(scriptFile);
            Map annoMap = RubyOperationsAnnotationParser.parseRubyOperationsAnnotation(scriptFile);
            annotationsToSchema(axisService,annoMap,schemaGenerator);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.