Permalink
Browse files

chaning nuget-package-clean task no longer completely delete entire o…

…utput folder
  • Loading branch information...
1 parent fc733e6 commit e4a59c6dd46220936f40f7d04410a0c87cf26ac1 @sbohlen sbohlen committed Jan 11, 2013
Showing with 8 additions and 2 deletions.
  1. +8 −2 Spring.build
View
@@ -1759,8 +1759,14 @@ Commandline Examples:
<target name="clean-nuget-package-dir" depends="check-nuget-package-dir" description="Cleans the NuGet package directory">
<echo message="Cleaning the ${nuget.package.dir} NuGet package directory."/>
- <delete dir="${nuget.package.dir}" if="${directory::exists(nuget.package.dir)}"/>
- <mkdir dir="${nuget.package.dir}"/>
+
+ <delete failonerror="false" if="${directory::exists(nuget.package.dir)}">
+ <fileset basedir="${nuget.package.dir}">
+ <include name="*.nupkg"/>
+ </fileset>
+ </delete>
+
+ <mkdir dir="${nuget.package.dir}" if="${directory::exists(nuget.package.dir)}"/>
</target>
<target name="set-nuget-package-version" >

0 comments on commit e4a59c6

Please sign in to comment.