Skip to content

Commit

Permalink
pass all command arguments to app
Browse files Browse the repository at this point in the history
  • Loading branch information
tka committed Oct 2, 2012
1 parent 308ff1e commit 5acd575
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -87,7 +87,7 @@ INFO_ENDL

%x{mv package/jar package/fire.app}
File.open('package/fire.app/run.sh','w') do |f|
f.write("#!/usr/bin/env bash\ncd $(dirname $0)\njava -client -jar fire-app.jar $1")
f.write("#!/usr/bin/env bash\ncd $(dirname $0)\njava -client -jar fire-app.jar $@")
end
%x{chmod +x package/fire.app/run.sh}
Dir.chdir 'package'
Expand Down
2 changes: 1 addition & 1 deletion bin/startJar-linux.sh
Expand Up @@ -5,4 +5,4 @@ bundle exec rake rawr:jar
#"-Djruby.compat.version=1.9" \
#java -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails -Djruby.reify.classes=true \
java -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails \
-client -Xverify:none -Xbootclasspath/a:lib/java/jruby-complete.jar -jar package/jar/fire-app.jar $1
-client -Xverify:none -Xbootclasspath/a:lib/java/jruby-complete.jar -jar package/jar/fire-app.jar $@
2 changes: 1 addition & 1 deletion bin/startJar-osx.sh
Expand Up @@ -5,4 +5,4 @@ fi
bundle exec rake rawr:jar
#java -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails \
# -Xms128m -Xmn32m -Xmx128m \
java -Dfile.encoding=utf8 -d32 -client -Xverify:none -XstartOnFirstThread -Xbootclasspath/a:lib/java/jruby-complete.jar -jar package/jar/fire-app.jar
java -Dfile.encoding=utf8 -d32 -client -Xverify:none -XstartOnFirstThread -Xbootclasspath/a:lib/java/jruby-complete.jar -jar package/jar/fire-app.jar $@
4 changes: 2 additions & 2 deletions src/compile_version.rb
@@ -1,5 +1,5 @@
module CompileVersion
REVISION = 'e2b58245ea'
COMPILE_TIME = '201210020822'
REVISION = '308ff1e325'
COMPILE_TIME = '201210020841'
UPDATE_URL = ''
end
1 change: 0 additions & 1 deletion src/main.rb
Expand Up @@ -39,7 +39,6 @@
end

end.parse!
puts options.inspect

begin
# TODO: dirty, need refactor
Expand Down

0 comments on commit 5acd575

Please sign in to comment.