Kinook Software Forums

Go Back   Kinook Software Forums > Visual Build Professional > [VBP] Frequently Asked Questions > Logging

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1  
Old 04-08-2003, 09:54 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 5,656
Master/child project file logging

I have a master project and child projects which all use the same XML log file. I want to delete the log file each time the master project is built, but if I check the application option to delete the log file at the start of the build, it also gets deleted when each child project builds. How can I achieve this capability?

The application option to delete the log file at the start of the build is a global option that affects all builds, so that option should be unchecked in this situation. To delete the log file only at the start of the master project, open the Script Editor and add a script function for the vbld_BuildStarting script event (by clicking the Events button), and add the following code to it:

Code:
vbld_FSO.DeleteFile(vbld_AllMacros().Item("LOGFILE"), True)
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is On



All times are GMT -5. The time now is 05:36 PM.


Copyright 1999-2019 Kinook Software, Inc.