All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.mains.Config Maven / Gradle / Ivy

Go to download

a set of main method to launch a jruby application from within a jar or war file or start jetty as executable

The newest version!
package org.jruby.mains;

public class Config {
    
    final String workingDirectory;

    final String jrubyHome;

    final String bundleDisableSharedGems;
    
    Config( String workingDirectory ) {
    	this( workingDirectory, 
    	      workingDirectory + "/META-INF/jruby.home", true );
    }

    Config( String workingDirectory, String jrubyHome, Boolean bundleDisableSharedGems ) {
        this.workingDirectory = workingDirectory;
        this.jrubyHome = jrubyHome;
        this.bundleDisableSharedGems = bundleDisableSharedGems == null ? null : bundleDisableSharedGems.toString();
    }

    public String toString() {
        StringBuilder buf = new StringBuilder();
	buf.append("working directory: ").append(workingDirectory).append("\njruby home: ").append(jrubyHome).append("\nbundler disable shared gems: ").append(bundleDisableSharedGems);
	return buf.toString();	    
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy