Start adding zip target to prebuild for nant

afrisby
Sean Dague 2007-09-15 10:17:24 +00:00
parent f8ddf7429e
commit 5a94814bbe
1 changed files with 520 additions and 506 deletions

View File

@ -490,6 +490,20 @@ namespace Prebuild.Core.Targets
ss.WriteLine(" </target>");
ss.WriteLine();
// sdague - make a zip target
ss.WriteLine(" <target name=\"zip\" description=\"\">");
ss.WriteLine(" <zip zipfile=\"{0}.zip\">", solution.Name);
ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">");
ss.WriteLine(" <include name=\"${project::get-base-directory()}/**/*.cs\" />");
// ss.WriteLine(" <include name=\"${project.main.dir}/**/*\" />");
ss.WriteLine(" </fileset>");
ss.WriteLine(" </zip>");
ss.WriteLine(" <echo message=\"Building zip target\" />");
ss.WriteLine(" </target>");
ss.WriteLine();
ss.WriteLine(" <target name=\"clean\" description=\"\">");
ss.WriteLine(" <echo message=\"Deleting all builds from all configurations\" />");
//ss.WriteLine(" <delete dir=\"${dist.dir}\" failonerror=\"false\" />");