Skip to content

Commit

Permalink
Make appFolders optional (#1333)
Browse files Browse the repository at this point in the history
Fixes #1296

---------

Co-authored-by: freddydk <[email protected]>
  • Loading branch information
freddydk and freddydk authored Nov 22, 2024
1 parent cba968f commit bddc6e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Actions/CreateApp/CreateApp.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,12 @@ try {
try {
$settingsJsonFile = Join-Path $projectFolder $ALGoSettingsFile
$SettingsJson = Get-Content $settingsJsonFile -Encoding UTF8 | ConvertFrom-Json
if (@($settingsJson.appFolders)+@($settingsJson.testFolders)) {
'appFolders','testFolders','bcptTestFolders' | ForEach-Object {
if (-not ($settingsJson.PSObject.Properties.Name -eq $_)) {
$SettingsJson | Add-Member -MemberType NoteProperty -Name $_ -Value @()
}
}
if (@($settingsJson.appFolders)+@($settingsJson.testFolders)+@($settingsJson.bcptTestFolders)) {
if ($type -eq "Performance Test App") {
if ($SettingsJson.bcptTestFolders -notcontains $foldername) {
$SettingsJson.bcptTestFolders += @($folderName)
Expand Down
4 changes: 4 additions & 0 deletions RELEASENOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Issues

- Issue 1296 Make property "appFolders" optional

## v6.1

### Issues
Expand Down

0 comments on commit bddc6e4

Please sign in to comment.