This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
82 lines (70 loc) · 3.05 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="module-phpmyadmin" basedir=".">
<dirname property="project.basedir" file="${ant.file.module-phpmyadmin}"/>
<property name="root.dir" location="${project.basedir}/.."/>
<property name="build.properties" value="${project.basedir}/build.properties"/>
<property file="${build.properties}"/>
<!-- Neard dev -->
<property name="dev.path" location="${root.dir}/dev"/>
<fail unless="dev.path" message="Project 'dev' not found in ${dev.path}"/>
<echo message="Neard dev found in ${dev.path}" level="debug"/>
<!-- Import build-commons.xml -->
<import file="${dev.path}/build/build-commons.xml"/>
<!-- Import build-bundle.xml -->
<import file="${dev.path}/build/build-bundle.xml"/>
<target name="release.build">
<basename property="bundle.folder" file="${bundle.path}"/>
<replaceproperty src="bundle.folder" dest="bundle.version" replace="${bundle.name}" with=""/>
<delete dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<mkdir dir="${bundle.tmp.prep.path}/${bundle.folder}"/>
<if>
<matches string="${bundle.version}" pattern="^4p"/>
<then>
<foreach target="phpmyadmin.dl" param="phpmyadmin.version" inheritall="true">
<path><dirset dir="${bundle.path}" includes="*"/></path>
</foreach>
</then>
<else>
<antcall target="phpmyadmin.dl">
<param name="phpmyadmin.version" value="${bundle.version}"/>
<param name="phpmyadmin.single" value="true"/>
</antcall>
</else>
</if>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true">
<fileset dir="${bundle.path}" defaultexcludes="yes"/>
</copy>
</target>
<target name="phpmyadmin.dl">
<var name="phpmyadmin.version2" unset="true"/>
<if>
<istrue value="${phpmyadmin.single}"/>
<then>
<property name="phpmyadmin.version2" value="${phpmyadmin.version}"/>
</then>
<else>
<basename property="phpmyadmin.version2" file="${phpmyadmin.version}"/>
</else>
</if>
<getmoduleuntouched name="${bundle.name}" version="${phpmyadmin.version2}" propSrcDest="bundle.srcdest" propSrcFilename="bundle.srcfilename"/>
<propertyregex property="bundle.srcbasename" input="${bundle.srcfilename}" regexp="(.*)\.(.*)" select="\1"/>
<assertfile file="${bundle.srcdest}/${bundle.srcbasename}/config.sample.inc.php"/>
<if>
<istrue value="${phpmyadmin.single}"/>
<then>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}">
<fileset dir="${bundle.srcdest}/${bundle.srcbasename}" excludes="
config.sample.inc.php"
/>
</copy>
</then>
<else>
<copy todir="${bundle.tmp.prep.path}/${bundle.folder}/${phpmyadmin.version2}">
<fileset dir="${bundle.srcdest}/${bundle.srcbasename}" excludes="
config.sample.inc.php"
/>
</copy>
</else>
</if>
</target>
</project>