-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
58 lines (47 loc) · 2.14 KB
/
Copy pathbuild.xml
File metadata and controls
58 lines (47 loc) · 2.14 KB
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
<?xml version="1.0" encoding="UTF-8" ?>
<project name="Template Build" default="">
<property file="build.properties"/>
<property name="path.build" value="${src}/build"/>
<property name="path.languages" value="${path.joomla}/language"/>
<target name="deploy" description="Deploy template code to a pre-existing Joomla site.">
<delete dir="${path.joomla}/templates/bootstrapbase" includeemptydirs="true" failonerror="true"/>
<copy todir="${path.joomla}/templates/bootstrapbase">
<fileset dir="${src}/templates/bootstrapbase" defaultexcludes="false">
<exclude name="language"/>
</fileset>
</copy>
<copy todir="${path.joomla}">
<fileset dir="${src}/templates/bootstrapbase" defaultexcludes="true">
<include name="language/**"/>
</fileset>
</copy>
</target>
<target name="clean" description="Cleans the build path.">
<delete dir="${path.build}"/>
</target>
<target name="package" description="Create an installable package." depends="clean">
<mkdir dir="${path.build}"/>
<copy todir="${path.build}" overwrite="true">
<fileset dir="./templates/bootstrapbase" defaultexcludes="false">
<exclude name="build/**"/>
<exclude name="build*.xml"/>
<exclude name="build.properties*"/>
</fileset>
</copy>
<foreach list="${overrides.exclude}" param="exclude" target="remove_override"/>
<zip destfile="${path.build}/tpl_bootstrapbase.zip" basedir="${path.build}"/>
<delete includeemptydirs="true">
<fileset dir="${path.build}" includes="**/**">
<exclude name="*.zip"/>
</fileset>
</delete>
</target>
<target name="help" description="Prints this help.">
<exec command="phing -f ${phing.file} -l" outputProperty="phing_targets"/>
<echo msg="Call phing with the following targets:"/>
<echo>${phing_targets}</echo>
</target>
<target name="remove_override">
<delete dir="${path.build}/html/${exclude}"/>
</target>
</project>