-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildfile
executable file
·165 lines (141 loc) · 7.35 KB
/
buildfile
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# Generated by Buildr 1.2.10, change to your liking
repositories.remote << 'http://mirrors.sunsite.dk/maven2'
repositories.remote << 'http://repository.codehaus.org'
repositories.remote << 'http://www.oqube.com/maven2'
repositories.remote << 'http://www.ibiblio.org/maven2'
repositories.remote << 'http://mvn.carbonfive.com/public'
#repositories.remote << 'http://archiva.openqa.org/repository/releases'
#repositories.remote << 'http://nexus.openqa.org/content/repositories/releases'
repositories.remote << 'http://nexus.openqa.org/content/repositories/snapshots'
require 'dependencies.rb'
UMLSPEED=artifact(UMLSPEED_NAME).from(file('./bumblebee_uml/umlspeed-0.19/umlspeed.jar'))
MUSE=[artifact(MUSE_NAME).from(file('./bumblebee/muse-parser/muse-parser-1.0-rc3.jar')),
artifact(LIFL_NAME).from(file('./bumblebee/muse-parser/parsing-1.0.1.jar')),
artifact(JHIGHLIGHT_NAME).from(file('./bumblebee/muse-parser/jhighlight-1.0.jar'))
]
#BUMBLEBEE_DEP = [BUMBLEBEE, MUSE_PARSER, PMD]
#BUMBLEBEE_JUNIT4_DEP = [BUMBLEBEE_DEP, JUNIT]
module Buildr
class ZipTask
def initialize(*args) #:nodoc:
self.compression_level = Zlib::DEFAULT_COMPRESSION
super
end
end
end
desc 'Bumblebee'
define 'com.agical.bumblebee' do
project.group = 'com.agical.bumblebee'
project.version = BUMBLEBEE_VERSION
project.compile.options.source = "1.5"
project.compile.options.target = "1.5"
repositories.release_to = "file:///tmp/bumblebee_upload_repo"
desc 'Bumblebee is a framework for generating useful, human-friendly documentation from executing code.'
define 'bumblebee' do
project.eclipse.name = 'bumblebee'
compile.with MUSE, MUSE_PARSER, JUNIT,PMD
test.include 'com.agical.bumblebee.TestAll'
test.resources.from _('src/test/resources')
package :jar, :id => 'bumblebee'
package :sources, :id => 'bumblebee'
package :javadoc, :id => 'bumblebee'
end
desc 'This is an extension to Bumblebee that creates a Ruby script from the data recieved
on the collector and from the comments in classes and methods involved. The script is executed
and the resulting output can be processed further if neccessary.'
define 'bumblebee_jruby' do
project.eclipse.name = 'bumblebee_jruby'
compile.with BUMBLEBEE, JRUBY, JUNIT
test.include 'com.agical.bumblebee.jruby.TestAll'
resources.from _('src/main/resources')
package :jar, :id => 'bumblebee_jruby'
package :sources, :id => 'bumblebee_jruby'
package :javadoc, :id => 'bumblebee_jruby'
end
desc 'This is an extension to use JUnit4 for executing the code that Bumblebee collects data from.'
define 'bumblebee_junit4' do
project.eclipse.name = 'bumblebee_junit4'
compile.with BUMBLEBEE, JUNIT
test.include 'com.agical.bumblebee.junit4.TestAll'
package :jar, :id => 'bumblebee_junit4'
package :sources, :id => 'bumblebee_junit4'
package :javadoc, :id => 'bumblebee_junit4'
end
desc 'This is a UML extension to draw diagrams of different kinds'
define 'bumblebee_uml' do
project.eclipse.name = 'bumblebee_uml'
compile.with BUMBLEBEE, BUMBLEBEE_JUNIT4, BUMBLEBEE_JRUBY,
JUNIT, MUSE, MUSE_PARSER, JRUBY, PMD, BATIK, UMLSPEED
resources.from _('src/main/resources')
test.with _('src/test/resources')
test.include 'com.agical.bumblebee.uml.TestAll'
package :jar, :id => 'bumblebee_uml'
package :sources, :id => 'bumblebee_uml'
package :javadoc, :id => 'bumblebee_uml'
end
desc 'This is an extension to use Bumblebee with Selenium'
define 'bumblebee_selenium' do
project.eclipse.name = 'bumblebee_selenium'
compile.with BUMBLEBEE, BUMBLEBEE_JUNIT4, BUMBLEBEE_JRUBY,
JUNIT, MUSE, MUSE_PARSER, JRUBY, PMD, SELENIUM
test.include 'com.agical.bumblebee.selenium.TestAll'
package :jar, :id => 'bumblebee_selenium'
package :sources, :id => 'bumblebee_selenium'
package :javadoc, :id => 'bumblebee_selenium'
end
desc 'This is an extension to use Bumblebee with Swing'
define 'bumblebee_swing' do
project.eclipse.name = 'bumblebee_swing'
compile.with BUMBLEBEE, BUMBLEBEE_JUNIT4, BUMBLEBEE_JRUBY,
JUNIT, MUSE, MUSE_PARSER, JRUBY, PMD
test.include 'com.agical.bumblebee.swing.TestAll'
package :jar, :id => 'bumblebee_swing'
package :sources, :id => 'bumblebee_swing'
package :javadoc, :id => 'bumblebee_swing'
end
desc 'This module contains acceptance tests for the JUnit 4 and JRuby modules.'
define 'bumblebee_junit4_acceptance' do
project.eclipse.name = 'bumblebee_junit4_acceptance'
test.include 'com.agical.bumblebee.acceptance.AllTest'
compile.with BUMBLEBEE, BUMBLEBEE_JUNIT4, BUMBLEBEE_JRUBY, BUMBLEBEE_UML,BUMBLEBEE_SWING, BUMBLEBEE_SELENIUM,
JUNIT, MUSE, MUSE_PARSER, JRUBY,PMD,UMLSPEED,BATIK,SELENIUM
test.with JETTY, _('src/test/resources')
core_no_junit = package(:jar, :id=>'bumblebee-core-no-junit')
compile.classpath.each {|c| core_no_junit.merge(c).
exclude('junit/**/*.*').
exclude('org/junit/**/*.*').
exclude('org/apache/batik/**/*.*').
exclude('org/apache/batik/**/*').
exclude('com/thoughtworks/selenium/**/*.*').
exclude('org/openqa/selenium/**/*.*').
exclude('org/seleniumhq/selenium/**/*.*').
exclude('META-INF/MANIFEST.MF')}
core = package(:jar, :id=>'bumblebee-core')
compile.classpath.each {|c| core.
merge(c).
exclude('org/apache/batik/**/*.*').
exclude('org/apache/batik/**/*').
exclude('org/openqa/selenium/**/*.*').
exclude('org/seleniumhq/selenium/**/*.*').
exclude('META-INF/MANIFEST.MF')}
['bumblebee', 'bumblebee_jruby', 'bumblebee_junit4','bumblebee_uml', 'bumblebee_selenium','bumblebee_swing'].each do |proj|
package(:zip, :id => 'bumblebee-all').
include(_("../" + proj + "/*.*"), :path=>proj).
include(_("../" + proj + "/src"), :path=>proj).
include(_("../" + proj + "/target/javadoc"), :path=>proj)
end
package(:zip, :id => 'bumblebee-all').
include(_("target/site/*"), :path=>"doc").
include(compile.classpath, :path=>"lib").
include(_("LICENSE.txt"), :path=>".").
include(_("../bumblebee_junit4_acceptance/*.*"), :path=>"bumblebee_junit4_acceptance").
include(_("../bumblebee_junit4_acceptance/src"), :path=>"bumblebee_junit4_acceptance").
include(_("../bumblebee_junit4_acceptance/backlog.txt"), :path=>"bumblebee_junit4_acceptance").
include(_("../bumblebee_junit4_acceptance/background.txt"), :path=>"bumblebee_junit4_acceptance").
include(_("../bumblebee_junit4_acceptance/releases.txt"), :path=>"bumblebee_junit4_acceptance").
include(_("../buildfile"), :path=>".")
# two packagings here because we want the zip, but buildr won't write the .classpath fil
# for zip packaging, hence the dummy jar
package(:jar, :id => 'bumblebee_junit4_acceptance')
end
end