-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaven.xml
221 lines (176 loc) · 7.74 KB
/
maven.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
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<project
xmlns:j="jelly:core"
xmlns:maven="jelly:maven"
>
<postGoal name="java:compile">
<!-- Compile RMI stubs -->
<rmic base="${maven.build.dest}" classname="org.springframework.remoting.rmi.RmiInvocationWrapper"/>
<copy todir="${maven.build.dest}">
<fileset dir="${pom.build.sourceDirectory}">
<include name="**/*.xml"/>
<include name="**/*.dtd"/>
</fileset>
</copy>
</postGoal>
<postGoal name="test:compile">
<echo>Copying test files from ${pom.build.unitTestSourceDirectory}</echo>
<copy todir="${maven.test.dest}">
<fileset dir="${pom.build.unitTestSourceDirectory}">
<include name="**/*.xml"/>
<include name="**/*.properties"/>
</fileset>
</copy>
</postGoal>
<!--
| Build the additional jars. The full spring.jar will be built as the default project target
-->
<preGoal name="jar:jar">
<!--
| The spring-beans jar.
-->
<jar jarfile="${maven.build.dir}/spring-beans-${pom.currentVersion}.jar">
<fileset dir="${maven.build.dest}">
<include name="org/springframework/beans/**"/>
<include name="org/springframework/core/**"/>
<include name="org/springframework/util/*"/>
</fileset>
</jar>
<!--
| The spring-jdbc jar.
-->
<jar jarfile="${maven.build.dir}/spring-jdbc-${pom.currentVersion}.jar">
<fileset dir="${maven.build.dest}">
<include name="org/springframework/aop/**"/>
<include name="org/springframework/beans/**"/>
<include name="org/springframework/core/**"/>
<include name="org/springframework/dao/**"/>
<include name="org/springframework/jdbc/**"/>
<include name="org/springframework/jndi/**"/>
<include name="org/springframework/orm/**"/>
<include name="org/springframework/transaction/**"/>
<include name="org/springframework/util/*"/>
</fileset>
</jar>
</preGoal>
<!--
| Copy the additional jars to the distribution binary directory
-->
<preGoal name="dist:prepare-bin-filesystem">
<!-- TODO -->
</preGoal>
<goal name="preparedocs" description="Extra preparation for the documentation">
</goal>
<goal name="docclean" description="Delete temporary and distribution directories for docs">
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/pdf"/>
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html_single"/>
<delete quiet="true" dir="${basedir}/${dist.ref.dir}/html"/>
</goal>
<goal name="docpdf" prereqs="preparedocs" description="Compile reference documentation to pdf">
<mkdir dir="${basedir}/${dist.ref.dir}/pdf/images"/>
<copy todir="${basedir}/${dist.ref.dir}/pdf/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<!-- ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} -->
${systemScope.setProperty('javax.xml.transform.TransformerFactory','com.icl.saxon.TransformerFactoryImpl')}
<!--
<style basedir="${basedir}/${doc.ref.dir}/src/"
extension=".fop"
destdir="${dist.ref.dir}/pdf"
style="${basedir}/${doc.ref.dir}/styles/fopdf.xsl"
includes="index.xml"
/>
-->
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<sysproperty key="java.awt.headless" value="true"/>
<!-- classpath refid="maven.dependency.classpath"/ -->
<arg value="-o"/>
<arg value="${basedir}/${doc.ref.dir}/pdf/index.fop"/>
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/fopdf.xsl"/>
</java>
<java classname="org.apache.fop.apps.Fop" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<sysproperty key="java.awt.headless" value="true"/>
<!-- classpath refid="maven.dependency.classpath"/ -->
<arg value="${basedir}/${doc.ref.dir}/pdf/index.fop"/>
<arg value="${basedir}/${doc.ref.dir}/pdf/spring-reference.pdf"/>
</java>
<delete file="${dist.ref.dir}/pdf/index.fop"/>
</goal>
<goal name="dochtml" prereqs="preparedocs" description="Compile reference documentation to chunked html">
<!-- ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')} -->
${systemScope.setProperty('javax.xml.transform.TransformerFactory','com.icl.saxon.TransformerFactoryImpl')}
<mkdir dir="${doc.ref.dir}/html/images"/>
<copy todir="${basedir}/${doc.ref.dir}/html/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<!--
<style basedir="${basedir}/${doc.ref.dir}/src/"
destdir="${doc.ref.dir}/html"
style="${basedir}/${doc.ref.dir}/styles/html_chunk.xsl"
includes="index.xml"
>
<classpath refid="maven.dependency.classpath"/>
</style>
-->
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${dist.ref.dir}/html/">
<classpath>
<fileset dir="${basedir}/${doc.ref.dir}/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<!-- classpath refid="maven.dependency.classpath"/ -->
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/html_chunk.xsl"/>
</java>
</goal>
<goal name="dochtmlsingle" description="Compile reference documentation to single html">
<mkdir dir="${dist.ref.dir}/html_single/images"/>
<copy todir="${basedir}/${dist.ref.dir}/html_single/images">
<fileset dir="${basedir}/${doc.ref.dir}/src/images">
<include name="*.gif"/>
<include name="*.svg"/>
<include name="*.jpg"/>
</fileset>
</copy>
<java classname="com.icl.saxon.StyleSheet" fork="true" dir="${doc.ref.dir}">
<classpath>
<fileset dir="${basedir}/${doc.dir}/reference/lib">
<include name="**/*.jar"/>
</fileset>
</classpath>
<arg value="-o"/>
<arg value="${basedir}/${dist.ref.dir}/html_single/index.html"/>
<arg value="${basedir}/${doc.ref.dir}/src/index.xml"/>
<arg value="${basedir}/${doc.ref.dir}/styles/html.xsl"/>
</java>
</goal>
<goal name="refdoc" prereqs="dochtml,dochtmlsingle,docpdf" description="Generate and copy reference documentation">
<mkdir dir="${maven.build.dir}/docs"/>
<mkdir dir="${maven.build.dir}/docs/ref"/>
<copy todir="${maven.build.dir}/docs/ref">
<fileset dir="${doc.ref.dir}/html"/>
</copy>
<copy file="${doc.ref.dir}/pdf/spring-reference.pdf"
todir="${maven.build.dir}/docs/ref"/>
<copy file="${doc.ref.dir}/html_single/index.html"
tofile="${maven.build.dir}/docs/ref/spring-reference.html"/>
</goal>
</project>