By Martin Grebac on Mar 23, 2011
Just a short migration note ... this blog will be migrated to blogs.oracle.com in a month or two.
While working on some parts of JAXB, and using NetBeans myself for development, I came across the two projects parse-ipr and parse-dot-classpath, which are useful when you need to invoke your project files from command line without an IDE. I developed a NetBeans equivalent of those: parse-nb. What it does?
Basically, it allows you to parse your NetBeans Java project files (nbproject/project.xml, project.properties) and give you a java classpath-way formatted string as an output.
So if you run it on JAXB2.1 project (which I just updated from freeform to regular NB J2SE project), you get a scary output like this:
I believe you would never want to write or maintain this by hand, and it is still useful to have it to be able to run e.g. an individual tests manually from command line, so this way you can write your own scripts to set whatever classpath you wish to set. Read more at parse-nb website, and download from the project's download area.
I do run it as a part of bash setup, so that I can then always start debugging tests like this:
java $DBG $JB21 TestCaseRunner .
And here's a usage info:
It of course lacks in many areas, so improvements are always welcome! I'd also appreciate if the NetBeans library system gets much simpler, as it's very hard to work with currently.
Guillaume visited the Prague's Sun site, where he gave a presentation on Groovy success stories, to describe where and how the Groovy is used and how it helps in development/production environments, then we had a chance to chat and ask some questions.
The views expressed on this [blog; Web site] are my own and do not necessarily reflect the views of Oracle.