mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 16:40:26 +02:00
Update BeefBuild to use new custom build properties API.
This commit is contained in:
parent
275dbd14e8
commit
80a72f991d
5 changed files with 30 additions and 39 deletions
|
@ -110,7 +110,7 @@ namespace BeefBuild
|
|||
{
|
||||
mWorkspace.mName = new String();
|
||||
Path.GetFileName(mWorkspace.mDir, mWorkspace.mName);
|
||||
LoadProperties();
|
||||
CustomBuildProperties.Load(false);
|
||||
LoadWorkspace(mVerb);
|
||||
}
|
||||
else
|
||||
|
@ -308,15 +308,21 @@ namespace BeefBuild
|
|||
int splitIdx = (int)value.IndexOf('=');
|
||||
if (splitIdx != -1)
|
||||
{
|
||||
String propertyKey = new String();
|
||||
String propertyName = new String();
|
||||
StringView propertyKeyView = value.Substring(0, splitIdx);
|
||||
propertyKeyView.ToString(propertyKey);
|
||||
propertyKeyView.ToString(propertyName);
|
||||
|
||||
String propertyValue = new String();
|
||||
StringView propertyValueView = value.Substring(splitIdx + 1, value.Length - splitIdx - 1);
|
||||
propertyValueView.ToString(propertyValue);
|
||||
|
||||
mCustomProperties.Add(propertyKey, propertyValue);
|
||||
if (!CustomBuildProperties.TryAddProperty(propertyName, propertyValue))
|
||||
{
|
||||
delete propertyName;
|
||||
delete propertyValue;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue