Is there a clean way of converting a build that uses several Action Lists into using sub-projects? I've got a build now that uses lots of Action Lists to organize similar tasks.
However, I want to use this build as the basis for a new build (e.g. nightly build) that will be about 75% similar to the main build. Rather than making a copy of the main build and editing it for the differences, I'm thinking I should use sub-projects that can be shared between the "main build" and this "nightly build".
However, it's not clear whether there's a better way to do that than manually moving a ton of tasks around through the sub-projects and then also through each project's Action Lists.
Thanks,
jd
Hi jd
There’s no easy answer to this question, simply because there are so many ways to organise your projects in FinalBuilder.
In general, I prefer to have only one finalbuilder project that know’s how to organise itself depending on how it was triggered. FinalBuilder has a few built in variables that help in this regard :
------------------------------------
ISAUTOBUILD - True if the build is being run automatically from a command line parameter.
ISCONSOLEBUILD - True if the build is being run from the console under FBCMD.EXE.
ISINTERACTIVEBUILD - True if the build is being run under the FinalBuilder IDE.
ISINCLUDEDPROJECT - True if the current project is being run as a child project (via the
Include FinalBuilder Project Action)
FBPROJECT - The full path to the currently running FinalBuilder project file.
FBPROJECTDIR - The dir where the currently running FinalBuilder project lives.
FBDIR - The directory in which FinalBuilder is installed.
FBIGNOREDERRORS - The number of actions in error during the build that were ignored.
----------------------------------------
Using these variables with the Flow Control actions (such as If…then etc) allows you to customise how your project behaves depend in whether it’s being run interactively from the ide or being run from the command line.
Another option is to break up your project into a bunch of smaller projects, and then create a master project which includes those projects using the “Include FinalBuilder Project” action.
HTH
Thanks, Vincent. That helps and I appreciate the info… if you have any suggestions on the iterating/deleting-files query I posted below, I’d appreciate that as well.
re: iterating/deleting-files query
That was my fault, I typed the answer yesterday, but must have forgot to press Submit!