maven hudson doc to pdf - pdf

My application has a bunch of document files (currently in word doc format) that I convert to PDF before distributing the application. Currently I manually convert them to PDF. This leaves me open to the chance that I could update the word document and forget to update the PDF (I can write a script to check that the PDF is newer than the doc, so that's some protection, but no guarantees)
Are there any plugins for either maven or hudson that will allow me to do this on the fly as part of the build? I couldn't seem to find one. I'd prefer it be in the maven side of things so it's tied to the software build, but I'd settle for a hudson plugin if needed.
thanks,
Jeff

Haven't tried it, but there exists a project called JODConverter, which does document conversions (including Word to PDF) using an OpenOffice instance running in headless server mode. It comes with a Maven plugin.

I have no knowledge of Maven, but if it allows you to call a web service then try looking at a product like the PDF Converter Services. It comes with Java Based Sample code.
I worked on this product so the usual disclaimers apply.

Related

Eclipse Editor monitor file changes from out of Eclipse

I am developing a Plugin for eclipse, and notice that when user changes file from out of IDE, e.g., do a git pull using shell, my editor does not pick up the change. I try to use IResourceChangeListener but realize it only monitors changes happening in the workspace.
I have seen eclipse TextEditor can monitor external file change, but failed to find how it implements this from code. My editor is not a text editor so I cannot extend from TextEditor to get this for free.
Can anyone give me a hint how to properly implement this feature for eclipse? Thanks!
According to Eclipse FAQ you need to monitor non Eclipse file changes in separate thread.
Fortunately Java have file change notification API which can be used to implement this.

Create File Templates in IntelliJ Plugin

How do I create file templates in an IntelliJ plugin?
Main purpose is the concurrent usage of multiple plugins for batch processing in an project wizard.
Is there any simple example or a small example project where I can look how to do this stuff? Unfortunatelly almost any link beloning this topic is broken in the Jetbrains forums.
I already found Idea-Android but I'm not really sure how they create the (for example) Manifest.xml file.

JetBrains IDE with Demandware

I was wondering if anyone has used Demandware with any of JetBrains IDE. I've always just used text editors, and the Terminal. It seems like Demandware UX Studio is only for Eclipse?
Any help or suggestions is much appreciated.
In theory you can use your editor of choice to edit Demandware ISML files and DW Script files such as Sublime or JetBrains, but you would need some kind of WebDAV-Sync solution to automatically upload your files to the server.
You'll also lose debugging when you move away from Eclipse. Editing pipelines will also be quite challenging, as you won't have the visual IDE to edit the files (which are basically just XML).
Fortunately there has been some movement in the community and a plugin has been created for Jetbrains, it is available here: https://github.com/nek4life/intellij-demandware/
There is a Sublime Text 3 plugin (officially supported by Demandware) that will handle webdav syncing with your sandbox server. Pipelines are going away with the new development model and script debugging from Sublime Text is listed as a current TODO. You will still need to return to Eclipse to debug until that feature is finished, but it's nice to see they are making progress.
https://packagecontrol.io/packages/Entropy
Till now, Demandware development extension is available only for eclipse IDE. After installing the demandware development extension, you can take code checkout the storefront cartridges and create the DW server connection in eclipse, which will help you auto upload files to server.
You can use any other IDE, but that will not help you auto sync/auto upload files on server and with pipeline debugging options.
You can use Aptana studio. It is compatible with DW studio plugin.
To use Aptana:
Install Aptana
Go to Window->Preferences->Install/Update->Available Software
Add luna location http://download.eclipse.org/releases/luna/
Enable "Eclipse Kepler Update Site"
Install dw studio as described in documentation (use version for luna)
Optionally configure scss default editor: Aptana Studio 3 code assist for Sass (.scss) files

Using WebStorm and IntelliJ at the same time

I have code for an existing web application built with java, jsp, and js.
I would like to use WebStorm for the JS part of the development and the free edition of IntelliJ for the rest of the code, but it doesn't look like I can open the same project in both as they seem to step on each other.
Is there a way I can do this without having to close/switch the IDEs all the time?
Opening Idea project in WebStorm and vice versa is not a recommended approach. Different Idea-based IDEs (RubyMine, PHPStorm, WebStorm, PyCharm, IDEA) have the same project format (.idea) but different settings/module types that aren't compatible. So we strongly recommend to avoid sharing the same project between IDEs.
If you like to work on the same front-end sources in different IDEs, I'd suggest sharing the sources folder(s) but keeping the .idea folders separated: just create a new empty project in WebStorm and add your sources root as additional content root in Settings/Directories

Sonar PDF plugin does not work

I have downloaded the Sonar PDF reports plugin and added the widget to the dashboard. I have restarted the Sonar server. I have executed the Sonar analyzer through Ant, but the PDF report cannot be downloaded (the Widget is empty and cannot be seen). The Sonar logs give no indication of PDF generation. Any ideas?
Known issue with ANT builds, see SONARPLUGINS-2314
And it looks like there is no immediate solution, they recommend using the commercially supported plugin.....
https://github.com/NithinManmohan/PDFQube
still in its infancy, in alpha phase..