File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
src/CodeQLToolkit.Shared/CodeQL Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 66using LibGit2Sharp ;
77using System . IO . Compression ;
88using System . Diagnostics ;
9+ using System ;
910
1011
1112
@@ -284,6 +285,17 @@ private void CustomBundleInstall()
284285 // next, we run the bundling tool.
285286 // typical command line:
286287 // codeql_bundle -b .\scratch\codeql-bundle-win64.tar.gz -o scratch\out -w .\tests\workspace\ --help
288+ var bundleArgs = $ "--log DEBUG -b { customBundleSource } -o { CustomBundleOutputDirectory } -w { workingDirectory } { packs } ";
289+
290+ if ( QuickBundle )
291+ {
292+ Log < CodeQLInstallation > . G ( ) . LogInformation ( $ "Note: Quick Bundles enabled and pre-compilation will be disabled...") ;
293+ bundleArgs = $ "--log DEBUG -nc -b { customBundleSource } -o { CustomBundleOutputDirectory } -w { workingDirectory } { packs } ";
294+ }
295+
296+ Log < CodeQLInstallation > . G ( ) . LogInformation ( $ "Executing Bundle Tool with Working Directory: `{ workingDirectory } `") ;
297+ Log < CodeQLInstallation > . G ( ) . LogInformation ( $ "Executing Bundle Tool with Arguments: `{ bundleArgs } `") ;
298+
287299 using ( Process process = new Process ( ) )
288300 {
289301 process . StartInfo . FileName = ToolUtil . GetTool ( "codeql_bundle" ) ;
@@ -294,11 +306,11 @@ private void CustomBundleInstall()
294306 if ( QuickBundle )
295307 {
296308 Log < CodeQLInstallation > . G ( ) . LogInformation ( $ "Note: Quick Bundles enabled and pre-compilation will be disabled...") ;
297- process . StartInfo . Arguments = $ "-nc -b { customBundleSource } -o { CustomBundleOutputDirectory } -w { workingDirectory } { packs } " ;
309+ process . StartInfo . Arguments = bundleArgs ;
298310 }
299311 else
300312 {
301- process . StartInfo . Arguments = $ "-b { customBundleSource } -o { CustomBundleOutputDirectory } -w { workingDirectory } { packs } " ;
313+ process . StartInfo . Arguments = bundleArgs ;
302314 }
303315
304316 process . Start ( ) ;
You can’t perform that action at this time.
0 commit comments