Command Line Build batch file

This forum is for all Flare related Tips and Tricks.
Have a tip or trick you use while working in Flare? Share it here.
Madcap Guru
Sr. Propeller Head
Posts: 238
Joined: Tue Mar 17, 2009 10:41 pm

Re: Command Line Build batch file

Post by Madcap Guru »

Madbuild does not connect to sourcecontrol you would need to create a batch file to pull it out of source control manually
Rick Ferrell
____________________________

Former Flare and Robohelp Support
Image
samjones6
Sr. Propeller Head
Posts: 168
Joined: Tue Mar 08, 2011 5:03 pm

Re: Command Line Build batch file

Post by samjones6 »

Ken Billing wrote:I submitted an enhancement request for conditional builds, by the way. Maybe 7?
This is pretty easy to do using either:

- A perforce trigger (if you use perforce version control)

or

- A continuous integration system (cruise control, finalbuilder, whatever) that can monitor your SCM system for new files in the project dir.


Me? I have the build system build web help every night, whether it needs it or not.....
samjones6
Sr. Propeller Head
Posts: 168
Joined: Tue Mar 08, 2011 5:03 pm

Re: Command Line Build batch file

Post by samjones6 »

Some discussion of madbuild limitations and how to work around em here:

http://forums.madcapsoftware.com/viewto ... 13&t=13131
ilyssaallison
Jr. Propeller Head
Posts: 3
Joined: Tue Aug 23, 2011 9:25 am

Re: Command Line Build batch file

Post by ilyssaallison »

Hello: Can someone please guide me through the process of building a project thorugh the command line. One I create a project, what do I do next to build from the command line? When I hit F6, it only outputs the project to my webpage. Thanks for your help!
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Command Line Build batch file

Post by NorthEast »

ilyssaallison wrote:Hello: Can someone please guide me through the process of building a project thorugh the command line. One I create a project, what do I do next to build from the command line? When I hit F6, it only outputs the project to my webpage. Thanks for your help!
Flare's help tells you how to build from the command line; see here:

http://webhelp.madcapsoftware.com/flare ... d_Line.htm
ilyssaallison
Jr. Propeller Head
Posts: 3
Joined: Tue Aug 23, 2011 9:25 am

Re: Command Line Build batch file

Post by ilyssaallison »

Hello : Does anyone know if it is possible to create a project by the command line? Thanks
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: Command Line Build batch file

Post by LTinker68 »

Create a project, as in you want to create a WebHelp project called ProjectB that's stored at C:\HelpProjects\, for example, as opposed to opening the Flare GUI and going to File > New Project?
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Command Line Build batch file

Post by NorthEast »

ilyssaallison wrote:Hello : Does anyone know if it is possible to create a project by the command line? Thanks
You can't create a project using the madbuild command line; and I'm not aware of any other commands in Flare.
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Command Line Build batch file

Post by RamonS »

The only thing that comes to mind is taking a standard project and making a copy of it. I do wonder about the purpose. Why create a new project from command line when you need Flare afterwards anyway to add content?
owilkes
Propeller Head
Posts: 68
Joined: Wed Apr 20, 2011 10:01 am
Location: London

Re: Command Line Build batch file

Post by owilkes »

Top thread, everyone. I initially was thinking 'but surely Batch Build takes care of this...' but then realised:

1. My build machine needs to get the latest content (Word documents) that it then reimports for the fresh morning build

- and I saw this could be done through the batch script.

2. We'd like to send an email to confirm when it is all done

- and this could probably be done through the mapisend.exe (I think, will need to test this)

3. (here's the point of the post...) We'd really like to also run some reports on the output - to confirm whether the new content that goes in brings a bunch of issues with it...

Any idea if this can be done? Is there any way to auto-generate my 'CriticalIssues' report after the build? Having to run them online seems like sooo Flare v2.

Also, does using this batch save the error logs anywhere?

Many thanks
techwriter31
Propellus Maximus
Posts: 551
Joined: Wed Mar 05, 2008 10:50 am

Re: Command Line Build batch file

Post by techwriter31 »

Last week I set up a batch target to build several help files on a daily basis, using the built-in Windows Task Scheduler option. After the targets are automatically generated, a log file is added to the Reports folder, with a list of any errors that may be present.
Kellie
owilkes
Propeller Head
Posts: 68
Joined: Wed Apr 20, 2011 10:01 am
Location: London

Re: Command Line Build batch file

Post by owilkes »

Thanks Kellie.

that tells me of any errors encountered during the build (which is nice) but it doesn't tell me, for example, of any unused content or unused styles etc - problems with the content, that the build itself doesn't register as an error.

Have submitted a feature request....
sdcinvan
Propellus Maximus
Posts: 1260
Joined: Wed Aug 21, 2013 11:46 am
Location: Vancouver, Canada

Re: Command Line Build batch file

Post by sdcinvan »

This is a fantastically detailed reference to the CLI but being mostly from 2006, is it still relevant for MadCap v9? I know that madbuild.exe still exists.
Shawn in Vancouver, Canada
Main tools used: Flare 11.x, InDesign, Google Docs, Lectora, Captivate.
Report bugs: https://www.madcapsoftware.com/feedback/bugs.aspx ▪ Feature requests: https://www.madcapsoftware.com/feedback ... quest.aspx[/i]
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Command Line Build batch file

Post by NorthEast »

You can still use madbuild in v9, it's covered in the help here: http://webhelp.madcapsoftware.com/flare ... d_Line.htm

Note that since this thread was started, you can now set up batch targets in Flare to build and publish multiple targets.
sdcinvan
Propellus Maximus
Posts: 1260
Joined: Wed Aug 21, 2013 11:46 am
Location: Vancouver, Canada

Re: Command Line Build batch file

Post by sdcinvan »

Dave Lee wrote:You can still use madbuild in v9, it's covered in the help here: http://webhelp.madcapsoftware.com/flare ... d_Line.htm

Note that since this thread was started, you can now set up batch targets in Flare to build and publish multiple targets.

Awesome, thank you Dave.
Shawn in Vancouver, Canada
Main tools used: Flare 11.x, InDesign, Google Docs, Lectora, Captivate.
Report bugs: https://www.madcapsoftware.com/feedback/bugs.aspx ▪ Feature requests: https://www.madcapsoftware.com/feedback ... quest.aspx[/i]
Post Reply