We use RoboHelp HTML X5.x.x to generate CHM files for our help system. Is it possible to run RoboHelp unattended, non-UI, like from a command-line, so it can be integrated with our MSBuild build process?
Wikipedia says that command-line compilation appears in version 6 of RoboHelp so I don't think you can with your version.
Related
I want to investigate a new application for JPEG 2000 encoding and decoding. I downloaded openjpeg-master and managed to cobble together the ability to cmake the files. After a bunch of grinding, this resulted in the following output:
"Build files have been written to: C: openjpeg-master/build
\build> "
Any "normal" Unix installations have a multi-step installation like this:
"UNIX/LINUX - MacOS (terminal) - WINDOWS (cygwin, MinGW)
To build the library, type from source tree directory:
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
Binaries are then located in the 'bin' directory.
To install the library, type with root privileges:
make install
make clean
To build the html documentation, you need doxygen to be installed on your system. It will create an "html" directory in TOP_LEVEL/build/doc)
make doc"
But the Windows 10 equivalent is unclear, to put the most charitable spin on it. You can find it here: "https://github.com/uclouvain/openjpeg/blob/master/INSTALL.md"
Some questions arise:
is there a better starting place for installing JPEG 2000 that actually shows me how to install it and run the tests?
if not, how do I get from the build files to installing the libraries and making the test programs?
Is there more information I can dig out that would help to answer these questions?
Since I'm allergic to Visual Studio, I overlooked a nice tutorial specifying how to install something as complex as openjpeg by direct clone from github. However, in desperation, I found it and it worked. It is Visual Studio Community 2019 Version 16.8.3. I needed only to use -DTHIRDPARTY to get the third party libraries installed. There is a drop-down menu to build and install OPENJPEG. All I need to do now is figure out how to compile and run the utilities that invoke the installed libraries ...
actually, the complete line to add was -DBUILD_THIRDPARTY:bool=true.
Somewhere in my frantic random search for a way forward, I remember seeing the thought that to make the tests work, I merely need to find files like *.vsproj and run them a separate VS solutions. Some random guesswwork with .vdproj files in src/bin/... hasn't produced anything good. Is there not a document somewhere showing how to run the tests?
I am using behat testing framework to test my website.
In that I need to write .features file in gherkin language.
So I would like to know If there is any tool available that will -
1.Validate correctness of .features files
Or/And
2.Perform static code analysis on .features files
Or/And
3.Perform code quaility check on .features files
For example sonarqube can perform static code analysis on C,Java,PHP language.
You can try using Online Gherkin Formatter and Validator
This tool allows you to check syntax and reindent/format feature files.
There is a tool called CukeTest on Windows used mainly to author gherkin files and cucumber.js projects, which you can also to author or validate gherkin (*.feature) files.
Take a look at the following image:
Steps:
Open a folder (a.k.a. project) that contains the *.feature
Click "Validate Project" button.
CukeTest can either be downloaded directly or installed from Windows Store.
I am attempting to build a .NET version of pdfbox with Ant. The build fails with the following error message:
BUILD FAILED
C:\Program Files\pdfbox-1.5.0\pdfbox-1.5.0\pdfbox\build.xml:200: srcdir "C:\Program Files\pdfbox-1.5.0\pdfbox-1.5.0\fontbox\src\main\java" does not exist!
Thanks for any help a java developer can give me. Since I'm not a java developer at all, non-cryptic, verbose answers REALLY appreciated.
Clyde
It looks like you haven't downloaded the entire source code of PDFBox. It includes companion packages Fontbox and Jempbox, the source of which are outside of the PDFBox folder. Given the paths above, you should have the following folders (among others):
C:\Program Files\pdfbox-1.5.0\pdfbox-1.5.0\pdfbox...
C:\Program Files\pdfbox-1.5.0\pdfbox-1.5.0\fontbox...
C:\Program Files\pdfbox-1.5.0\pdfbox-1.5.0\jempbox...
Under each of these folders, there should be a src\main\java... folder structure. If these don't exist, then you've unpackaged the source tar incorrectly, and the build script will fail because it can't find the files that it requires.
I've also found cases where the build script doesn't like spaces in path names, so it might be easier to unzip the source tree to c:\pdfbox... or something.
Our application is distributed as a zip file, with a small bat/shell script that the user runs after extracting the archive to install the application. This zip file is currently created via mavens assembly plugin.
The zip file we distribute contains a lib folder with an executable jar, as well as all the files we need as part off the deployment off the actual application.
What we want is a self extracting zip-file that executes that contained bat file after the zip file has been extracted. And this should be created as a part off the build process.
I have read creating-a-self-extracting-zip-archive-on-a-linux-box, and can do that. But I don't see anywhere how to also execute a bat file within the extracted archive when it's done.
I have found winzip self-extractor, but I would prefer something that can be run on any platform. The build server and some developers use linux. I also found some VB code which leads me to believe that there might be some autorun properties on zip files.
Did you consider using IzPack (and the IzPack Maven Plugin) to generate a cross-platform installer?
The previous replier suggested lzpack, it's documentation contains the following pointer:
""The 7-Zip project (see http://www.7-zip.org/) provides a so-called SFX for installers, i.e., an image that can be use to create self-extracting Windows executables. Once its content has been extracted, such a self-extracting executable can launch an executable or a file. In the later case, it is assumed that there exists an association between a file extension and a software component.""
7-zip is cross platform, although I haven't tried whether you can build sfx files for windows on linux.
The 7zip manpage says you can do this.
EXAMPLE 2
7z a -sfx archive.exe dir1
add all files from directory "dir1" to SFX archive
archive.exe (Remark : SFX archive MUST end with
".exe")
While it's a bit late:
We just released a Maven plugin that can do this (docs at https://zephyr.sunshower.io/site/). It's free, open-source, and permissively licensed.
We bundle a JRE with our application using this plugin, then launch an IzPack installer with that JRE. It also supports code-signing, which we expect to have documented within the week.
I am trying to get my continuous integration to create build the smart device cab project from within msbuild on the command line. Everything that I have found says to use the inf file (with cabwiz) created when you build the project from within visual studio. Is there a way to create the inf using the .vddproj file so that I can then use it with cabwiz.exe?
Your best bet is either to run devenv.exe (or devenv.com) from the msbuild task, or to steal the INF that Visual Studio generates and use it to run cabwiz.exe from the msbuild task.
MVP Discussion: http://social.microsoft.com/Forums/en-US/csharpide/thread/a3caae81-fd79-45a9-ac38-f471e30e5b2a
CabWiz.exe: http://msdn.microsoft.com/en-us/library/aa924359.aspx
INF reference: http://msdn.microsoft.com/en-us/library/aa924371.aspx
Examples:
http://blog.enterprisemobile.com/2008/07/automating-build-versioning-and-publishing-smart-device-projects-with-team-foundation-build/
http://blog.opennetcf.com/ctacke/2008/09/18/AutomatingCABFileGenerationWithMSBUILD.aspx
http://guystarbuck.blogspot.com/2006/08/automate-build-of-windows-moble-cab.html
How about adding a "Smart Device CAB Project" to your solution (available in Visual Studio 2005 and 2008)?
These kind of projects build the .inf file from the output of the other projects in the solution and spawn "cabwiz.exe" to generate your final cab.
I personally use NAnt instead of MSBuild, and prefer to manually edit my inf file (doesn't change that often), but the CAB project seem to be the way to go for a solution that uses MSBuild.
PS: be careful if your cab needs to set a registry dword to -1 (0xffffffff): cabwiz is known to have a nasty bug when it comes to this.
PS2: also note this other post.
Are you asking how to create the cab file or how to include it in your project? You could create the inf then add the command line to the post build event.