-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathBuildFullFramework.xml
116 lines (83 loc) · 4.44 KB
/
BuildFullFramework.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
<!--
Copyright (c) 2019-2020 [Open Lowcode SAS](https://openlowcode.com/)
This program and the accompanying materials are made available under the
terms of the Eclipse Public License 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0 .
SPDX-License-Identifier: EPL-2.0
-->
<project default="jar">
<!-- Those properties should be changed to match your precise installation-->
<property name="javafx.path" value="C:\java8\jfxrt8\"/>
<property name="libraries.path" value="C:\java8\extlib\"/>
<target name="cleanfirstcompile">
<delete dir="./bin/org/openlowcode/" />
</target>
<target name="firstcompile" depends="cleanfirstcompile">
<javac encoding="utf-8" srcdir="./src" destdir="./bin" debug="true" debuglevel="source,lines,vars"
classpath="${javafx.path}jfxrt.jar:${libraries.path}javax.mail.jar:${libraries.path}commons-logging-1.2.jar:${libraries.path}fontbox-2.0.7.jar:${libraries.path}pdfbox-2.0.7.jar:${libraries.path}commons-collections4-4.2.jar:${libraries.path}commons-compress-1.18.jar:${libraries.path}xmlbeans-3.0.2.jar:${libraries.path}poi-4.0.1.jar:${libraries.path}poi-ooxml-4.0.1.jar:${libraries.path}poi-ooxml-schemas-4.0.1.jar"
includeantruntime="false">
<include name="org/openlowcode/design/**" />
<include name="org/openlowcode/tools/**" />
<include name="org/openlowcode/module/system/design/SystemModule.java" />
<include name="org/openlowcode/module/designer/design/DesignerModule.java" />
<include name="org/openlowcode/tools/stats/CountLinesOfCode.java" />
<include name="org/openlowcode/OLcVersionGenerator.java" />
</javac>
</target>
<target name="generateversion" depends="firstcompile">
<java classname="org.openlowcode.OLcVersionGenerator" classpath="./bin/" />
</target>
<target name="generatesystemmodule" depends="generateversion">
<java classname="org.openlowcode.design.module.Module" classpath="./bin/">
<arg value="org.openlowcode.module.system.design.SystemModule" />
</java>
</target>
<target name="generatedesigner" depends="generatesystemmodule">
<java classname="org.openlowcode.design.module.Module" classpath="./bin/">
<arg value="org.openlowcode.module.designer.design.DesignerModule" />
</java>
</target>
<target name="generatelinecount" depends="generatedesigner">
<java classname="org.openlowcode.tools.stats.CountLinesOfCode" classpath="./bin/">
<arg value="./src" />
<arg value="./src/olccodemetrics.csv" />
</java>
</target>
<target name="cleansecondcompile" depends="generatelinecount">
<delete dir="./bin/org/openlowcode/" />
</target>
<target name="secondcompile" depends="cleansecondcompile">
<javac encoding="utf-8" srcdir="./src" destdir="./bin" debug="true" debuglevel="source,lines,vars"
classpath="${javafx.path}jfxrt.jar:${libraries.path}javax.mail.jar:${libraries.path}commons-logging-1.2.jar:${libraries.path}fontbox-2.0.7.jar:${libraries.path}pdfbox-2.0.7.jar:${libraries.path}commons-collections4-4.2.jar:${libraries.path}commons-compress-1.18.jar:${libraries.path}xmlbeans-3.0.2.jar:${libraries.path}poi-4.0.1.jar:${libraries.path}poi-ooxml-4.0.1.jar:${libraries.path}poi-ooxml-schemas-4.0.1.jar">
<include name="org/openlowcode/**" />
</javac>
</target>
<target name="cleanjar" depends="secondcompile">
<delete file="./bin/OLcServer.jar" />
<delete file="./bin/OLcUpdater.jar" />
<delete file="./bin/OLcClient.jar" />
<copy todir="./bin/css">
<fileset dir="./src/css"/>
</copy>
</target>
<target name="jar" depends="cleanjar">
<jar destfile="./bin/OLcServer.jar">
<fileset dir="./bin/" includes="org/openlowcode/**" />
<fileset dir="./src/" includes="css/*.css" />
</jar>
<jar destfile="./bin/OLcClient.jar">
<fileset dir="./bin/" includes="org/openlowcode/OLcVersion.class" />
<fileset dir="./bin/" includes="org/openlowcode/client/**" />
<fileset dir="./bin/" includes="org/openlowcode/tools/**" />
<fileset dir="./bin/" includes="css/*.css" />
<fileset dir="./bin/" includes="css/*.png" />
</jar>
<jar destfile="./bin/OLcUpdater.jar">
<fileset dir="./bin/" includes="org/openlowcode/OLcVersion.class" />
<fileset dir="./bin/" includes="org/openlowcode/updater/**" />
<fileset dir="./bin/" includes="org/openlowcode/tools/**" />
<fileset dir="./bin/" includes="css/*.css" />
<fileset dir="./bin/" includes="css/*.png" />
</jar>
</target>
</project>