Skip to content

Instantly share code, notes, and snippets.

@matschaffer
Created September 15, 2009 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matschaffer/187287 to your computer and use it in GitHub Desktop.
Save matschaffer/187287 to your computer and use it in GitHub Desktop.
require 'lib/patch/buildr/eclipse'
repositories.remote << "http://www.ibiblio.org/maven2"
repositories.remote << "http://repository.codehaus.org"
def property(name)
java.lang.System.getProperty name
end
SWT_LIB = ENV['SWT_LIB'] || case property "os.name"
when /OS X/i
(property("os.arch").include?("64")) ? "lib/osx64/swt.jar" : "lib/osx/swt.jar"
when /linux/i
"lib/linux/swt.jar"
else
abort "No swt.jar currently available for your platform (#{property 'os.name'} - #{property 'os.arch'}). Please download it and build with SWT=/path/to/swt.jar."
end
desc "The core component of the redcar text editor used for parsing and resolving TextMate language specifications."
define "java-mateview" do
project.version = "0.0.1"
project.group = "com.redcareditor"
manifest["Implementation-Vendor"] = "The Redcar Editor Team"
compile.with Dir["lib/org.eclipse.*.jar"] + [SWT_LIB] +
["org.jruby.joni:joni:jar:1.1.3", "org.jdom:jdom:jar:1.1", "org.jruby.jcodings:jcodings:jar:1.0.1"]
test.using :junit # unless ENV['TEST_ONLY'] == "jtestr"
define "jtestr" do
compile.with project("java-mateview")
test.using :jtestr # unless ENV['TEST_ONLY'] == "junit"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment