mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-10 20:57:11 +00:00
49 lines
1.5 KiB
Ruby
49 lines
1.5 KiB
Ruby
require "buildr4osgi"
|
|
|
|
require File.join(File.dirname(__FILE__), "repositories.rb")
|
|
require File.join(File.dirname(__FILE__), "dependencies.rb")
|
|
|
|
# Keep this structure to allow the build system to update version numbers.
|
|
VERSION_NUMBER = "1.0.0.002-SNAPSHOT"
|
|
|
|
|
|
# Shorten expressions
|
|
def jars(*args)
|
|
args.collect {|arg| project(arg).package(:jar)}
|
|
end
|
|
|
|
desc "Cappuccino Distribution"
|
|
define "cappuccino" do
|
|
project.version = VERSION_NUMBER
|
|
project.group = "com.intalio.cloud.cappuccino"
|
|
|
|
file(_("target/patch")).enhance do
|
|
mkdir_p "target/patch"
|
|
end
|
|
|
|
file(_("target/Frameworks")).enhance do
|
|
mkdir_p "target/Frameworks/Debug"
|
|
system <<-BASH
|
|
export BUILD_PATH="target/Build"
|
|
jake debug release
|
|
BASH
|
|
|
|
cp_r "target/Build/Release/AppKit", "target/Frameworks/"
|
|
cp_r "target/Build/Release/Foundation", "target/Frameworks/"
|
|
cp_r "target/Build/Release/Objective-J", "target/Frameworks/"
|
|
cp_r "target/Build/Debug/AppKit", "target/Frameworks/Debug/"
|
|
cp_r "target/Build/Debug/Foundation", "target/Frameworks/Debug/"
|
|
cp_r "target/Build/Debug/Objective-J", "target/Frameworks/Debug/"
|
|
end
|
|
|
|
# file(_("target/Build")).enhance do
|
|
# end
|
|
package(:bundle).include _("target/patch"), :as => "patch"
|
|
package(:bundle).include _("target/Frameworks"), :as => "content/Frameworks"
|
|
package(:bundle).include _("build.properties"), :as => "build.properties"
|
|
package(:bundle).meta_inf << file('META-INF/web-fragment.xml')
|
|
|
|
end
|
|
|
|
|