This repository has been archived by the owner on Mar 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
50 lines (42 loc) · 1.84 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="LANshock 2.0" default="" basedir=".">
<description></description>
<!-- Relative location of source folder -->
<property name="source" value="./" />
<!-- Relative location of deploy folder -->
<property name="deploy" value="../lanshock_deploy/" />
<!-- delete old archives -->
<echo message="Removing old deploy files" />
<delete dir="${deploy}lanshock/" failonerror="false"/>
<delete file="${deploy}lanshock.tar" failonerror="false"/>
<delete file="${deploy}lanshock.tar.gz" failonerror="false"/>
<echo message="Removed old deploy files" />
<echo message="Aggregation files from ${source}" />
<!-- copy files to deploy directory -->
<copy todir="${deploy}/lanshock">
<fileset dir="${source}">
<exclude name="**/.svn"/>
<exclude name=".settings/"/>
<exclude name="framework/reactor/project/lanshock/**"/>
<exclude name="model/**"/>
<exclude name="scaffolding/generated/**"/>
<exclude name="storage/public/modules/**"/>
<exclude name="storage/secure/config/lanshock/config.ini.cfm"/>
<exclude name="storage/secure/config/reactor/reactor.xml"/>
<exclude name="storage/secure/logs/**.log"/>
<exclude name="storage/secure/modules/**"/>
<exclude name="storage/secure/scaffolding/**"/>
<exclude name="storage/secure/parsed/fusebox/**.cfm"/>
<exclude name=".htaccess.**"/>
<exclude name=".project"/>
<exclude name="build.xml"/>
<exclude name="fusebox.xml.cfm"/>
</fileset>
</copy>
<echo message="Copied files to ${deploy}lanshock" />
<!-- build new archives -->
<echo message="Creating lanshock.tar.gz" />
<tar tarfile="${deploy}lanshock.tar" basedir="${deploy}lanshock"/>
<gzip zipfile="${deploy}lanshock.tar.gz" src="${deploy}lanshock.tar"/>
<echo message="Created lanshock.tar.gz" />
</project>