Skip to content

Commit 014431d

Browse files
committed
add debug output in Build-Accdb.ps1
1 parent 546e1d5 commit 014431d

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

Build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
param(
2-
[string]$SourceDir = '', # empty use parameter SourceFile, don't use msaccess-vcs
3-
[string]$SourceFile = '', # empty = name from vcs options
2+
[string]$SourceDir = '', # empty => use parameter SourceFile, don't use msaccess-vcs
3+
[string]$SourceFile = '', # empty => use msaccess-vcs with SourceDir else: only compile file $SourceFile
44
[string]$TargetDir = '', # Folder for output file, default (empty): current folder
55
[string]$Compile = 'false', # Default to "false" if not specified
66
[string]$AppConfigFile = '', # Default "" => don't change database properties etc.

scripts/Build-Accdb.ps1

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,20 @@ Write-Host ""
9898
if ( ($builtFileName -gt "") -and ($builtFileName -ne "$tempFileName.accdb") ) {
9999
Write-Host "Built: $builtFileName ($builtFilePath)"
100100
} else {
101+
101102
Write-Host "Build failed"
103+
if ([string]::IsNullOrEmpty($builtFileName)) {
104+
Write-Host " (builtFileName is empty)"
105+
}
106+
else {
107+
Write-Host " $builtFileName"
108+
}
109+
if ([string]::IsNullOrEmpty($builtFilePath)) {
110+
Write-Host " (builtFilePath is empty)"
111+
}
112+
else {
113+
Write-Host " $builtFilePath"
114+
}
102115
exit 1
103116
}
104117

@@ -125,8 +138,4 @@ if (Test-Path $tempFilePath) {
125138
Remove-Item -Path $tempFilePath -Force
126139
}
127140

128-
#Write-Host "::notice::Build accdb completed: $FileName"
129-
#Write-Host "|$targetFilePath|"
130-
#Write-Host ""
131-
#
132141
return "$targetFilePath"

0 commit comments

Comments
 (0)