-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
executable file
·150 lines (114 loc) · 4.84 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
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Podcast Suite" basedir="." default="copy">
<property name="srcdir" value="${project.basedir}" override="true" />
<!-- Start with the main package -->
<property name="component" value="com_podcast" override="true" />
<fileset dir="${srcdir}" id="front_component_files">
<include name="components/${component}/**" />
<include name="language/en-GB/en-GB.${component}*" />
</fileset>
<fileset dir="${srcdir}" id="admin_component_files">
<include name="administrator/components/${component}/**" />
<include name="administrator/language/en-GB/en-GB.${component}*" />
</fileset>
<fileset dir="${srcdir}/administrator/components/${component}/" id="component_manifest">
<include name="podcast.xml" />
</fileset>
<fileset dir="${srcdir}/administrator/components/${component}/" id="component_install_files">
<include name="install.podcast.php" />
<include name="uninstall.podcast.php" />
</fileset>
<fileset dir="${srcdir}/modules/mod_podcast/" id="podcast_module">
<include name="**" />
</fileset>
<fileset dir="${srcdir}/language/en-GB" id="podcast_module_lang">
<include name="en-GB.mod_podcast*" />
</fileset>
<fileset dir="${srcdir}" id="podcast_media">
<include name="media/com_podcast/**" />
</fileset>
<fileset dir="${srcdir}/libraries/getid3/" id="getid3_library">
<include name="**" />
</fileset>
<fileset dir="${srcdir}/libraries/podcast/" id="podcast_library">
<include name="**" />
</fileset>
<fileset dir="${srcdir}/plugins/content/podcast/" id="podcast_content_plugin">
<include name="**" />
</fileset>
<fileset dir="${srcdir}/plugins/editors-xtd/podcastepisode/" id="plg_editorxtd_podcastepisode">
<include name="**" />
</fileset>
<fileset dir="${srcdir}/plugins/editors-xtd/podcastmedia/" id="plg_editorxtd_podcastmedia">
<include name="**" />
</fileset>
<fileset dir="${srcdir}" id="full_package">
<include name="build/com_podcast.zip" />
<include name="build/getid3.zip" />
<include name="build/podcast.zip" />
<include name="build/plg_content_podcast.zip" />
<include name="build/plg_editorxtd_podcastepisode.zip" />
<include name="build/plg_editorxtd_podcastmedia.zip" />
<include name="build/mod_podcast.zip" />
<include name="pkg_podcast.xml" />
</fileset>
<!-- Bundle migrator separately -->
<property name="migrator_component" value="com_migratepodcast" override="true" />
<fileset dir="${srcdir}" id="admin_migratorcomponent_files">
<include name="administrator/components/${migrator_component}/**" />
<include name="administrator/language/en-GB/en-GB.${migrator_component}*" />
</fileset>
<fileset dir="${srcdir}/administrator/components/${migrator_component}/" id="migratorcomponent_manifest">
<include name="migratepodcast.xml" />
</fileset>
<!-- Build packages -->
<target name="copy" description="copy target">
<echo msg="Creating component archive..." />
<delete file="build/com_podcast.zip" quiet="true" />
<zip destfile="build/com_podcast.zip">
<fileset refid="front_component_files" />
<fileset refid="admin_component_files" />
<fileset refid="component_install_files" />
<fileset refid="component_manifest" />
<fileset refid="podcast_media" />
</zip>
<delete file="build/getid3.zip" quiet="true" />
<zip destfile="build/getid3.zip">
<fileset refid="getid3_library" />
</zip>
<delete file="build/podcast.zip" quiet="true" />
<zip destfile="build/podcast.zip">
<fileset refid="podcast_library" />
</zip>
<delete file="build/plg_content_podcast.zip" quiet="true" />
<zip destfile="build/plg_content_podcast.zip">
<fileset refid="podcast_content_plugin" />
</zip>
<delete file="build/plg_editorxtd_podcastepisode.zip" quiet="true" />
<zip destfile="build/plg_editorxtd_podcastepisode.zip">
<fileset refid="plg_editorxtd_podcastepisode" />
</zip>
<delete file="build/plg_editorxtd_podcastmedia.zip" quiet="true" />
<zip destfile="build/plg_editorxtd_podcastmedia.zip">
<fileset refid="plg_editorxtd_podcastmedia" />
</zip>
<delete file="build/mod_podcast.zip" quiet="true" />
<zip destfile="build/mod_podcast.zip">
<fileset refid="podcast_module" />
<fileset refid="podcast_module_lang" />
</zip>
<xmlproperty file="pkg_podcast.xml" keepRoot="false" prefix="manifest" />
<delete file="build/PodcastSuite-${manifest.version}.zip" quiet="true" />
<zip destfile="build/PodcastSuite-${manifest.version}.zip">
<fileset refid="full_package" />
</zip>
<echo msg="Files copied and installable archives created OK!" />
<echo msg="Creating migrator archive..." />
<delete file="build/com_migratepodcast.zip" quiet="true" />
<zip destfile="build/com_migratepodcast.zip">
<fileset refid="admin_migratorcomponent_files" />
<fileset refid="migratorcomponent_manifest" />
</zip>
<echo msg="Files copied and installable archives created OK!" />
</target>
</project>