What I really need is an equivalent of this from Eclipse with Netbeans:
I prefer this solution since there is nothing to download, all based on Ant build (~20 lines). That way there is no additional dependency to bother with. If you have a couple of minutes, you can learn about Ant too.
It seems like the link to the original Article is broken (thanks Oracle). Here is another link.
The original article is also available from Oracle link.