forked from stcr/subscribe-to-comments-reloaded
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
73 lines (61 loc) · 2.67 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
66
67
68
69
70
71
72
73
<?xml version="1.0" encoding="UTF-8"?>
<!--
Build File to complete automate tasks
Author: Israel Barragan (Reedyseth)
Since: 30-March-2018
Version: 1.0.0
-->
<project name="Subscribe To Comment Reloaded" default="dist">
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare">
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
</target>
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build" depends="prepare">
<echo msg="Copying Bower Components" />
<echo msg="Copying ./src/bower_components/ to ./vendor directory..." />
<!--<mkdir dir="./src/vendor/datatables" />-->
<!--<echo msg="datatables directory created" />-->
<!--<echo msg="Copying Bower Components..." />-->
<copy todir="src/vendor/" >
<fileset dir="./src/bower_components/">
<include pattern="datatables/media/**" />
<include pattern="datatables.net-bs4/css/**" />
<include pattern="datatables.net-bs4/js/**" />
<include pattern="datatables.net-responsive/js/**" />
<include pattern="datatables.net-responsive-bs4/css/**" />
<include pattern="datatables.net-responsive-bs4/js/**" />
<include pattern="bootstrap/dist/**" />
<include pattern="Font-Awesome/web-fonts-with-css/**" />
<include pattern="webui-popover/dist/**" />
</fileset>
</copy>
<reflexive>
<fileset dir=".">
<include pattern="src/options/panel1.php" />
</fileset>
<filterchain>
<replaceregexp>
<regexp pattern="%%VENDOR%%" replace="bower_components"/>
</replaceregexp>
</filterchain>
</reflexive>
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="build">
<echo msg="Creating archive..." />
<!--<tar destfile="./build/build.tar.gz" compression="gzip">-->
<!--<fileset dir="./build">-->
<!--<include name="*" />-->
<!--</fileset>-->
<!--</tar>-->
<!--<echo msg="Files copied and compressed in build directory OK!" />-->
</target>
</project>