-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
60 lines (51 loc) · 2.04 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="mangapress" default="build">
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare">
<echo msg="Making directory ./build/current/mangapress" />
<mkdir dir="./build/current/mangapress" />
</target>
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build" depends="prepare">
<echo msg="Copying files to build directory..." />
<echo msg="Copying files to ./build/current/mangapress directory..." />
<copy todir="./build/current/mangapress" includeemptydirs="true" >
<fileset dir="." defaultexcludes="true">
<exclude name="build/**" />
<exclude name="vendor/**" />
<exclude name=".git/**" />
<exclude name=".idea/**" />
<exclude name=".gitignore" />
<exclude name=".editorconfig" />
<exclude name="*.xml" />
<exclude name="composer.lock" />
<exclude name="README.md" />
</fileset>
</copy>
<echo msg="Running composer install --no-dev in build directory" />
<exec executable="composer" dir="build/current/mangapress" passthru="yes">
<arg value="install"/>
<arg value="--no-dev"/>
</exec>
<echo msg="Remove composer files..." />
<exec executable="rm" dir="build/current/mangapress" passthru="yes">
<arg value="composer.*" />
</exec>
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<!-- <target name="dist" depends="build">-->
<!-- <echo msg="Creating archive..." />-->
<!-- <tar destfile="./build/current/mangbuild.tar.gz" compression="gzip">-->
<!-- <fileset dir="./build">-->
<!-- <include name="*" />-->
<!-- </fileset>-->
<!-- </tar>-->
<!-- <echo msg="Files copied and compressed in build directory OK!" />-->
<!-- </target>-->
</project>