1
0
Fork 0
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:
LAPTOP-NV8MPI8C\Yuvan Wickramasinghe 2025-03-27 17:13:08 -07:00
parent 275dbd14e8
commit 80a72f991d
No known key found for this signature in database
5 changed files with 30 additions and 39 deletions

View file

@ -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;
}
}