-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathBuildfile
76 lines (61 loc) · 2.77 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
require "buildr/xmlbeans"
require "buildr/cobertura"
# Keep this structure to allow the build system to update version numbers.
VERSION_NUMBER = "6.5.07-SNAPSHOT"
require "dependencies.rb"
require "repositories.rb"
desc "Security"
define "security" do
project.version = VERSION_NUMBER
project.group = "org.intalio.security"
compile.options.target = "1.5"
desc "Security Framework"
define "api" do
compile.with AXIOM, CAS_CLIENT, DOM4J, CASTOR, LOG4J, SLF4J, SPRING[:core], XERCES, OPENSSO_CLIENT_SDK, SERVLET_API,JASYPT
test.exclude "*BaseSuite"
test.exclude "*FuncTestSuite"
test.exclude "*LDAPAuthenticationTest*"
test.exclude "*MultipleOuTest*"
test.exclude "*MultipleOuSpecifyTest*"
test.exclude "*LDAPRBACProviderTest*"
test.exclude "*MultipleOuMixSpecifyTest*"
test.with JAXEN, XMLUNIT, INSTINCT
package :jar
end
desc "Security Web-Service Common Library"
define "ws-common" do
compile.with project("api"),APACHE_COMMONS[:httpclient], AXIOM, AXIS2, SLF4J, SPRING[:core], STAX_API ,JASYPT
package :jar
end
desc "Security Web-Service Client"
define "ws-client" do
compile.with projects("api", "ws-common"),JASYPT,AXIOM, AXIS2, SLF4J, STAX_API,APACHE_COMMONS[:httpclient], SPRING[:core], BPMS_COMMON
test.with APACHE_COMMONS[:httpclient], APACHE_COMMONS[:codec], CASTOR, LOG4J, SUNMAIL, XERCES, WS_COMMONS_SCHEMA, WSDL4J, WOODSTOX, CAS_CLIENT, INSTINCT, BPMS_COMMON
# Remember to set JAVA_OPTIONS before starting Jetty
# export JAVA_OPTIONS=-Dorg.intalio.tempo.configDirectory=/home/boisvert/svn/tempo/security-ws2/src/test/resources
# require live Axis2 instance
if ENV["LIVE"] == 'yes'
LIVE_ENDPOINT = "http://localhost:8080/axis2/services/TokenService"
end
if defined? LIVE_ENDPOINT
test.using :properties =>
{ "org.intalio.tempo.security.ws.endpoint" => LIVE_ENDPOINT,
"org.intalio.tempo.configDirectory" => _("src/test/resources") }
end
package(:jar).tap do |jar|
jar.with :meta_inf => project("ws-service").path_to("src/main/axis2/*.wsdl")
end
end
desc "Security Web-Service"
define "ws-service" do
compile.with projects("api", "ws-common"), AXIOM, AXIS2, SLF4J, SPRING[:core], STAX_API
package(:aar).with :libs => [ projects("api", "ws-common"), CASTOR, SLF4J, SPRING[:core], CAS_CLIENT ]
end
desc "Common spring and web related classes"
define "web-nutsNbolts" do
libs = AXIS2, APACHE_COMMONS[:lang], INTALIO_STATS, JSON_NAGGIT, JSP_API, LOG4J, SERVLET_API, SLF4J, SPRING[:core], SPRING[:webmvc], APACHE_COMMONS[:httpclient]
test_libs = libs + [JUNIT, INSTINCT, SPRING_MOCK, AXIOM, project("ws-client"), STAX_API, WSDL4J, WS_COMMONS_SCHEMA]
compile.with projects("api"), test_libs
package :jar
end
end