forked from HttpErrorPages/HttpErrorPages
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
43 lines (35 loc) · 1.24 KB
/
build.xml
File metadata and controls
43 lines (35 loc) · 1.24 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="HttpErrorPages" default="pages" basedir=".">
<!-- AN-contrib !-->
<taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<target name="css">
<!-- Less CSS build (WEB CSS) !-->
<echo message="Building LESS Files.." />
<exec executable="lessc">
<arg line="assets/Layout.less" />
<arg line="assets/Layout.css" />
<arg line="--clean-css" />
</exec>
</target>
<!-- Generate Pages using default config !-->
<target name="pages" depends="css">
<!-- Generate Pages !-->
<exec executable="php">
<arg value="generator.php" />
</exec>
<!-- create package !-->
<zip destfile="dist/pages.zip" basedir="dist" includes="*.html" />
<tar destfile="dist/pages.tar" basedir="dist" includes="*.html" />
</target>
<!-- Generate Docs Pages !-->
<target name="docs" depends="css">
<!-- Generate Pages !-->
<exec executable="php">
<arg value="generator.php" />
<arg value="docs/config.ini" />
</exec>
</target>
<!-- Full Rebuild !-->
<target name="full" depends="css,docs,pages">
</target>
</project>