aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild
diff options
context:
space:
mode:
authorSean Dague2007-09-16 18:31:24 +0000
committerSean Dague2007-09-16 18:31:24 +0000
commit3245166220ced5b6e892086caaa4cdc9e41c0d6f (patch)
tree1d0286fa575078714c04d916f62ab8d15a61bc7f /Prebuild
parentFixed missing Axiom references. (diff)
downloadopensim-SC-3245166220ced5b6e892086caaa4cdc9e41c0d6f.zip
opensim-SC-3245166220ced5b6e892086caaa4cdc9e41c0d6f.tar.gz
opensim-SC-3245166220ced5b6e892086caaa4cdc9e41c0d6f.tar.bz2
opensim-SC-3245166220ced5b6e892086caaa4cdc9e41c0d6f.tar.xz
Some more work on passing enough info to nant to make
reasonable release targets
Diffstat (limited to 'Prebuild')
-rw-r--r--Prebuild/src/Core/Nodes/SolutionNode.cs14
-rw-r--r--Prebuild/src/Core/Targets/NAntTarget.cs2
2 files changed, 15 insertions, 1 deletions
diff --git a/Prebuild/src/Core/Nodes/SolutionNode.cs b/Prebuild/src/Core/Nodes/SolutionNode.cs
index bbf867e..3ea53a4 100644
--- a/Prebuild/src/Core/Nodes/SolutionNode.cs
+++ b/Prebuild/src/Core/Nodes/SolutionNode.cs
@@ -53,6 +53,7 @@ namespace Prebuild.Core.Nodes
53 #region Fields 53 #region Fields
54 54
55 private string m_Name = "unknown"; 55 private string m_Name = "unknown";
56 private string m_Version = "1.0.0";
56 private string m_Path = ""; 57 private string m_Path = "";
57 private string m_FullPath = ""; 58 private string m_FullPath = "";
58 private string m_ActiveConfig = "Debug"; 59 private string m_ActiveConfig = "Debug";
@@ -110,6 +111,18 @@ namespace Prebuild.Core.Nodes
110 } 111 }
111 112
112 /// <summary> 113 /// <summary>
114 /// Gets the version.
115 /// </summary>
116 /// <value>The version.</value>
117 public string Version
118 {
119 get
120 {
121 return m_Version;
122 }
123 }
124
125 /// <summary>
113 /// Gets the path. 126 /// Gets the path.
114 /// </summary> 127 /// </summary>
115 /// <value>The path.</value> 128 /// <value>The path.</value>
@@ -232,6 +245,7 @@ namespace Prebuild.Core.Nodes
232 public override void Parse(XmlNode node) 245 public override void Parse(XmlNode node)
233 { 246 {
234 m_Name = Helper.AttributeValue(node, "name", m_Name); 247 m_Name = Helper.AttributeValue(node, "name", m_Name);
248 m_Version = Helper.AttributeValue(node, "version", m_Version);
235 m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig); 249 m_ActiveConfig = Helper.AttributeValue(node, "activeConfig", m_ActiveConfig);
236 m_Path = Helper.AttributeValue(node, "path", m_Path); 250 m_Path = Helper.AttributeValue(node, "path", m_Path);
237 251
diff --git a/Prebuild/src/Core/Targets/NAntTarget.cs b/Prebuild/src/Core/Targets/NAntTarget.cs
index efef949..f9d69dc 100644
--- a/Prebuild/src/Core/Targets/NAntTarget.cs
+++ b/Prebuild/src/Core/Targets/NAntTarget.cs
@@ -492,7 +492,7 @@ public class NAntTarget : ITarget
492 492
493 // sdague - make a zip target 493 // sdague - make a zip target
494 ss.WriteLine(" <target name=\"zip\" description=\"\">"); 494 ss.WriteLine(" <target name=\"zip\" description=\"\">");
495 ss.WriteLine(" <zip zipfile=\"{0}.zip\">", solution.Name); 495 ss.WriteLine(" <zip zipfile=\"{0}-{1}.zip\">", solution.Name, solution.Version);
496 ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">"); 496 ss.WriteLine(" <fileset basedir=\"${project::get-base-directory()}\">");
497 497
498 ss.WriteLine(" <include name=\"${project::get-base-directory()}/**/*.cs\" />"); 498 ss.WriteLine(" <include name=\"${project::get-base-directory()}/**/*.cs\" />");