Skip to content

Commit

Permalink
don't add folder if folder already exists (assume its been added). Th…
Browse files Browse the repository at this point in the history
…is assumes the build will not fail so test the build separately or delete the folder before re-trying
  • Loading branch information
aharui committed Jun 20, 2018
1 parent 1ed01d7 commit 7bbf0d5
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions flex-installer/releasecandidate.xml
Expand Up @@ -223,6 +223,9 @@
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" >
<arg value="up" />
</exec>
<available file="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries"
type="dir"
property="svn.dir.found"/>
<mkdir dir="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries" />
<copy todir="${dist.dev}/flex/installer/${release.version}/rc${rc}" >
<fileset dir="${basedir}/release" >
Expand All @@ -236,10 +239,7 @@
</copy>
<copy file="${basedir}/README" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/READme" />
<copy file="${basedir}/ApproveInstaller.xml" tofile="${dist.dev}/flex/installer/${release.version}/rc${rc}/ApproveInstaller.xml" />
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" >
<arg value="add" />
<arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}" />
</exec>
<antcall target="svnadd" />
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" >
<arg value="commit" />
<arg value="-m" />
Expand All @@ -248,8 +248,32 @@
<antcall target="gittags" />
<antcall target="mail" />
</target>

<target name="gittags" unless="no.tag" >

<target name="svnaddfolder" unless="svn.dir.found">
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="true" >
<arg value="add" />
<arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}" />
</exec>
</target>
<target name="svnadddmg" if="svn.dir.found">
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="false" >
<arg value="add" />
<arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries/*.dmg*" />
</exec>
</target>
<target name="svnaddexe" if="svn.dir.found">
<exec executable="${svn}" dir="${dist.dev}/flex/installer" failonerror="false" >
<arg value="add" />
<arg value="${dist.dev}/flex/installer/${release.version}/rc${rc}/binaries/*.exe*" />
</exec>
</target>
<target name="svnadd">
<antcall target="svnaddfolder" />
<antcall target="svnadddmg" />
<antcall target="svnaddexe" />
</target>

<target name="gittags">
<exec executable="${git}" dir="${basedir}/.." failonerror="true" >
<arg value="tag" />
<arg value="-a" />
Expand Down

0 comments on commit 7bbf0d5

Please sign in to comment.