I have a problem using a Perl script in a post-build command that is executed from a target. The command is like this:
Code: Select all
<PostBuild>chdir /D $(OutputDirectory)\Content\htm
href2htm.pl Company_Help_k_start
</PostBuild>
The Problem is: It works fine when building the output on local computers, but it doesn't work on our nightly build system. Here's the message from the log file:
Code: Select all
Command Error: 'href2htm.pl' is not recognized as an internal or external command, operable program or batch file.
- Path variable contains path to perl directory
Path variable contains path to the script's directory
Pathext variable contains *.pl for Perl as an executable command.
The perl script can be executed on local machines without the calling command "Perl <Name>.pl
So my questions are:
- On the nightly build system, the Madbuild command (that executes the post-build command from the target) is running as a sub-process within another perl script that controls some steps when building the help in the common build process of the complete software. Is it possible that perl scripts cannot be run in such a nested environment?
- Does Flare's post-build command run in a CMD Environment as a standard, or do I have to specify something else, e.g. TCC.exe?
- Would it work calling the perl script from a Powershell command?
Unfortunately, I'm neither a perl programmer nor a Powershell specialist, but I happen to know some people who know about this . But they need more informations about how the post-build commands work in Flare. Can anybody help?
Regards
Herbert