Command Line Build batch file
-
- Sr. Propeller Head
- Posts: 238
- Joined: Tue Mar 17, 2009 10:41 pm
Re: Command Line Build batch file
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
____________________________
Former Flare and Robohelp Support
Re: Command Line Build batch file
This is pretty easy to do using either:Ken Billing wrote:I submitted an enhancement request for conditional builds, by the way. Maybe 7?
- 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.....
Re: Command Line Build batch file
Some discussion of madbuild limitations and how to work around em here:
http://forums.madcapsoftware.com/viewto ... 13&t=13131
http://forums.madcapsoftware.com/viewto ... 13&t=13131
-
- Jr. Propeller Head
- Posts: 3
- Joined: Tue Aug 23, 2011 9:25 am
Re: Command Line Build batch file
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!
Re: Command Line Build batch file
Flare's help tells you how to build from the command line; see here: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!
http://webhelp.madcapsoftware.com/flare ... d_Line.htm
-
- Jr. Propeller Head
- Posts: 3
- Joined: Tue Aug 23, 2011 9:25 am
Re: Command Line Build batch file
Hello : Does anyone know if it is possible to create a project by the command line? Thanks
Re: Command Line Build batch file
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?
Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Re: Command Line Build batch file
You can't create a project using the madbuild command line; and I'm not aware of any other commands in Flare.ilyssaallison wrote:Hello : Does anyone know if it is possible to create a project by the command line? Thanks
-
- Senior Propellus Maximus
- Posts: 4293
- Joined: Thu Feb 02, 2006 9:29 am
- Location: The Electric City
Re: Command Line Build batch file
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?
New Book: Creating user-friendly Online Help
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Paperback http://www.amazon.com/dp/1449952038/ or https://www.createspace.com/3416509
eBook http://www.amazon.com/dp/B005XB9E3U
Re: Command Line Build batch file
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
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
-
- Propellus Maximus
- Posts: 551
- Joined: Wed Mar 05, 2008 10:50 am
Re: Command Line Build batch file
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
Re: Command Line Build batch file
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....
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....
-
- Propellus Maximus
- Posts: 1260
- Joined: Wed Aug 21, 2013 11:46 am
- Location: Vancouver, Canada
Re: Command Line Build batch file
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]
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]
Re: Command Line Build batch file
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.
Note that since this thread was started, you can now set up batch targets in Flare to build and publish multiple targets.
-
- Propellus Maximus
- Posts: 1260
- Joined: Wed Aug 21, 2013 11:46 am
- Location: Vancouver, Canada
Re: Command Line Build batch file
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]
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]