-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
107 lines (92 loc) · 4.74 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="com_joomcck" basedir="." default="dist" description="Build package file for JoomCCK Pro version">
<!-- Define properties for version and releasespath -->
<property name="version" value="5.9.0" />
<property name="releasespath" value="E:\JoomCoder\joomcck"/>
<target name="dirbuild">
<!-- Language files component -->
<copy file="./language/en-GB/com_joomcck.ini" todir="${releasespath}/build/components/com_joomcck/site/language/en-GB" />
<copy file="./administrator/language/en-GB/com_joomcck.sys.ini" todir="${releasespath}/build/components/com_joomcck/admin/language/en-GB" />
<!-- Language files modules -->
<copy file="./language/en-GB/mod_joomcck_submitbutton.ini" todir="${releasespath}/build/modules/mod_joomcck_submitbutton/language/en-GB" />
<!-- Component files -->
<copy todir="${releasespath}/build/components/com_joomcck/admin">
<fileset dir="./administrator/components/com_joomcck">
<exclude name="install.php"></exclude>
<exclude name="joomcck.xml"></exclude>
</fileset>
</copy>
<copy todir="${releasespath}/build/components/com_joomcck/site">
<fileset dir="./components/com_joomcck">
</fileset>
</copy>
<copy todir="${releasespath}/build/components/com_joomcck/media">
<fileset dir="./media/com_joomcck">
<exclude name="uploads/**"></exclude>
</fileset>
</copy>
<copy file="./administrator/components/com_joomcck/joomcck.xml" todir="${releasespath}/build/components/com_joomcck" />
<copy file="./administrator/components/com_joomcck/install.php" todir="${releasespath}/build/components/com_joomcck" />
<!-- Modules files -->
<copy todir="${releasespath}/build/modules/mod_joomcck_category">
<fileset dir="./modules/mod_joomcck_category"></fileset>
</copy>
<copy todir="${releasespath}/build/modules/mod_joomcck_filters">
<fileset dir="./modules/mod_joomcck_filters"></fileset>
</copy>
<copy todir="${releasespath}/build/modules/mod_joomcck_records">
<fileset dir="./modules/mod_joomcck_records"></fileset>
</copy>
<copy todir="${releasespath}/build/modules/mod_joomcck_submitbutton">
<fileset dir="./modules/mod_joomcck_submitbutton"></fileset>
</copy>
<copy todir="${releasespath}/build/modules/mod_joomcck_tagcloud">
<fileset dir="./modules/mod_joomcck_tagcloud"></fileset>
</copy>
<!-- Plugin files -->
<copy todir="${releasespath}/build/plugins/plg_content_glossary">
<fileset dir="./plugins/content/glossary"></fileset>
</copy>
<copy todir="${releasespath}/build/plugins/plg_content_joomcck">
<fileset dir="./plugins/content/joomcck"></fileset>
</copy>
<copy todir="${releasespath}/build/plugins/plg_system_joomcck">
<fileset dir="./plugins/system/joomcck"></fileset>
</copy>
<copy todir="${releasespath}/build/plugins/plg_search_joomcck">
<fileset dir="./plugins/search/joomcck"></fileset>
</copy>
<copy todir="${releasespath}/build/plugins/plg_finder_joomcck">
<fileset dir="./plugins/finder/joomcck"></fileset>
</copy>
<!-- Library files -->
<copy todir="${releasespath}/build/libraries/mint">
<fileset dir="./libraries/mint"></fileset>
</copy>
<!-- Package files -->
<echo msg="7 - Copying Install and main xml files in root" />
<copy file="./pkg_joomcck.script.php" todir="${releasespath}/build" />
<copy file="./pkg_joomcck.xml" todir="${releasespath}/build" />
</target>
<target name="dist" depends="dirbuild">
<!-- update version tag -->
<reflexive>
<fileset dir="${releasespath}/build/.">
<include pattern="*.xml" />
<include pattern="*/*.xml" />
<include pattern="*/*/*.xml" />
</fileset>
<filterchain>
<replaceregexp>
<regexp pattern="##VERSION##" replace="${version}"/>
</replaceregexp>
</filterchain>
</reflexive>
<!-- Build Archive -->
<delete file="${releasespath}/com_joomcck_v${version}_j4.zip" verbose="true"/>
<zip destfile="${releasespath}/com_joomcck_v${version}_j4.zip" basedir="${releasespath}/build"></zip>
<echo msg="Files copied and compressed in build directory OK!" />
<delete dir="${releasespath}/build" verbose="true" failonerror="true" />
<echo msg="Build File removed" />
</target>
</project>