/
build.xml
65 lines (45 loc) · 1.73 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="xws content" default="" basedir=".">
<!--
Fileset for all files in the mod_xws_content folder
-->
<fileset dir="." id="all_module_files">
<include name="**" />
<exclude name="language/**" />
<exclude name="build/**" />
<exclude name="build.xml" />
</fileset>
<fileset dir="./mod_xws_content" id="installer_files">
<include name="**" />
<exclude name=".git/**" />
<exclude name=".translations/**" />
</fileset>
<!--
Defining phing properties
* src: the source forlder
* test: set this to the abolute path to the mod_xws_content's folder in
your joomla testing environment.
-->
<property name="src" value="."/>
<property name="test" value="/home/xarala/projects/ramatou/modules/mod_xws_content" />
<!--
Default Task
* copy source files in test environment
-->
<target name="copy_to_test_env" description="targetting dev environment">
<echo message="Running build.xml. Copying files from dev to test..." />
<copy todir="${test}">
<fileset refid="all_module_files" />
</copy>
<echo message="Files copied from dev to test!" />
</target>
<target name="installer">
<echo msg="Deleting old archive" />
<delete file="build/build.tar.gz" />
<echo msg="Creating xws content archive..." />
<tar destfile="build/build.tar.gz" compression="gzip">
<fileset refid="installer_files" />
</tar>
<echo msg="Files copied and compressed in build directory OK!" />
</target>
</project>