Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 53 lines (39 sloc) 1.931 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53

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.091-SNAPSHOT"

desc "Wapama Designer"
define "wapama" do
  project.version = VERSION_NUMBER
  project.group = "org.wapama"
  
  desc "Wapama Editor"
  define "designer" do

    compile.with WAR_LIBS, JUNIT
    compile.options.source = "1.5"
    compile.options.target = "1.5"
  
    webContent = "WebContent/"

    package(:bundle).include(_("src/main/webapp"), :as => webContent)
    package(:war).include(_("src/main/webapp"), :as => '.')
    package(:war, :classifier => "jboss").include(_("src/main/webapp"), :as => '.')
    
    package(:war).libs = WAR_LIBS
    package(:war, :classifier => "jboss").libs = WAR_LIBS_JBOSS
  
    package(:war, :classifier => "jboss")

    read_m = ::Buildr::Packaging::Java::Manifest.parse(File.read(_("META-INF/MANIFEST.MF"))).main
    read_m["Jetty-WarFolderPath"] = webContent
    read_m["Bundle-Version"] = project.version
    package(:bundle).with :manifest => read_m
  
    package(:sources)
  end
  
  desc "Wapama distribution"
  define "distrib" do
    file(_("target/doc")).enhance do
      system("git co gh-pages ; jekyll #{File.join(File.dirname(__FILE__), "distrib/target/doc")}; rm -Rf #{File.join(File.dirname(__FILE__), "distrib/target/doc/designer")} ; rm -Rf #{File.join(File.dirname(__FILE__), "distrib/target/doc/distrib")} ; git co master")
    end
    package(:zip).include _("target/doc"), :as => "doc"
    package(:zip).include _("../LICENSE")
    package(:zip).include project("designer").package(:jar), :path => "distrib"
    package(:zip).include project("designer").package(:war), :path => "distrib"
    package(:zip).include project("designer").package(:war, :classifier => "jboss"), :path => "distrib"
  end
  
end
Something went wrong with that request. Please try again.