Ant-contrib + NetBeans

Posted June 30, 2010

I've seen one or two posts on how to try to easily use ant-contrib from within a NetBeans project. I didn't like solution one because it requires changing files within the NetBeans directory structure (something I am always reluctant to do), and solution two seemed too rely too heavily on relative pathing. However, I personally keep all API and such under the "local" directory of my user home. I thus favour this solution (added to the start of the build.xml file):

    <taskdef resource="net/sf/antcontrib/antcontrib.properties">
        <classpath>
            <pathelement location="${user.home}/local/ant-contrib/ant-contrib-1.0b3.jar"/>
        </classpath>
    </taskdef>

Comments

There are no comments for this post.

No comments found

Add comment

Visit my Friends and Family

If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.