Reverted setting build artifact to parent directory, deleting olds

It goes against the directory isolation in build environments,
which shouldn't produce state outside of their own folder
(e.g. in terms of TeamCity build artifacts).

Removing existing files, to avoid double archiving
on subsequent runs.
This commit is contained in:
Ingo Schommer 2012-10-30 18:12:51 +01:00
parent cceee896b6
commit 0318d35ac1

View File

@ -149,7 +149,7 @@ Options:
<if>
<equals arg1="${archivetype}" arg2="tar.gz" casesensitive="false" trim="true"/>
<then>
<tar destfile="${basedir}/../${archivefilename}" compression="gzip">
<tar destfile="${basedir}/${archivefilename}" compression="gzip">
<fileset dir="${tmp}">
<include name="**/**" />
</fileset>
@ -161,7 +161,7 @@ Options:
<if>
<equals arg1="${archivetype}" arg2="zip" casesensitive="false" trim="true"/>
<then>
<zip destfile="${basedir}/../${archivefilename}">
<zip destfile="${basedir}/${archivefilename}">
<fileset dir="${tmp}">
<include name="**/**" />
</fileset>
@ -272,8 +272,10 @@ Options:
</else>
</if>
<delete file="${basedir}/${archivename}.${archivetype}" quiet="true" />
<phingCall target="archiveTask" />
<echo msg="Created archive in: ${basedir}/${archivename}" />
<echo msg="Created archive in: ${basedir}/${archivename}.${archivetype}" />
</target>