Skip to content

Commit 7edf3c2

Browse files
Cleanup build artifacts before setting up
1 parent 160ecc5 commit 7edf3c2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build.xml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project name="phpunit" default="install-dependencies">
3-
<target name="setup" depends="install-dependencies"/>
2+
<project name="phpunit" default="setup">
3+
<target name="setup" depends="clean-build-artifacts,install-dependencies"/>
44

5-
<target name="clean" description="Cleanup build artifacts">
5+
<target name="clean" description="Cleanup build artifacts and vendor directory" depends="clean-build-artifacts,clean-vendor">
6+
</target>
7+
8+
<target name="clean-build-artifacts" description="Cleanup build artifacts">
69
<delete dir="${basedir}/build/artifacts"/>
710
<delete dir="${basedir}/build/tmp"/>
11+
</target>
12+
13+
<target name="clean-vendor" description="Cleanup vendor directory">
814
<delete dir="${basedir}/vendor"/>
915
</target>
1016

0 commit comments

Comments
 (0)