-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
110 lines (93 loc) · 3.42 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<?xml version="1.0"?>
<project basedir="." default="compile">
<property name="jsroot" location="resources/js"/>
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="build/compiler.jar"/>
<target name="cleanup">
<delete file="${jsroot}/dialogs/all_dialogs.js"/>
<delete file="${jsroot}/libs.js"/>
</target>
<target name="concat_libs" depends="cleanup">
<concat destfile="${jsroot}/dialogs/all_dialogs.js" fixlastline="yes">
<fileset dir="${jsroot}/dialogs">
<include name="*.js"/>
</fileset>
</concat>
<concat destfile="${jsroot}/libs.js" fixlastline="yes">
<filelist dir="${jsroot}">
<file name="jquery/jquery-1.8.2.js"/>
<file name="jquery/jquery-ui-1.9.0.custom.js"/>
<file name="jquery/jquery.layout-latest.min.js"/>
<file name="jquery/jquery.contextmenu.js"/>
<file name="jquery/jquery.tmpl.min.js"/>
<file name="jquery/jquery.watermark.min.js"/>
<file name="tinymce/jscripts/tiny_mce/jquery.tinymce.js"/>
<file name="jstree/jquery.hotkeys.js"/>
<file name="jstree/jquery.jstree.js"/>
<file name="snippet/jquery.snippet.min.js"/>
<file name="moment/moment.min.js"/>
</filelist>
</concat>
</target>
<target name="concat" depends="concat_libs">
<delete file="${jsroot}/cwrcwriter_src.js"/>
<concat destfile="${jsroot}/cwrcwriter_src.js" fixlastline="yes">
<filelist dir="${jsroot}">
<file name="editor.js"/>
<file name="dialogs/all_dialogs.js"/>
<file name="dialog.js"/>
<file name="utilities.js"/>
<file name="filemanager.js"/>
<file name="structuretree.js"/>
<file name="entitieslist.js"/>
<file name="entities_model.js"/>
<file name="relations.js"/>
<file name="validation.js"/>
</filelist>
</concat>
</target>
<target name="compile" depends="concat_libs">
<jscomp compilationLevel="simple" warning="quiet"
debug="false" output="${jsroot}/cwrcwriter.js">
<externs dir="${jsroot}/jquery">
<file name="jquery-1.8.2.js"/>
<file name="jquery-ui-1.9.0.custom.min.js"/>
<file name="jquery.contextmenu.js"/>
<file name="jquery.tmpl.min.js"/>
<file name="jquery.watermark.min.js"/>
</externs>
<externs dir="${jsroot}/tinymce/jscripts/tiny_mce">
<file name="tiny_mce.js"/>
<file name="jquery.tinymce.js"/>
</externs>
<externs dir="${jsroot}/jstree">
<file name="jquery.jstree.js"/>
<file name="jquery.hotkeys.js"/>
</externs>
<externs dir="${jsroot}/snippet">
<file name="jquery.snippet.min.js"/>
</externs>
<externs dir="${jsroot}/moment">
<file name="moment.min.js"/>
</externs>
<sources dir="${jsroot}">
<file name="editor.js"/>
<file name="dialogs/all_dialogs.js"/>
<file name="dialog.js"/>
<file name="utilities.js"/>
<file name="filemanager.js"/>
<file name="structuretree.js"/>
<file name="entitieslist.js"/>
<file name="entities_model.js"/>
<file name="relations.js"/>
<file name="validation.js"/>
</sources>
</jscomp>
<concat destfile="${jsroot}/cwrcwriter_and_libs.js" fixlastline="yes">
<filelist dir=".">
<file name="${jsroot}/libs.js"/>
<file name="${jsroot}/cwrcwriter.js"/>
</filelist>
</concat>
</target>
</project>