-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmodule_ztozprov.xml
More file actions
123 lines (104 loc) · 6.05 KB
/
Copy pathmodule_ztozprov.xml
File metadata and controls
123 lines (104 loc) · 6.05 KB
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* ***** BEGIN LICENSE BLOCK *****
* Zimbra Collaboration Suite CSharp Client
* Copyright (C) 2009, 2013, 2014, 2016 Synacor, Inc.
*
* The contents of this file are subject to the Common Public Attribution License Version 1.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at: https://www.zimbra.com/license
* The License is based on the Mozilla Public License Version 1.1 but Sections 14 and 15
* have been added to cover use of software over a computer network and provide for limited attribution
* for the Original Developer. In addition, Exhibit A has been modified to be consistent with Exhibit B.
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied.
* See the License for the specific language governing rights and limitations under the License.
* The Original Code is Zimbra Open Source Web Client.
* The Initial Developer of the Original Code is Zimbra, Inc. All rights to the Original Code were
* transferred by Zimbra, Inc. to Synacor, Inc. on September 14, 2015.
*
* All portions of the code are Copyright (C) 2009, 2013, 2014, 2016 Synacor, Inc. All Rights Reserved.
* ***** END LICENSE BLOCK *****
-->
<project name="module_ztozprov" default="compile.module.ztozprov">
<dirname property="module.ztozprov.basedir" file="module_ztozprov.xml"/>
<property name="module.jdk.home.ztozprov" value="${project.jdk.home}"/>
<property name="module.jdk.bin.ztozprov" value="${project.jdk.bin}"/>
<property name="module.jdk.classpath.ztozprov" value="${project.jdk.classpath}"/>
<property name="compiler.args.ztozprov" value="${compiler.args}"/>
<property name="ztozprov.output.dir" value="${module.ztozprov.basedir}/out/production/ztozprov"/>
<property name="ztozprov.testoutput.dir" value="${module.ztozprov.basedir}/out/test/ztozprov"/>
<path id="ztozprov.module.bootclasspath">
<!-- Paths to be included in compilation bootclasspath -->
</path>
<path id="ztozprov.module.classpath">
<path refid="${module.jdk.classpath.ztozprov}"/>
<pathelement location="${module.ztozprov.basedir}/../../Program Files/JetBrains/IntelliJ IDEA 7.0.3/lib/javaee.jar"/>
<path refid="library.lib.classpath"/>
</path>
<path id="ztozprov.runtime.module.classpath">
<path refid="${module.jdk.classpath.ztozprov}"/>
<pathelement location="${ztozprov.output.dir}"/>
<pathelement location="${ztozprov.testoutput.dir}"/>
<pathelement location="${module.ztozprov.basedir}/../../Program Files/JetBrains/IntelliJ IDEA 7.0.3/lib/javaee.jar"/>
<path refid="library.lib.classpath"/>
</path>
<patternset id="excluded.from.module.ztozprov">
<patternset refid="ignored.files"/>
</patternset>
<patternset id="excluded.from.compilation.ztozprov">
<patternset refid="excluded.from.module.ztozprov"/>
</patternset>
<path id="ztozprov.module.sourcepath">
<dirset dir="${module.ztozprov.basedir}">
<include name="src"/>
</dirset>
</path>
<target name="compile.module.ztozprov" depends="compile.module.ztozprov.production,compile.module.ztozprov.tests" description="Compile module ztozprov"/>
<target name="compile.module.ztozprov.production" description="Compile module ztozprov; production classes">
<mkdir dir="${ztozprov.output.dir}"/>
<javac2 destdir="${ztozprov.output.dir}" debug="${compiler.debug}" nowarn="${compiler.generate.no.warnings}" memorymaximumsize="${compiler.max.memory}" fork="true" executable="${module.jdk.bin.ztozprov}/javac">
<compilerarg line="${compiler.args.ztozprov}"/>
<bootclasspath refid="ztozprov.module.bootclasspath"/>
<classpath refid="ztozprov.module.classpath"/>
<src refid="ztozprov.module.sourcepath"/>
<patternset refid="excluded.from.compilation.ztozprov"/>
</javac2>
<copy todir="${ztozprov.output.dir}">
<fileset dir="${module.ztozprov.basedir}/src">
<patternset refid="compiler.resources"/>
<type type="file"/>
</fileset>
</copy>
</target>
<target name="compile.module.ztozprov.tests" depends="compile.module.ztozprov.production" description="compile module ztozprov; test classes" unless="skip.tests"/>
<target name="clean.module.ztozprov" description="cleanup module">
<delete dir="${ztozprov.output.dir}"/>
<delete dir="${ztozprov.testoutput.dir}"/>
</target>
<property name="ztozprovjavaeeapplication.dir.exploded" value="${module.ztozprov.basedir}/out/exploded/ztozprovEar"/>
<target name="j2ee.build.ztozprovjavaeeapplication" depends="compile.module.ztozprov" description="Build configured Java EE directories and archives for facet 'javaEEApplication'">
<antcall target="j2ee.build.exploded.ztozprovjavaeeapplication">
<param name="j2ee.dir.exploded" value="${ztozprovjavaeeapplication.dir.exploded}"/>
</antcall>
</target>
<!-- Call the target to build exploded directory for module 'javaEEApplication'.
Path to the exploded directory is specified by parameter 'j2ee.dir.exploded' -->
<target name="j2ee.build.exploded.ztozprovjavaeeapplication" description="Build exploded directory for facet 'javaEEApplication'">
<copy file="${module.ztozprov.basedir}/META-INF/application.xml" tofile="${j2ee.dir.exploded}/META-INF/application.xml"/>
</target>
<!-- Call the target to build ear archive for module 'javaEEApplication'.
Path to the archive file is specified by parameter 'j2ee.path.jar' -->
<target name="j2ee.build.jar.ztozprovjavaeeapplication" description="Build Java EE archive for facet 'javaEEApplication'">
<dirname property="jar.dir" file="${j2ee.path.jar}"/>
<mkdir dir="${jar.dir}"/>
<jar destfile="${j2ee.path.jar}" duplicate="preserve">
<manifest>
<attribute name="Created-By" value="IntelliJ IDEA"/>
<attribute name="Manifest-Version" value="1.0"/>
</manifest>
<zipfileset file="${module.ztozprov.basedir}/META-INF/application.xml" prefix="META-INF"/>
</jar>
</target>
</project>