aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Prebuild/src/Core/Nodes/FileNode.cs
diff options
context:
space:
mode:
authorJeff Ames2008-03-17 20:55:21 +0000
committerJeff Ames2008-03-17 20:55:21 +0000
commit79209c429705beb57ad9b787718856ab2c9fd37c (patch)
tree6f459e172985bce8ffbfc09a5b9a4594dd881a62 /Prebuild/src/Core/Nodes/FileNode.cs
parent* More almost completely unproductive log message fiddling (diff)
downloadopensim-SC_OLD-79209c429705beb57ad9b787718856ab2c9fd37c.zip
opensim-SC_OLD-79209c429705beb57ad9b787718856ab2c9fd37c.tar.gz
opensim-SC_OLD-79209c429705beb57ad9b787718856ab2c9fd37c.tar.bz2
opensim-SC_OLD-79209c429705beb57ad9b787718856ab2c9fd37c.tar.xz
Merged changes in Prebuild trunk up to r258 into OpenSim's Prebuild.
Hopefully this should make merging upstream easier. Building with NAnt should still work, but Visual Studio is untested.
Diffstat (limited to 'Prebuild/src/Core/Nodes/FileNode.cs')
-rw-r--r--Prebuild/src/Core/Nodes/FileNode.cs33
1 files changed, 30 insertions, 3 deletions
diff --git a/Prebuild/src/Core/Nodes/FileNode.cs b/Prebuild/src/Core/Nodes/FileNode.cs
index ab0a2a3..083dba5 100644
--- a/Prebuild/src/Core/Nodes/FileNode.cs
+++ b/Prebuild/src/Core/Nodes/FileNode.cs
@@ -26,9 +26,9 @@ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY O
26#region CVS Information 26#region CVS Information
27/* 27/*
28 * $Source$ 28 * $Source$
29 * $Author: jendave $ 29 * $Author: borrillis $
30 * $Date: 2007-01-08 17:55:40 +0100 (, 08 jan 2007) $ 30 * $Date: 2007-05-25 01:03:16 +0900 (Fri, 25 May 2007) $
31 * $Revision: 197 $ 31 * $Revision: 243 $
32 */ 32 */
33#endregion 33#endregion
34 34
@@ -118,6 +118,8 @@ namespace Prebuild.Core.Nodes
118 private SubType m_SubType = SubType.Code; 118 private SubType m_SubType = SubType.Code;
119 private CopyToOutput m_CopyToOutput = CopyToOutput.Never; 119 private CopyToOutput m_CopyToOutput = CopyToOutput.Never;
120 private bool m_Link = false; 120 private bool m_Link = false;
121 private string m_LinkPath = string.Empty;
122 private bool m_PreservePath = false;
121 123
122 124
123 #endregion 125 #endregion
@@ -173,6 +175,13 @@ namespace Prebuild.Core.Nodes
173 } 175 }
174 } 176 }
175 177
178 public string LinkPath
179 {
180 get
181 {
182 return this.m_LinkPath;
183 }
184 }
176 /// <summary> 185 /// <summary>
177 /// 186 ///
178 /// </summary> 187 /// </summary>
@@ -195,6 +204,19 @@ namespace Prebuild.Core.Nodes
195 } 204 }
196 } 205 }
197 206
207 /// <summary>
208 ///
209 /// </summary>
210 /// <param name="file"></param>
211 /// <returns></returns>
212 public bool PreservePath
213 {
214 get
215 {
216 return m_PreservePath;
217 }
218 }
219
198 #endregion 220 #endregion
199 221
200 #region Public Methods 222 #region Public Methods
@@ -211,7 +233,12 @@ namespace Prebuild.Core.Nodes
211 Helper.AttributeValue(node, "subType", m_SubType.ToString())); 233 Helper.AttributeValue(node, "subType", m_SubType.ToString()));
212 m_ResourceName = Helper.AttributeValue(node, "resourceName", m_ResourceName.ToString()); 234 m_ResourceName = Helper.AttributeValue(node, "resourceName", m_ResourceName.ToString());
213 this.m_Link = bool.Parse(Helper.AttributeValue(node, "link", bool.FalseString)); 235 this.m_Link = bool.Parse(Helper.AttributeValue(node, "link", bool.FalseString));
236 if ( this.m_Link == true )
237 {
238 this.m_LinkPath = Helper.AttributeValue( node, "linkPath", string.Empty );
239 }
214 this.m_CopyToOutput = (CopyToOutput) Enum.Parse(typeof(CopyToOutput), Helper.AttributeValue(node, "copyToOutput", this.m_CopyToOutput.ToString())); 240 this.m_CopyToOutput = (CopyToOutput) Enum.Parse(typeof(CopyToOutput), Helper.AttributeValue(node, "copyToOutput", this.m_CopyToOutput.ToString()));
241 this.m_PreservePath = bool.Parse( Helper.AttributeValue( node, "preservePath", bool.FalseString ) );
215 242
216 if( node == null ) 243 if( node == null )
217 { 244 {