File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 11param (
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.
Original file line number Diff line number Diff line change @@ -98,7 +98,20 @@ Write-Host ""
9898if ( ($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- #
132141return " $targetFilePath "
You can’t perform that action at this time.
0 commit comments