jruby-startup 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d586ea3e5aaf44474a4360c6fe525da30cef4c6e8983fd4041ec3cedf28879b
4
- data.tar.gz: 9f68dc24a9b1ee72ed20242a69f7523ae9aa5c0d9e311e32d9cf87a4c13db29d
3
+ metadata.gz: d2599a23a9c7930d94dc23cfd5f13a769436f3989bff2af30de6749a484cd7f7
4
+ data.tar.gz: 7b6ea750b5269b6d0f852310752e7933a09bef735f5e001cdc1785ed08be11ea
5
5
  SHA512:
6
- metadata.gz: 0c737f3446f4a62b90e8bc8db79e90d07859bd0f5e7a3dbb5545c6eddf6b718a0e41348f7641c5e1e0df069e75e56468576e96027ad63c6831c22af63ed8dad0
7
- data.tar.gz: '030659741bf3725679bfde76c9599159b8301eece558c617458664a3e51bf79bae49d826b3f54104c556d01b46a1e2ca6ff0104ae8b5f964bee94d2e4b32248f'
6
+ metadata.gz: 5684ca5572213d23a933406343c1b294c9468ad135756019f5b6a892d6b4c15c5f67458f3346c4d6cc668afadf1de16b71b1dc7589f75ce1aaa1684ba373d11a
7
+ data.tar.gz: bfcde2950df51795445ff9adc11c6294da932354ae2824fae89e298de65cb1a907fed7448ba4f3cbb80db870f1293bb23530762e4303ca6f208db1561d69229a
@@ -1,3 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
1
3
  require 'jruby/startup'
2
4
 
3
5
  JRuby::Startup::AppCDS.regenerate_archive(ARGV)
@@ -24,23 +24,25 @@ module JRuby::Startup::AppCDS
24
24
  ENV['VERIFY_JRUBY'] = '1'
25
25
 
26
26
  # Dump list of classes for this command line
27
- puts "*** Outputting list of classes at #{jruby_list}"
27
+ puts "*** Outputting list of classes at #{jruby_list}\n\n"
28
28
 
29
29
  fail unless system "VERIFY_JRUBY=1 JAVA_OPTS='-XX:DumpLoadedClassList=#{jruby_list}' #{jruby_exe} #{command_line}"
30
30
 
31
31
  # Use class list to generate AppCDS archive
32
- puts "*** Generating shared AppCDS archive at #{jruby_jsa}"
32
+ puts "\n*** Generating shared AppCDS archive at #{jruby_jsa}\n\n"
33
33
 
34
34
  fail unless system "VERIFY_JRUBY=1 JAVA_OPTS='-Xshare:dump -XX:G1HeapRegionSize=2m -XX:+UnlockDiagnosticVMOptions -XX:SharedClassListFile=#{jruby_list} -XX:SharedArchiveFile=#{jruby_jsa}' #{jruby_exe} #{command_line}"
35
35
 
36
36
  # Display env vars to use for the new archive
37
37
  puts <<~END
38
- *** Success!
39
38
 
40
- Set the following environment variables to use the shared archive:
39
+ *** Success!
40
+
41
+ JRuby versions 9.2.1 or higher should detect #{jruby_jsa} and use it automatically.
42
+ For versions of JRuby 9.2 or earlier, set the following environment variables:
41
43
 
42
- VERIFY_JRUBY=1 # Only for JRuby versions 9.2.0.0 or earlier
43
- JAVA_OPTS="-XX:G1HeapRegionSize=2m -XX:SharedArchiveFile=#{jruby_jsa}"
44
+ VERIFY_JRUBY=1
45
+ JAVA_OPTS="-XX:G1HeapRegionSize=2m -XX:SharedArchiveFile=/Users/headius/projects/jruby/lib/jruby.jsa"
44
46
  END
45
47
  end
46
48
  end
@@ -1,5 +1,5 @@
1
1
  module JRuby
2
2
  module Startup
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-startup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Oliver Nutter