Skip to content

Commit

Permalink
automate cp video.jar
Browse files Browse the repository at this point in the history
  • Loading branch information
monkstone committed Jun 7, 2015
1 parent 55846ca commit d8e9243
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions JRakefile
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
# -*- encoding: utf-8 -*-
require 'psych'

if !File.exist? './lib/core.jar'
if !File.exist? './lib/video.jar'
begin
CONFIG_FILE_PATH=File.expand_path('~/.rp5rc')
RB_CONFIG = (Psych.load_file(CONFIG_FILE_PATH))
source= "#{RB_CONFIG["PROCESSING_ROOT"]}/core/library/core.jar"
FileUtils.cp(source, './lib')
core= "#{RB_CONFIG["PROCESSING_ROOT"]}/core/library/core.jar"
FileUtils.cp(core, './lib')
video= "#{RB_CONFIG["PROCESSING_ROOT"]}/modes/java/libraries/video/library/video.jar"
FileUtils.cp(video, './lib')
rescue
raise 'WARNING: you must set PROCESSING_ROOT in .rp5rc to compile'
end
end

WARNING = <<-EOS
WARNING: you need a copy processings 'video.jar' to lib folder
for the ext compile (since video_event library)
WARNING: you need to copy processings 'core.jar' & 'video.jar' to lib folder
for the ext compile (video.jar required since video_event library)

EOS

Expand Down

0 comments on commit d8e9243

Please sign in to comment.