View Single Post
  #7  
Old 11-21-2014, 08:52 AM
raistlin raistlin is online now
Registered User
 
Join Date: 11-14-2008
Posts: 23
According to my tests, these 2 command lines gives different results:

Does not produce log file:
Code:
c:\Builds\Source\BuildScripts>visbuildcmd Test.bld /mta /loglevel 0 /config VisBuildPro.config LOGFILE=%PROJROOT%.log /nologo
21-11-2014 14:23:32: Starting Build: 'c:\Builds\Source\BuildScripts\Test.bld'
21-11-2014 14:23:32: Building project step 'Project steps'...
21-11-2014 14:23:32: Building project step 'Log Message'...
LOGFILE=
21-11-2014 14:23:32: Build successfully completed (elapsed = 00:00:00).
Produces log file:
Code:
c:\Builds\Source\BuildScripts>visbuildcmd Test.bld /mta /loglevel 0 /config VisBuildPro.config /LOGFILE %PROJROOT%.log /nologo
21-11-2014 14:24:28: Starting Build: 'c:\Builds\Source\BuildScripts\Test.bld'
21-11-2014 14:24:28: Building project step 'Project steps'...
21-11-2014 14:24:28: Building project step 'Log Message'...
LOGFILE=c:\Builds\Source\BuildScripts\Test.log
21-11-2014 14:24:28: Build successfully completed (elapsed = 00:00:00).
VisBuildPro.config used:
Code:
<?xml version='1.0' encoding='utf-8'?>
<configuration>
	<option name='BuildFailureStepsOnCancel'>0</option>
	<option name='CaseSensitiveBuildRuleComparisons'>0</option>
	<option name='ConvertOutputDoubleQuotes'>0</option>
	<option name='DefaultScriptEngine'>VBScript</option>
	<option name='DelLogFileOnBuild'>0</option>
	<option name='DelTempMacrosAfterBuild'>1</option>
	<option name='DelTempMacrosOnRebuild'>0</option>
	<option name='EchoChainedConsoleOutput'>1</option>
	<option name='EnvVarsInSystemMacros'>1</option>
	<option name='EscapeSpecialCharactersInOutput'>1</option>
	<option name='FailBuildWhenDoneIfStepsFailed'>0</option>
	<option name='LogAllFailureStepOutput'>1</option>
	<option name='LogBuildRuleEval'>1</option>
	<option name='LogDefaultStepProperty'>0</option>
	<option name='LogFilename'></option>
	<option name='LogFormat'>Text</option>
	<option name='LogLevel'>3</option>
	<option name='PersistBuildStatus'>0</option>
	<option name='ReevaluateAllBuildRules'>0</option>
	<option name='SetProjectDirectory'>1</option>
	<option name='StripLogLinefeedChar'>0</option>
	<option name='TextLogSkippedSteps'>1</option>
	<option name='TextLogStepEvents'>1</option>
	<option name='TextLogStepNumbering'>0</option>
</configuration>
This was my question earlier, i prefer to use LOGFILE=%PROJROOT%.log macro which i can define it in the bld file instead of parsing /logfile %PROJROOT%.log.
Attached Files
File Type: bld Test.bld (545 Bytes, 717 views)
Reply With Quote