Start adding zip target to prebuild for nant
parent
f8ddf7429e
commit
5a94814bbe
|
@ -490,6 +490,20 @@ namespace Prebuild.Core.Targets
|
||||||
ss.WriteLine(" </target>");
|
ss.WriteLine(" </target>");
|
||||||
ss.WriteLine();
|
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(" <target name=\"clean\" description=\"\">");
|
||||||
ss.WriteLine(" <echo message=\"Deleting all builds from all configurations\" />");
|
ss.WriteLine(" <echo message=\"Deleting all builds from all configurations\" />");
|
||||||
//ss.WriteLine(" <delete dir=\"${dist.dir}\" failonerror=\"false\" />");
|
//ss.WriteLine(" <delete dir=\"${dist.dir}\" failonerror=\"false\" />");
|
||||||
|
|
Loading…
Reference in New Issue