Skip to content

Commit 1316330

Browse files
committed
Optimizes build-script
1 parent 400d1c2 commit 1316330

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

build.xml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,11 @@
7070
</target>
7171

7272
<target name="createDeployFolder">
73+
<echo>Creating Deployment-Folder</echo>
7374
<mkdir dir="${deploy.local_folder}" />
7475
<copy todir="${deploy.local_folder}">
75-
<fileset dir=".">
76-
<include name="LICENSE" />
77-
<include name="README.md" />
78-
<include name="src/**" />
79-
<include name="vendor/**" />
80-
<exclude name=".git"/>
81-
<exclude name="doc" />
82-
<exclude name="tests" />
83-
</fileset>
76+
<fileset dir="." excludesfile="deploy_exclude.property" includesfile="deploy_include.property" />
8477
</copy>
85-
<!--mkdir dir="log" /-->
86-
<!--mkdir dir="tmp" /-->
8778
</target>
8879

8980
<target name="copyDeployFolderToServer">

deploy_exclude.property

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git
2+
doc
3+
tests
4+
src/config/**

deploy_include.property

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LICENSE
2+
README.md
3+
src/**
4+
vendor/**

deploy_post.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/sh
2-
2+
find /home/phpug/php.ug/src/public/ -maxdepth 1 -mindepth 1 -type d -exec cp -r {} /home/phpug/html/ \;

0 commit comments

Comments
 (0)