Virtage Devblog

Welcome to Virtage developer blogs and tutorials. Mostly on desktop and web applications using Eclipse and OSGi in Java. Also our on our beloved (Ubuntu) Linux.

How to get file resource from Maven src/test/resources/ folder in JUnit test?

Maven standard directory layout guide us to place any non-Java files for testing under src/test/resources/ folder. They are automatically copied over to target/test-classes/ folder during test phase.

Continue reading »

Building Czech Eclipse community: Calling for Eclipse zealots

About a three years ago I stumbled upon phenomenon Eclipse and it was love at first sight. However it’s not quite long ago and maybe not long enough to believe it’s serious. About a year ago I started to think how many Eclipse zealots is in Czech Republic. About a month ago I started Eclipse [...]

Continue reading »

Eclipse (and Eclipse based apps) on Ubuntu 13.04 desktop hacks

Using Eclipse with full user experience with newest Ubuntu 13.04 is tricky. Trickier then in previous Ubuntu releases as Ubuntu changes with every further release. The following tips also apply to any Eclipse-based apps like Aptana or Plexflow.

Continue reading »

Email sending from Ubuntu Server via Google Apps SMTP with MSMTP

It’s common request to allow daemons like cron or applications to send outgoing email to server’s administrator. Instead of configuring full-blown email server like Postfix you can install lightweight forwarder to real external SMTP server, while keeping binary compatibility with traditional Unix sendmail MTA.

Continue reading »

My Maven project needs not (yet) Mavenized JARs! Do’s and don’ts

There are still a lot of JARs that yet doesn’t support Maven or will never do (closed source, legacy libraries, …). Or for your own “home-made” JARs produced by Ant (optionally Ant launched from Maven project). In such challenging case you have number of approaches that I will try to cover and compare in the [...]

Continue reading »

Eclipse quick tip: Create multiple folder hierarchy in one step

Have you ever need to quickly create multiple folder hierarchy at once? E.g. /src/main/java/com/virtage/devblog/foobar/ folder path? Ugh. Linux/MacOS may be aware of mkdir -p but is available in pure Eclipse too.

Continue reading »

Embed and run Ant tasks and scripts from Maven

Migrating from Ant-driven build to Maven is pretty challenging. Sometimes is easier to just launch Ant tasks or whole script as is during Maven lifecycle phase. Let’s call it embedding Ant into Maven. I will cover this use case with help of AntRun Maven plugin and Eclipse.

Continue reading »

Canon iSensys MF4010 multifunctional on Ubuntu 12.04

Print and scan with Canon iSensys MF410 series multifunctional on Ubuntu 12.04+ in 10 easy steps.

Continue reading »

Add missing Javadoc to Lotus Domino Designer help

Missing Java Notes API Javadoc is very annoying aspect of Lotus Domino Designer. I don’t understand why IBM don’t ship it. Though there is some documentation it is far from being what Java developer expect. Moreover this documentation is not easily available to help from Lotus Domino Designer Java editor. Let’s see how to add [...]

Continue reading »

Hello world with Jetty + Maven + Eclipse WTP tutorial

Eclipse Web Tools Project (WTP) is tooling to ease development Java EE and web applications. It provides out-of-the-box support for Tomcat servlet container. For unknown reason it misses popular Jetty container despite Eclipse Foundation project too. In this tutorial I present how to create Maven based web project in Eclipse WTP which runs on Jetty. [...]

Continue reading »