-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
70 lines (67 loc) · 2.72 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="JTL-Connector-Shopware-Endpoint" default="release">
<property file="./build-config.yaml" />
<target name="build">
<delete dir="${tmpdir}/dist" />
<mkdir dir="${tmpdir}/dist" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/plugins" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/config" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/logs" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/db" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/tmp" />
<mkdir dir="${tmpdir}/dist/Frontend/jtlconnector/validation" />
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/validation">
<fileset dir="./config">
<include name=".htaccess" />
</fileset>
</copy>
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/config">
<fileset dir="./config">
<include name=".htaccess" />
<include name="config.json.example" />
<include name="features.json.example" />
</fileset>
</copy>
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/logs">
<fileset dir="./logs">
<include name=".htaccess" />
</fileset>
</copy>
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/db">
<fileset dir="./db">
<include name=".htaccess" />
</fileset>
</copy>
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/tmp">
<fileset dir="./tmp">
<include name=".htaccess" />
</fileset>
</copy>
<copy todir="${tmpdir}/dist/Frontend/jtlconnector/">
<fileset dir="./">
<include name="Bootstrap.php" />
<include name="Connector.php" />
<include name="ConnectorBackend.php" />
<include name="LICENSE" />
<include name="CHANGELOG.md" />
<include name="plugin.png" />
<include name="build-config.yaml" />
<include name="src/" />
<include name="vendor/" />
</fileset>
</copy>
</target>
<target name="package" depends="build">
<fileset dir="${tmpdir}/dist" id="zipFiles">
<include name="Frontend/**" />
</fileset>
<delete file="./${zipname}${version}.zip"> </delete>
<zip destfile="./${zipname}${version}.zip">
<fileset refid="zipFiles" />
</zip>
</target>
<target name="release" depends="package">
<delete dir="${tmpdir}/dist" />
</target>
</project>