-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
62 lines (53 loc) · 2.29 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="Matware" default="site" basedir=".">
<!-- Do initialization stuff -->
<target name="site" >
<property file="build.properties" override="true"/>
<property name="matware.src" value="./" />
<property name="extension" value="${comp.name}" />
<if>
<equals arg1="${extension}" arg2="" />
<then>
<fail message="Extension not specified, use -Dextension=EXTENSION" />
</then>
<else>
<phingcall target="Matware" />
</else>
</if>
</target>
<target name="Matware" description="Copies files to a existing joomla site">
<echo message="---------------- प्यार Matware प्यार ----------------"/>
<!-- Libraries -->
<copy todir="${www.dir}/libraries" overwrite="true">
<fileset dir="${matware.src}/libraries">
<include name="**" />
</fileset>
</copy>
<!-- For discover install we need to place the libraries manifests in the right folder -->
<echo message="Copying library manifiest..." />
<copy file="${matware.src}/libraries/${extension}/${extension}.xml"
tofile="${www.dir}/administrator/manifests/libraries/${extension}.xml" overwrite="true" />
<!-- Copy Package Manifest -->
<echo message="Copying package manifiest..." />
<copy file="${matware.src}/pkg_${extension}.xml"
tofile="${www.dir}/administrator/manifests/packages/pkg_${extension}.xml" overwrite="true" />
<!-- Plugins -->
<copy todir="${www.dir}/plugins" overwrite="true">
<fileset dir="${matware.src}/plugins">
<include name="**" />
</fileset>
</copy>
<!-- Webservices API -->
<copy todir="${www.dir}/api" overwrite="true">
<fileset dir="${matware.src}/api">
<include name="**" />
</fileset>
</copy>
<!-- Plugins - Languages -->
<copy todir="${www.dir}/administrator/language" overwrite="true">
<fileset dir="${matware.src}/plugins/system/matware/language">
<include name="**" />
</fileset>
</copy>
</target>
</project>