Skip to content

Commit

Permalink
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mx.jruby/mx_jruby.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import mx
import os
from os.path import join, exists
import subprocess
import shutil

@@ -84,9 +83,9 @@ def build(self):

mx.run_mx(['maven-install'], suite=truffle)

open(join(rubyDir, 'VERSION'), 'w').write('graal-vm\n')
open(os.path.join(rubyDir, 'VERSION'), 'w').write('graal-vm\n')

# Build jruby-truffle and
# Build jruby-truffle

mx.run(['find', '.'], nonZeroIsFatal=False, cwd=rubyDir)
mx.run_maven(['--version'], nonZeroIsFatal=False, cwd=rubyDir)
@@ -100,14 +99,9 @@ def build(self):
mx.run_maven(['-Pcomplete', '-DskipTests', '-Dtruffle.version=' + truffle_commit], cwd=rubyDir)
mx.run(['zip', '-d', 'maven/jruby-complete/target/jruby-complete-graal-vm.jar', 'META-INF/jruby.home/lib/*'], cwd=rubyDir)
mx.run(['bin/jruby', 'bin/gem', 'install', 'bundler', '-v', '1.10.6'], cwd=rubyDir)
# shutil.rmtree(os.path.join(_suite.dir, "lib", "target"), True)
# shutil.rmtree(os.path.join(_suite.dir, 'lib', 'lib', 'jni'), True)
# shutil.copytree(os.path.join(_suite.dir, 'lib', 'jni'), os.path.join(_suite.dir, 'lib', 'lib', 'jni'))
# shutil.rmtree(os.path.join(_suite.dir, 'lib', 'jni'), True)

def clean(self, forBuild=False):
if forBuild:
return
rubyDir = _suite.dir
mx.run_maven(['clean'], nonZeroIsFatal=False, cwd=rubyDir)

0 comments on commit 613d2cb

Please sign in to comment.