forked from flagbit/Magento-ChangeAttributeSet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
52 lines (44 loc) · 2.03 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Flagbit_ChangeAttributeSet" default="deploy-dev.local" basedir=".">
<property file="build.properties"/>
<property file="build.default.properties"/>
<property name="docdir" value="${basedir}/doc"/>
<property name="srcdir" value="${basedir}/src"/>
<property name="targetdir" value="${dev.local.deployDir}"/>
<property name="builddir" value="${basedir}/build"/>
<target name="prepare">
<replaceregexp file="${basedir}/package.xml"
match="(<version>.*?<(release)>).*?(</\2>.*?<(api)>).*?(</\4>.*?</version>)"
replace="\1${package.version}\3${package.version}\5" flags="gs" />
</target>
<target name="package" depends="prepare" description="Creates a PEAR package">
<copy file="${basedir}/package.xml" tofile="${srcdir}/package.xml"/>
<exec dir='${srcdir}/' executable="${pear}">
<arg value="mpx"/>
</exec>
<copy file="${srcdir}/package.xml" tofile="${basedir}/package.xml"/>
<exec dir="${srcdir}" executable="${pear}">
<arg value="mage-package"/>
</exec>
<delete file="${srcdir}/package.xml"/>
<move file="${srcdir}/${ant.project.name}-${package.version}.tgz" todir="${builddir}"/>
</target>
<target name="deploy-dev.local">
<copy todir="${dev.local.deployDir}" overwrite="true" verbose="true">
<fileset dir="${srcdir}">
<exclude name="doc/**"/>
<include name="**/*"/>
<modified/>
<exclude name="**/.svn"/>
<exclude name=".buildpath"/>
<exclude name=".project"/>
<exclude name=".settings"/>
<exclude name="cache.properties"/>
<exclude name="build.default.properties"/>
<exclude name="build.properties"/>
<exclude name="build.xml"/>
<exclude name="TODO"/>
</fileset>
</copy>
</target>
</project>