Some more work on passing enough info to nant to make

reasonable release targets
afrisby
Sean Dague 2007-09-16 18:31:24 +00:00
parent 279177219e
commit 3245166220
2 changed files with 15 additions and 1 deletions

View File

@ -53,6 +53,7 @@ namespace Prebuild.Core.Nodes
#region Fields #region Fields
private string m_Name = "unknown"; private string m_Name = "unknown";
private string m_Version = "1.0.0";
private string m_Path = ""; private string m_Path = "";
private string m_FullPath = ""; private string m_FullPath = "";
private string m_ActiveConfig = "Debug"; private string m_ActiveConfig = "Debug";
@ -109,6 +110,18 @@ namespace Prebuild.Core.Nodes
} }
} }
/// <summary>
/// Gets the version.
/// </summary>
/// <value>The version.</value>
public string Version
{
get
{
return m_Version;
}
}
/// <summary> /// <summary>
/// Gets the path. /// Gets the path.
/// </summary> /// </summary>
@ -232,6 +245,7 @@ namespace Prebuild.Core.Nodes
public override void Parse(XmlNode node) public override void Parse(XmlNode node)
{ {
m_Name = Helper.AttributeValue(node, "name", m_Name); m_Name = Helper.AttributeValue(node, "name", m_Name);
m_Version = Helper.AttributeValue(node, "version", m_Version);
m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig); m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig);
m_Path = Helper.AttributeValue(node, "path", m_Path); m_Path = Helper.AttributeValue(node, "path", m_Path);

View File

@ -492,7 +492,7 @@ public class NAntTarget : ITarget
// sdague - make a zip target // sdague - make a zip target
ss.WriteLine(" <target name=\"zip\" description=\"\">"); ss.WriteLine(" <target name=\"zip\" description=\"\">");
ss.WriteLine(" <zip zipfile=\"{0}.zip\">", solution.Name); ss.WriteLine(" <zip zipfile=\"{0}-{1}.zip\">", solution.Name, solution.Version);
ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">"); ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">");
ss.WriteLine(" <include name=\"${project::get-base-directory()}/**/*.cs\" />"); ss.WriteLine(" <include name=\"${project::get-base-directory()}/**/*.cs\" />");