-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
45 lines (34 loc) · 1.55 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="dist" name="freidi-website">
<property name="project.version" value="0.1"/>
<property name="project.app" value="freidi-website"/>
<property name="app.dir" value="app"/>
<property name="dist.dir" value="dist"/>
<tstamp/>
<target name="clean">
<delete dir="${dist.dir}"/>
</target>
<target name="dist" depends="clean">
<mkdir dir="${dist.dir}"/>
<copydir src="${app.dir}" dest="${dist.dir}" excludes="**/sites/** **/sites-en/** **/templates/**"/>
<copy todir="${dist.dir}">
<fileset dir="${app.dir}/sites" includes="**/*.html" excludes="**/ex01-*.html"/>
<filterchain>
<concatfilter prepend="${app.dir}/templates/_htmlstart.html" append="${app.dir}/templates/_htmlend.html" />
</filterchain>
</copy>
<copy todir="${dist.dir}">
<fileset dir="${app.dir}/sites" includes="**/ex01-*.html **/*.xml"/>
</copy>
<mkdir dir="${dist.dir}/en/"/>
<copy todir="${dist.dir}/en/">
<fileset dir="${app.dir}/sites-en" includes="**/*.html" excludes="**/ex01-*.html"/>
<filterchain>
<concatfilter prepend="${app.dir}/templates/_htmlstart_en.html" append="${app.dir}/templates/_htmlend_en.html" />
</filterchain>
</copy>
<copy todir="${dist.dir}/en/">
<fileset dir="${app.dir}/sites-en" includes="**/ex01-*.html **/*.xml"/>
</copy>
</target>
</project>