Skip to content

Commit

Permalink
Using jruby.home from the extracted directory
Browse files Browse the repository at this point in the history
  • Loading branch information
navaneeth committed Oct 4, 2013
1 parent c9154a7 commit e6b63fb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<classpathentry kind="src" path="tests"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="lib" path="deps/jruby-complete-1.7.4.jar"/>
<classpathentry kind="lib" path="deps/log4j-1.2.17.jar"/>
<classpathentry kind="lib" path="deps/commons-io-2.4.jar"/>
<classpathentry kind="lib" path="deps/xmlwise-1_2.jar"/>
<classpathentry kind="lib" path="deps/jruby-1.7.4.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
4 changes: 2 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<property name="scripts.dir" value="${classes.dir}/scripts" />
<mkdir dir="${scripts.dir}" />
<copy file="scripts/launcher.rb" todir="${scripts.dir}" />
<copy file="${gems.zip.path}" todir="${scripts.dir}/gems.zip" />
<copy file="${gems.zip.path}" todir="${scripts.dir}" />

<mkdir dir="${jar.dir}" />
<jar destfile="${jar.file}" basedir="${classes.dir}">
Expand All @@ -64,7 +64,7 @@
<mkdir dir="${distro.dir}" />
<copy file="${jar.file}" todir="${distro.dir}" />
<copy file="${doc.jar}" todir="${distro.dir}" />
<copy file="${deps.dir}/jruby-complete-1.7.4.jar" todir="${distro.dir}" />
<copy file="${deps.dir}/jruby-1.7.4.jar" todir="${distro.dir}" />
<copy file="${deps.dir}/log4j-1.2.17.jar" todir="${distro.dir}" />
<copy file="${deps.dir}/xmlwise-1_2.jar" todir="${distro.dir}" />
<copy file="LICENSE.txt" todir="${distro.dir}" />
Expand Down
Binary file not shown.
3 changes: 3 additions & 0 deletions src/calabash/java/CalabashWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,9 @@ public String getGemsDir() {
}

private final void initializeScriptingContainer() throws CalabashException {
// We manage JRuby home to work around a bug in JRuby (https://github.com/jruby/jruby/issues/1051)
container.setHomeDirectory(new File(rbScriptsDir, "jruby.home").getAbsolutePath());

HashMap<String, String> environmentVariables = new HashMap<String, String>();
environmentVariables.put("PROJECT_DIR", projectDir.getAbsolutePath());
environmentVariables.put("HOME", System.getProperty("user.home"));
Expand Down

0 comments on commit e6b63fb

Please sign in to comment.