Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-12-2004, 06:18 AM
GrahamS GrahamS is online now
Registered User
 
Join Date: 12-26-2003
Posts: 16
Logging when chaining projects

I have a number of projects that I want to call from a parent project as well as being able to run separately. I also want to use XML logging with the following requirements:

1. If the child project is run separately then it logs to its own log file (e.g. Child1 will log to Child1.log). When complete, it will display the log file (using a Transform XML step)

2. If the child project is run by the parent project then it will log to the parent's log file (e.g. Child1 will log to Parent.log). The child will not display the log file. Once all child projects have been completed then the parent will display the log file (using a Transform XML step)

I have tried to set this up passing the parents log file to the child as the LOGFILE parameter (as well as using a IS_CHILD parameter to enable the Transform XML step to be skipped in the child project).

Unfortunately I get an error when running the Transform XML step in the parent project.

Loading XML input document...
Error at line 28, position 2 loading 'C:\DOCUME~1\GRAHAM~1.SHA\LOCALS~1\Temp\bldA1.tmp' : Only one top level element is allowed in an XML document.

What am I doing wrong?

I've attached example parent and child scripts
Attached Files
File Type: zip childlogging.zip (3.0 KB, 1372 views)
Reply With Quote
 


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 On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 08:37 AM.


Copyright © 1999-2023 Kinook Software, Inc.