Skip to content

Commit

Permalink
Showing 5 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/util/JRubyClassLoader.java
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ private File getTempDir() {
}

// Change visibility so others can see it
@Override
@Override
public void addURL(URL url) {
// if we have such embedded jar within a jar, we copy it to temp file and use the
// the temp file with the super URLClassLoader
Original file line number Diff line number Diff line change
@@ -661,7 +661,7 @@ private String resolveScript(String scriptName) {
String path = maybePath.toString();
String[] paths = path.split(System.getProperty("path.separator"));
for (int i = 0; i < paths.length; i++) {
result = resolve(paths[i], scriptName);
result = resolve(new File(paths[i]).getAbsolutePath(), scriptName);
if (result != null) return result;
}
}
21 changes: 21 additions & 0 deletions maven/jruby-complete/src/it/integrity/pom.xml
Original file line number Diff line number Diff line change
@@ -233,6 +233,27 @@
</arguments>
</configuration>
</execution>
<execution>
<id>-S icecream - GH-3186</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<workingDirectory>${basedir}</workingDirectory>
<executable>java</executable>
<environmentVariables>
<PATH>${env.PATH}:somebin</PATH>
</environmentVariables>
<arguments>
<argument>-classpath</argument>
<classpath/>
<argument>org.jruby.Main</argument>
<argument>-S</argument>
<argument>icecream</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>META-INF/jruby.home is not a file - GH-3342</id>
<phase>test</phase>
1 change: 1 addition & 0 deletions maven/jruby-complete/src/it/integrity/somebin/icecream
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
puts __FILE__
5 changes: 5 additions & 0 deletions maven/jruby-complete/src/it/integrity/verify.bsh
Original file line number Diff line number Diff line change
@@ -53,6 +53,11 @@ if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}
expected = basedir + "/somebin/icecream";
if ( !log.contains( expected ) )
{
throw new RuntimeException( "log file does not contain '" + expected + "'" );
}

File file = new File(basedir, "bin/.jrubydir");
if ( !file.exists() )

0 comments on commit b403be6

Please sign in to comment.