-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild-oldBb9.1.xml
118 lines (104 loc) · 4.45 KB
/
build-oldBb9.1.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Blackboard 9 Building Block SP11+" default="make" basedir=".">
<property name="build" location="public_html/WEB-INF/classes" />
<property name="warname" value="equella-bb91.war" />
<property name="websrc" location="public_html" />
<property name="lib" location="public_html/WEB-INF/lib" />
<property name="bbstaging" location="${staging}/bblock/public_html" />
<property name="wsbuild" location="classes"/>
<property name="wsstaging" location="${staging}/webservice"/>
<property name="wsdocstaging" location="${staging}/webservicedoc"/>
<property name="wsdoczipname" value="documentation.zip"/>
<property name="wsjarname" value="webservice.jar"/>
<!-- set classpath for javadocs -->
<path id="wsclasspath">
<pathelement path="${wsbuild}"/>
<fileset dir="${External Dependencies.base}">
<include name="bb-platform-*.jar"/>
<include name="log4j*.jar" />
<include name="axis2*.jar" />
<include name="guava*.jar" />
<include name="servlet-api*.jar" />
</fileset>
</path>
<property name="version.properties.destination" location="${build}" />
<target name="make" depends="common.make, wsjavadoc">
<property file="${build}/version.properties" />
<taskdef resource="proguard/ant/task.properties" classpathref="customtasks.classpath" />
<path id="proguard.libraryjars">
<fileset dir="${External Dependencies.base}">
<include name="bb-platform*.jar" />
<include name="log4j*.jar" />
<include name="axis2*.jar" />
<include name="guava*.jar" />
<include name="jackson-core-*.jar" />
<include name="jackson-databind-*.jar" />
<include name="commons-httpclient-*.jar" />
<include name="slf4j-api-*.jar" />
<include name="cxf-bundle-*.jar" />
<include name="neethi-*.jar" />
<include name="xmlschema-core-*.jar" />
</fileset>
</path>
<path id="proguard.injars">
<pathelement path="${wsstaging}"/>
</path>
<!-- debug -->
<property name="myclasspath" refid="proguard.injars"/>
<echo message="Proguard Injars = ${myclasspath}"/>
<proguardconfiguration id="config">
-include ../../../common-build.pro
-dontwarn javax.**,org.apache.log.**,org.apache.avalon.**,org.springframework.**,org.mozilla.javascript.**
-dontnote
</proguardconfiguration>
<proguard obfuscate="false" shrink="true" optimize="true">
<configuration refid="config" />
<injar refid="proguard.injars" />
<libraryjar refid="proguard.libraryjars" />
<outjar file="${wsstaging}/proguarded.jar" />
<keepclasseswithmembers name="com.tle.blackboard.webservice.impl.ZEquellaWebserviceImpl">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.AddItemResult">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.Base">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.Content">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.Course">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.Folder">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.webservice.SearchResult">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.common.content.*">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.common.BbUtil">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.common.SqlUtil">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.common.BbContext">
<method access="public" name="*" />
</keepclasseswithmembers>
<keepclasseswithmembers name="com.tle.blackboard.common.PathUtils">
<method access="public" name="*" />
</keepclasseswithmembers>
</proguard>
<!-- add documentation to webservice jar -->
<jar destfile="${wsstaging}/${wsjarname}">
<zipfileset includes="**/*" src="${wsstaging}/proguarded.jar" />
<fileset dir="${wsdocstaging}">
<include name="${wsdoczipname}" />
</fileset>
</jar>
</target>
</project>