-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
176 lines (146 loc) · 6.42 KB
/
Copy pathbuild.xml
File metadata and controls
176 lines (146 loc) · 6.42 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
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
<?xml version="1.0" encoding="utf-8" ?>
<project name="imcs_layoutengine" default="build" basedir=".">
<property name="gwt.sdk" location="gwt" />
<property name="module_name" location="imcs_layoutengine" />
<path id="project.class.path">
<pathelement location="war/WEB-INF/classes"/>
<pathelement location="src"/>
<pathelement location="${gwt.sdk}/gwt-user.jar"/>
<fileset dir="${gwt.sdk}" includes="gwt-dev*.jar"/>
</path>
<target name="javac" depends="" description="Compile java source">
<mkdir dir="war/WEB-INF/classes"/>
<javac srcdir="src" includes="**" encoding="utf-8"
destdir="war/WEB-INF/classes"
source="1.8" target="1.8" nowarn="true"
debug="true" debuglevel="lines,vars,source">
<classpath>
<path refid="project.class.path"/>
<!-- <pathelement location="d:/tda2/bin/web/lib/jettison-1.3.3.jar"/>-->
</classpath>
</javac>
</target>
<target name="gwtc" depends="javac" description="GWT compile to JavaScript">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
<pathelement location="gwt-awt"/>
</classpath>
<jvmarg value="-Xmx256M"/>
<jvmarg value="-Dgwt.usearchives=false"/>
<!-- <arg value="-XclosureFormattedOutput"/>-->
<arg value="-style"/>
<arg value="DETAILED"/>
<arg value="-optimize"/>
<arg value="9"/>
<arg value="-logLevel"/>
<arg value="TRACE"/> <!--INFO-->
<arg value="imcs_layoutengine"/>
</java>
</target>
<target name="gwttest" description="GWT compile to JavaScript">
<java failonerror="true" fork="true" classname="com.google.gwt.dev.Compiler">
<classpath>
<pathelement location="src"/>
<path refid="project.class.path"/>
<pathelement location="gwt-awt"/>
</classpath>
</java>
</target>
<target name="postprocessmin" depends="gwtc" description="postprocess javascript and cleanup" >
<java failonerror="true" fork="true" classname="com.google.javascript.jscomp.CommandLineRunner">
<classpath>
<pathelement location="js-minimizer/compiler.jar"/>
</classpath>
<arg value="--js_output_file=dist/imcs_layoutengine.min.js"/>
<arg value="war/imcs_layoutengine/imcs_layoutengine.nocache.js"/>
</java>
</target>
<target name="postprocessdev" depends="gwtc" description="postprocess javascript and cleanup" >
<copy file="war/imcs_layoutengine/imcs_layoutengine.nocache.js" tofile="dist/imcs_layoutengine.nocache.js"/>
<echo file="dist/imcs_layoutengine.nocache.js" append="true">
if (typeof module !== "undefined") {
module.exports = {
IMCSDiagramLayout: window.IMCSDiagramLayout,
IMCSDialogLayout: window.IMCSDialogLayout,
default: {
IMCSDiagramLayout: window.IMCSDiagramLayout,
IMCSDialogLayout: window.IMCSDialogLayout
}
};
}
</echo>
</target>
<target name="buildmin" depends="postprocessmin,clean" description="Build this project (minimized)" />
<target name="builddev" depends="postprocessdev,clean" description="Build this project (dev version, not minimized)" />
<target name="build" depends="postprocessdev,postprocessmin,clean" description="Build this project (dev version, not minimized)" />
<!--
<target name="deploy" depends="builddev" description="Build and deploy to webAppOS engines">
<copy file="imcs_layoutengine.js" tofile="../../webappos/engines/DialogEngine.web/web-root/imcs_dialogvisualizer/lib/imcs_layoutengine.js"/>
<copy file="imcs_layoutengine.js" tofile="../../webappos/engines/GraphDiagramEngine.web/web-root/imcs_diagrameditor/lib/imcs_layoutengine.js"/>
<copy file="imcs_layoutengine.COPYING" tofile="../../webappos/engines/DialogEngine.web/web-root/imcs_dialogvisualizer/lib/imcs_layoutengine.COPYING"/>
<copy file="imcs_layoutengine.COPYING" tofile="../../webappos/engines/GraphDiagramEngine.web/web-root/imcs_diagrameditor/lib/imcs_layoutengine.COPYING"/>
</target>
-->
<target name="clean" description="Cleans this project">
<delete dir="war" failonerror="false" />
<delete dir="gwt-unitCache"/>
</target>
<target name="license">
<echo file="imcs_layoutengine.COPYING">IMCS_layout_engine
==================
Files: [imcs_layoutengine.js] and/or [imcs_layoutengine.min.js]
The compiled JavaScript files (imcs_layoutengine.js and imcs_layoutengine.min.js)
incorporate the code of these libraries having different licenses:
* IMCS layout engine Java classes: GPLv2 or later with the classpath exception
* W3C Java classes: W3C liberal license
* GWT-AWT classes: GPLv2 with the classpath exception
These licenses are listed below.
In addition, the tools used at compile time have the following licenses
(you need these tools, if you want to re-compile the Java sources to JavaScript):
* GWT: Google Web Toolkit license
* JavaScript minimizer (Closure Compiler): Apache 2.0 license
IMCS layout engine Java classes
===============================
Files: [*/src/client/*] [*/src/code/lv/*]
Copyright 2013-2018 Institute of Mathematics and Computer Science, University of Latvia (IMCS, UL)
</echo>
<concat destfile="imcs_layoutengine.COPYING" append="true" fixlastline="true">
<fileset dir="src/code/lv/lumii" includes="COPYING"/>
</concat>
<echo file="imcs_layoutengine.COPYING" append="true">
W3C Java classes
================
Files: [*/src/code/org/w3c/*]
</echo>
<concat destfile="imcs_layoutengine.COPYING" append="true" fixlastline="true">
<fileset dir="src/code/org/w3c" includes="COPYING"/>
</concat>
<echo file="imcs_layoutengine.COPYING" append="true">
GWT-AWT
=======
Files: [*/gwt-awt/*]
</echo>
<concat destfile="imcs_layoutengine.COPYING" append="true" fixlastline="true">
<fileset dir="gwt-awt" includes="COPYING"/>
</concat>
<!-- <echo file="imcs_layoutengine.COPYING" append="true">
GWT
===
Files: [*/gwt/*]
</echo>
<concat destfile="imcs_layoutengine.COPYING" append="true" fixlastline="true">
<fileset dir="gwt" includes="COPYING"/>
</concat>
<echo file="imcs_layoutengine.COPYING" append="true">
JavaScript minimizer (Closure Compiler)
=======================================
Files: [*/js-minimizer/*]
</echo>
<concat destfile="imcs_layoutengine.COPYING" append="true" fixlastline="true">
<fileset dir="js-minimizer" includes="COPYING"/>
</concat>
-->
</target>
</project>