Examples of loadFile()


Examples of org.jruby.IRuby.loadFile()

          // deprecated
            runtime.getGlobalVariables().set(GlobalVariable.variableName("ssh"), conn);
           
            runtime.getGlobalVariables().set(GlobalVariable.variableName("conn"), conn);
            runtime.getGlobalVariables().set(GlobalVariable.variableName("args"), JavaEmbedUtils.javaToRuby(runtime, args));
            runtime.loadFile(new File(filePath), false);
        } catch (JumpException je) {
            if (je.getJumpType() == JumpException.JumpType.RaiseJump) {
                RubyException raisedException = ((RaiseException)je).getException();

                if (raisedException.isKindOf(runtime.getClass("SystemExit"))) {
View Full Code Here

Examples of org.mapfish.print.config.Configuration.loadFile()

            }
            if (this.httpMethod == HttpMethod.GET) {
                final String uriString = this.uri.toString();
                final Configuration configuration = ConfigFileResolvingHttpRequestFactory.this.config;
                try {
                    final byte[] bytes = configuration.loadFile(uriString);
                    final ConfigFileResolverHttpResponse response = new ConfigFileResolverHttpResponse(bytes, headers);
                    LOGGER.debug("Resolved request: " + uriString + " using mapfish print config file loaders.");
                    return response;
                } catch (NoSuchElementException e) {
                    // cannot be loaded by configuration so try http
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.