Skip to content

Commit

Permalink
Showing 4 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -571,7 +571,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
@@ -198,6 +198,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 + "'" );
}

expected = "jruby home is a file: falsefalse";
if ( !log.contains( expected ) ) throw new RuntimeException( "log file does not contain '" + expected + "'" );

0 comments on commit 52082d1

Please sign in to comment.