forked from icode/DocViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docviwer.xml
229 lines (201 loc) · 11.5 KB
/
docviwer.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
222
223
224
225
226
227
228
229
<?xml version="1.0" encoding="UTF-8"?>
<project name="docviwer" default="all">
<property file="docviwer.properties"/>
<!-- Uncomment the following property if no tests compilation is needed -->
<!--
<property name="skip.tests" value="true"/>
-->
<!-- Compiler options -->
<property name="compiler.debug" value="on"/>
<property name="compiler.generate.no.warnings" value="off"/>
<property name="compiler.args" value=""/>
<property name="compiler.max.memory" value="128m"/>
<patternset id="ignored.files">
<exclude name="**/CVS/**"/>
<exclude name="**/SCCS/**"/>
<exclude name="**/RCS/**"/>
<exclude name="**/rcs/**"/>
<exclude name="**/.DS_Store/**"/>
<exclude name="**/.svn/**"/>
<exclude name="**/.pyc/**"/>
<exclude name="**/.pyo/**"/>
<exclude name="**/*.pyc/**"/>
<exclude name="**/*.pyo/**"/>
<exclude name="**/.git/**"/>
<exclude name="**/*.hprof/**"/>
<exclude name="**/_svn/**"/>
<exclude name="**/.hg/**"/>
<exclude name="**/.sbas/**"/>
<exclude name="**/.IJI.*/**"/>
<exclude name="**/vssver.scc/**"/>
<exclude name="**/vssver2.scc/**"/>
<exclude name="**/*.lib/**"/>
<exclude name="**/*~/**"/>
<exclude name="**/__pycache__/**"/>
<exclude name="**/.bundle/**"/>
</patternset>
<patternset id="library.patterns">
<include name="*.war"/>
<include name="*.ear"/>
<include name="*.zip"/>
<include name="*.swc"/>
<include name="*.egg"/>
<include name="*.jar"/>
</patternset>
<patternset id="compiler.resources">
<include name="**/?*.properties"/>
<include name="**/?*.xml"/>
<include name="**/?*.gif"/>
<include name="**/?*.png"/>
<include name="**/?*.jpeg"/>
<include name="**/?*.jpg"/>
<include name="**/?*.html"/>
<include name="**/?*.dtd"/>
<include name="**/?*.tld"/>
<include name="**/?*.ftl"/>
</patternset>
<!-- JDK definitions -->
<property name="jdk.bin.1.6" value="${jdk.home.1.6}/bin"/>
<path id="jdk.classpath.1.6">
<fileset dir="${jdk.home.1.6}">
<include name="jre/lib/plugin.jar"/>
<include name="jre/lib/management-agent.jar"/>
<include name="jre/lib/rt.jar"/>
<include name="jre/lib/javaws.jar"/>
<include name="jre/lib/alt-string.jar"/>
<include name="jre/lib/resources.jar"/>
<include name="jre/lib/alt-rt.jar"/>
<include name="jre/lib/jce.jar"/>
<include name="jre/lib/jsse.jar"/>
<include name="jre/lib/deploy.jar"/>
<include name="jre/lib/charsets.jar"/>
<include name="jre/lib/ext/dnsns.jar"/>
<include name="jre/lib/ext/sunjce_provider.jar"/>
<include name="jre/lib/ext/localedata.jar"/>
<include name="jre/lib/ext/sunpkcs11.jar"/>
</fileset>
</path>
<property name="project.jdk.home" value="${jdk.home.1.6}"/>
<property name="project.jdk.bin" value="${jdk.bin.1.6}"/>
<property name="project.jdk.classpath" value="jdk.classpath.1.6"/>
<!-- Project Libraries -->
<path id="library.common.classpath">
<fileset dir="${basedir}/lib/common">
<patternset refid="library.patterns"/>
</fileset>
</path>
<path id="library.itext.classpath">
<fileset dir="${basedir}/lib/itext">
<patternset refid="library.patterns"/>
</fileset>
</path>
<path id="library.j2ee1.4.classpath">
<fileset dir="${basedir}/lib/j2ee1.4">
<patternset refid="library.patterns"/>
</fileset>
</path>
<path id="library.ooo.classpath">
<fileset dir="${basedir}/lib/ooo">
<patternset refid="library.patterns"/>
</fileset>
</path>
<!-- Application Server Libraries -->
<!-- Register Custom Compiler Taskdefs -->
<property name="javac2.home" value="${idea.home}/lib"/>
<path id="javac2.classpath">
<pathelement location="${javac2.home}/javac2.jar"/>
<pathelement location="${javac2.home}/jdom.jar"/>
<pathelement location="${javac2.home}/asm.jar"/>
<pathelement location="${javac2.home}/asm-commons.jar"/>
<pathelement location="${javac2.home}/jgoodies-forms.jar"/>
</path>
<target name="register.custom.compilers">
<taskdef name="javac2" classname="com.intellij.ant.Javac2" classpathref="javac2.classpath"/>
<taskdef name="instrumentIdeaExtensions" classname="com.intellij.ant.InstrumentIdeaExtensions" classpathref="javac2.classpath"/>
</target>
<!-- Modules -->
<import file="${basedir}/docviewerapi/module_docviewerapi.xml"/>
<import file="${basedir}/docviewerflex/module_docviewerflex.xml"/>
<import file="${basedir}/docviewer/module_docviewer.xml"/>
<target name="init" description="Build initialization">
<!-- Perform any build initialization in this target -->
</target>
<target name="clean" depends="clean.module.docviewerapi, clean.module.docviewerflex, clean.module.docviewer, clean.artifact.docviewer" description="cleanup all"/>
<target name="build.modules" depends="init, clean, compile.module.docviewerapi, compile.module.docviewerflex, compile.module.docviewer" description="build all modules"/>
<target name="init.artifacts">
<property name="artifacts.temp.dir" value="${basedir}/__artifacts_temp"/>
<property name="artifact.output.docviewer" value="${basedir}/out/artifacts/docviewer"/>
<mkdir dir="${artifacts.temp.dir}"/>
<property name="temp.jar.path.docviewerapi.jar" value="${artifacts.temp.dir}/docviewerapi.jar"/>
</target>
<target name="clean.artifact.docviewer" description="clean docviewer artifact output">
<delete dir="${artifact.output.docviewer}"/>
</target>
<target name="artifact.docviewer" depends="init.artifacts, compile.module.docviewer, compile.module.docviewerapi" description="Build 'docviewer' artifact">
<mkdir dir="${artifact.output.docviewer}"/>
<jar destfile="${temp.jar.path.docviewerapi.jar}" duplicate="preserve" filesetmanifest="mergewithoutmain">
<zipfileset dir="${docviewerapi.output.dir}"/>
</jar>
<mkdir dir="${artifact.output.docviewer}/WEB-INF"/>
<mkdir dir="${artifact.output.docviewer}/WEB-INF/classes"/>
<copy todir="${artifact.output.docviewer}/WEB-INF/classes">
<fileset dir="${docviewer.output.dir}"/>
</copy>
<mkdir dir="${artifact.output.docviewer}/WEB-INF/classes/config"/>
<copy file="${basedir}/docviewerapi/src/config/doc-viewer.properties" tofile="${artifact.output.docviewer}/WEB-INF/classes/config/doc-viewer.properties"/>
<copy file="${basedir}/docviewerapi/src/config/office-convert.properties" tofile="${artifact.output.docviewer}/WEB-INF/classes/config/office-convert.properties"/>
<copy file="${basedir}/docviewerapi/src/config/pdf-convert.properties" tofile="${artifact.output.docviewer}/WEB-INF/classes/config/pdf-convert.properties"/>
<copy file="${basedir}/docviewerapi/src/log4j.properties" tofile="${artifact.output.docviewer}/WEB-INF/classes/log4j.properties"/>
<mkdir dir="${artifact.output.docviewer}/WEB-INF/lib"/>
<copy file="${temp.jar.path.docviewerapi.jar}" tofile="${artifact.output.docviewer}/WEB-INF/lib/docviewerapi.jar"/>
<copy file="${basedir}/lib/itext/bcmail-jdk15-146.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/bcmail-jdk15-146.jar"/>
<copy file="${basedir}/lib/itext/bcprov-jdk15-146.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/bcprov-jdk15-146.jar"/>
<copy file="${basedir}/lib/itext/bctsp-jdk15-146.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/bctsp-jdk15-146.jar"/>
<copy file="${basedir}/lib/itext/itext.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/itext.jar"/>
<copy file="${basedir}/lib/itext/itext-xtra-5.1.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/itext-xtra-5.1.1.jar"/>
<copy file="${basedir}/lib/itext/itext-hyph-xml.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/itext-hyph-xml.jar"/>
<copy file="${basedir}/lib/itext/itext-asian.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/itext-asian.jar"/>
<copy file="${basedir}/lib/itext/itext-asiancmaps.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/itext-asiancmaps.jar"/>
<copy file="${basedir}/lib/ooo/jurt-3.0.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/jurt-3.0.1.jar"/>
<copy file="${basedir}/lib/ooo/jodconverter-cli-2.2.2.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/jodconverter-cli-2.2.2.jar"/>
<copy file="${basedir}/lib/ooo/ridl-3.0.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/ridl-3.0.1.jar"/>
<copy file="${basedir}/lib/ooo/jodconverter-2.2.2.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/jodconverter-2.2.2.jar"/>
<copy file="${basedir}/lib/ooo/unoil-3.0.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/unoil-3.0.1.jar"/>
<copy file="${basedir}/lib/ooo/xstream-1.3.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/xstream-1.3.1.jar"/>
<copy file="${basedir}/lib/ooo/juh-3.0.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/juh-3.0.1.jar"/>
<copy file="${basedir}/lib/ooo/jodconverter-2.2.2.zip" tofile="${artifact.output.docviewer}/WEB-INF/lib/jodconverter-2.2.2.zip"/>
<copy file="${basedir}/lib/ooo/jodconverter-core-3.0-beta-4.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/jodconverter-core-3.0-beta-4.jar"/>
<copy file="${basedir}/lib/ooo/ridl-3.2.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/ridl-3.2.1.jar"/>
<copy file="${basedir}/lib/ooo/unoil-3.2.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/unoil-3.2.1.jar"/>
<copy file="${basedir}/lib/ooo/juh-3.2.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/juh-3.2.1.jar"/>
<copy file="${basedir}/lib/ooo/jurt-3.2.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/jurt-3.2.1.jar"/>
<copy file="${basedir}/lib/common/log4j-1.2.16.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/log4j-1.2.16.jar"/>
<copy file="${basedir}/lib/common/commons-lang-2.3.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/commons-lang-2.3.jar"/>
<copy file="${basedir}/lib/common/commons-io-1.4.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/commons-io-1.4.jar"/>
<copy file="${basedir}/lib/common/commons-logging-1.1.1.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/commons-logging-1.1.1.jar"/>
<copy file="${basedir}/lib/common/slf4j-jdk14-1.5.6.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/slf4j-jdk14-1.5.6.jar"/>
<copy file="${basedir}/lib/common/json-20090211.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/json-20090211.jar"/>
<copy file="${basedir}/lib/common/slf4j-api-1.5.6.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/slf4j-api-1.5.6.jar"/>
<copy file="${basedir}/lib/common/commons-cli-1.2.jar" tofile="${artifact.output.docviewer}/WEB-INF/lib/commons-cli-1.2.jar"/>
<copy todir="${artifact.output.docviewer}">
<fileset dir="${basedir}/docviewer/web"/>
</copy>
<mkdir dir="${artifact.output.docviewer}/WEB-INF"/>
<copy todir="${artifact.output.docviewer}/WEB-INF">
<fileset dir="${basedir}/docviewer/web/WEB-INF"/>
</copy>
<mkdir dir="${artifact.output.docviewer}/WEB-INF"/>
<copy file="${basedir}/docviewer/web/WEB-INF/web.xml" tofile="${artifact.output.docviewer}/WEB-INF/web.xml"/>
<copy todir="${artifact.output.docviewer}">
<fileset dir="${basedir}/docviewer/src"/>
</copy>
<copy todir="${artifact.output.docviewer}">
<fileset dir="${basedir}/etc"/>
</copy>
</target>
<target name="build.all.artifacts" depends="artifact.docviewer" description="Build all artifacts">
<!-- Delete temporary files -->
<delete dir="${artifacts.temp.dir}"/>
</target>
<target name="all" depends="build.modules, build.all.artifacts" description="build all"/>
</project>