Unfortunately, I am not familiar with the netbeans configuration file.
The following is the integration goal that I used to generate Eclipse metadata files:
Perhaps you could adapt it.
<target name="eclipse"> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="build.path"/> <ivy:cachefileset setid="libfiles" conf="compile"/> <groovy> <arg value="${src.dir}"/> <arg value="${build.dir}/classes"/> import groovy.xml.MarkupBuilder // // Generate the project file // project.log("Creating .project") new File(".project").withWriter { writer -> def xml = new MarkupBuilder(writer) xml.projectDescription() { name(project.name) comment() projects() buildSpec() { buildCommand() { name("org.eclipse.jdt.core.javabuilder") arguments() } } natures() { nature("org.eclipse.jdt.core.javanature") } } } // // Generate the classpath file // // The "lib" classpathentry fields are populated using the ivy artifact report // project.log("Creating .classpath") new File(".classpath").withWriter { writer -> def xml = new MarkupBuilder(writer) xml.classpath() { classpathentry(kind:"src", path:args[0]) classpathentry(kind:"output", path:args[1]) classpathentry(kind:"con", path:"org.eclipse.jdt.launching.JRE_CONTAINER") project.references.libfiles.each { classpathentry(kind:"lib", path:it) } } } </groovy> </target>
source share