| Modifier and Type | Field and Description |
|---|---|
| public static final PathType | ABSOLUTE
Given filename is an absolute path. |
| public static final PathType | CLASSPATH
Given filename should be found from a classpath. |
| public static final PathType | RELATIVE
Given filename is a relative path to a base directory. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static PathType | |
| public static PathType[] |
| ABSOLUTE | back to summary |
|---|---|
| public static final PathType ABSOLUTE Given filename is an absolute path. | |
| CLASSPATH | back to summary |
|---|---|
| public static final PathType CLASSPATH Given filename should be found from a classpath. | |
| RELATIVE | back to summary |
|---|---|
| public static final PathType RELATIVE Given filename is a relative path to a base directory.
To set the base directory, use setAttribute() method of
ScriptingContainer container = new ScriptingContainer();
container.setAttribute(AttributeName.BASE_DIR, System.getProperty("user.dir"));
String filename = "test/ruby/iteration.rb";
Object receiver = container.runScriptlet(PathType.RELATIVE, filename);
| |
| PathType | back to summary |
|---|---|
| private PathType() | |
| valueOf | back to summary |
|---|---|
| public static PathType valueOf(String name) | |
| values | back to summary |
|---|---|
| public static PathType[] values() | |