public
Fork of jashkenas/ruby-processing
Description: Code as Art, Art as Code. Processing and Ruby are meant for each other.
Homepage: http://github.com/jashkenas/ruby-processing/wikis
Clone URL: git://github.com/nicksieger/ruby-processing.git
Moved RubyLauncher into JRuby-Complete. More refactorings. Updated to the 
latest JRuby trunk. And I want to apologize to anyone who's tried to make 
applets recently. Now they're properly signed.
jashkenas (author)
Thu Apr 24 14:34:58 -0700 2008
commit  5f05793e7a02cd534834048043aebcd81e337a6b
tree    8786aa3c3e82a67aabca32583080f1c58da1357c
parent  117d726d904d49b06b94eadf066aacd1b8c27b60
...
123
124
125
126
 
127
128
129
130
131
132
133
134
135
136
137
138
139
140
 
 
 
 
 
 
 
141
142
143
...
123
124
125
 
126
127
128
129
130
131
132
 
 
 
 
 
 
 
 
133
134
135
136
137
138
139
140
141
142
0
@@ -123,21 +123,20 @@ module Processing
0
                 :full_screen => false}.merge(options)
0
       @width, @height, @title = options[:width], options[:height], options[:title]
0
       display options
0
- display_slider_frame
0
+ display_slider_frame if self.class.slider_frame
0
     end
0
     
0
     def setup() end
0
     def draw() end
0
       
0
     def display_slider_frame
0
- if (f = self.class.slider_frame)
0
- f.add f.panel
0
- f.set_size 200, 32 + (71 * f.sliders.size)
0
- f.setDefaultCloseOperation(JFrame::DISPOSE_ON_CLOSE)
0
- f.set_resizable false
0
- f.set_location(@width + 10, 0)
0
- f.show
0
- end
0
+ f = self.class.slider_frame
0
+ f.add f.panel
0
+ f.set_size 200, 32 + (71 * f.sliders.size)
0
+ f.setDefaultCloseOperation(JFrame::DISPOSE_ON_CLOSE)
0
+ f.set_resizable false
0
+ f.set_location(@width + 10, 0)
0
+ f.show
0
     end
0
       
0
     def display_full_screen(graphics_env)
...
70
71
72
73
74
75
 
76
77
78
...
70
71
72
 
73
74
75
76
77
78
0
@@ -70,9 +70,9 @@
0
       codebase="."
0
       archive="<%= @file_list %>"
0
       style="margin: 0; padding: 0;"
0
- script="<%= @main_file %>"
0
       width="<%= @width %>" height="<%= @height %>">
0
       
0
+ <param name="jruby.script" value="<%= @main_file %>"/>
0
       <param name="image" value="images/ruby.jpg" />
0
       <param name="boxbgcolor" value="#000000" />
0
       <param name="lang" value="en" />
...
27
28
29
30
 
31
32
33
...
27
28
29
 
30
31
32
33
0
@@ -27,7 +27,7 @@
0
     <key>VMOptions</key>
0
     <string>-Xms128M -Xmx256M</string>
0
     <key>MainClass</key>
0
- <string>RubyLauncher</string>
0
+ <string>org.jruby.JRubyLauncher</string>
0
     <key>WorkingDirectory</key>
0
     <string>$JAVAROOT</string>
0
     <key>Arguments</key>
...
1
2
3
4
 
5
...
1
2
 
3
4
5
0
@@ -1,3 +1,3 @@
0
 Manifest-Version: 1.0
0
 Created-By: Ruby-Processing
0
-Main-Class: RubyLauncher
0
\ No newline at end of file
0
+Main-Class: org.jruby.JRubyLauncher
0
\ No newline at end of file
...
2
3
4
 
 
 
5
6
7
...
2
3
4
5
6
7
8
9
10
0
@@ -2,6 +2,9 @@
0
 // -- omygawshkenas
0
 
0
 import java.io.*;
0
+import java.io.IOException;
0
+import java.io.FileInputStream;
0
+import java.io.BufferedInputStream;
0
 
0
 import org.jruby.Ruby;
0
 import org.jruby.RubyInstanceConfig;
...
1
2
3
4
 
...
1
2
3
 
4
0
@@ -1,4 +1,4 @@
0
 #!/bin/sh
0
 APPDIR=$(dirname "$0")
0
 cd "$APPDIR/Contents/Resources/Java"
0
-java -cp "<%= @linux_class_path %>" RubyLauncher <%= @main_file %>
0
+java -cp "<%= @linux_class_path %>" org.jruby.JRubyLauncher <%= @main_file %>
...
13
14
15
16
17
 
18
...
13
14
15
 
16
17
18
0
@@ -13,4 +13,4 @@ unless File.exists? path
0
   exit
0
 end
0
 
0
-`java -cp "script/base_files/jruby-complete.jar:script/base_files/RubyLauncher.jar" RubyLauncher #{path}`
0
\ No newline at end of file
0
+`java -cp "script/base_files/jruby-complete.jar" org.jruby.JRubyLauncher #{path}`
0
\ No newline at end of file

Comments

    No one has commented yet.