Skip to content

Commit 02a87f8

Browse files
committed
Merge pull request #126 from heiglandreas/feature/optimizeDeployScript
Optimizes build-script
2 parents 400d1c2 + 1316330 commit 02a87f8

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

Diff for: build.xml

+2-11
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">

Diff for: deploy_exclude.property

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.git
2+
doc
3+
tests
4+
src/config/**

Diff for: deploy_include.property

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
LICENSE
2+
README.md
3+
src/**
4+
vendor/**

Diff for: deploy_post.sh

+1-1
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)