forked from lizardoluis/omtg-designer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
89 lines (68 loc) · 2.47 KB
/
build.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
<project>
<property name="src.dir" value="www" />
<property name="yuicompressor" value="libs/yuicompressor-2.4.8.jar" />
<!-- Copy css folder to dist and compress-->
<target name="copyCss" description="Copies and compresses css to dist folder.">
<echo message="Copying and compressing css." />
<java jar="${yuicompressor}" fork="true">
<!-- input path for JS files -->
<arg value="${src.dir}/css/style.css" />
<!-- output path for JS files -->
<arg value="--type" />
<arg value="css" />
<!-- output path for JS files -->
<arg value="-o" />
<arg value="${src.dir}/css/style-min.css" />
<classpath>
<pathelement location="${yuicompressor}" />
</classpath>
</java>
</target>
<!-- Copy js folder to dist and compress-->
<target name="copyJs" description="Copies and compresses js to dist folder.">
<echo message="Copying and compressing js." />
<concat destfile="${src.dir}/js/script.js">
<filelist dir="${src.dir}/js">
<file name="app.js" />
<file name="models/omtg/attribute.js" />
<file name="models/omtg/diagram.js" />
<file name="models/tool.js" />
<file name="models/toolbox.js" />
<file name="models/canvas.js" />
<file name="collections/omtg/attributes.js" />
<file name="collections/omtg/diagrams.js" />
<file name="collections/tools.js" />
<file name="collections/toolboxes.js" />
<file name="views/omtg/attribute-view.js" />
<file name="views/omtg/diagram-view.js" />
<file name="views/omtg/diagrameditor-view.js" />
<file name="views/omtg/connectioneditor-view.js" />
<file name="views/tool-view.js" />
<file name="views/tools-view.js" />
<file name="views/toolbox-view.js" />
<file name="views/toolboxes-view.js" />
<file name="views/xmlimporter-view.js" />
<file name="views/navbar-view.js" />
<file name="views/canvas-view.js" />
<file name="views/about-view.js" />
<file name="plumb.js" />
<file name="xml-parser.js" />
</filelist>
</concat>
<java jar="${yuicompressor}" fork="true">
<!-- input path for JS files -->
<arg value="${src.dir}/js/script.js" />
<!-- output path for JS files -->
<arg value="--type" />
<arg value="js" />
<!-- output path for JS files -->
<arg value="-o" />
<arg value="${src.dir}/js/script-min.js" />
<classpath>
<pathelement location="${yuicompressor}" />
</classpath>
</java>
<!-- delete original file -->
<delete file="${src.dir}/js/script.js" />
</target>
</project>