-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
87 lines (78 loc) · 3.03 KB
/
build.xml
File metadata and controls
87 lines (78 loc) · 3.03 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<!-- ===========================================================================
# $BaseName$
# $Id$
#
# Description:
# Build file for NXS Core
#
# @link http://nxsys.org/spaces/onx
# @link https://onx.zulipchat.com
#
# @package Nxsys
# @subpackage Core
# @license http://nxsys.org/spaces/onx/wiki/license
# Please see the license.txt file or the url above for full copyright and license information.
# @copyright Copyright 2018 Nexus Systems, inc.
#
# @author Chris R. Feamster <cfeamster@nxsysts.com>
# @author $LastChangedBy$
#
# @version $Revision$
#
============================================================================ -->
<project name="nxsys/core" default="dist">
<!-- ============================================ -->
<!-- Target: prepare -->
<!-- ============================================ -->
<target name="prepare">
<if>
<not>
<isset property="ver" />
</not>
<then>
<echo msg="NOTICE: Version is not set, distributables will not be created." />
</then>
</if>
<echo msg="Making directory ./build" />
<mkdir dir="./build" />
<echo msg="Making directory ./build/ExtensibleSystemClasses" />
<mkdir dir="./build/ExtensibleSystemClasses" />
<echo msg="Making directory ./build/docs" />
<mkdir dir="./build/docs" />
</target>
<target name="escgen">
<echo msg="Generating ESC..." />
<exec command="php bin\esc-generator.php" checkreturn="true" passthru="false" />
</target>
<!-- ============================================ -->
<!-- Target: build -->
<!-- ============================================ -->
<target name="build" depends="prepare,escgen">
<echo msg="Copying files to build directory..." />
<copy file="./etc/esc/ICompleteStreamWrapper.php" tofile="./build/ExtensibleSystemClasses/ICompleteStreamWrapper.php" />
<copy file="./etc/esc/AbstractCompleteStreamWrapper.php" tofile="./build/ExtensibleSystemClasses/AbstractCompleteStreamWrapper.php" />
<copy file="./etc/esc/DecoratingTrait.php" tofile="./build/ExtensibleSystemClasses/DecoratingTrait.php" />
<copy file="./etc/esc/IhasTraitDecorating.php" tofile="./build/ExtensibleSystemClasses/IhasTraitDecorating.php" />
<copy file="./etc/composer.json" tofile="./build/composer.json" />
</target>
<!-- ============================================ -->
<!-- (DEFAULT) Target: dist -->
<!-- ============================================ -->
<target name="dist" depends="build" if="ver">
<echo msg="Creating archive..." />
<zip destfile="./build/build.zip">
<fileset dir="./build">
<include name="**" />
</fileset>
</zip>
<echo msg="Files copied and compressed in build directory OK!" />
<echo msg="Moving to tag for version ${ver}" />
<copy todir="../tags/${ver}">
<fileset dir="./build">
<include name="**"></include>
<exclude name="**/.svn/**"></exclude>
</fileset>
</copy>
</target>
</project>