Hey, It is supported and it should work just fine. I have a build like that and it correctly pulls properties from file (I'm using latest gradle). I don't see anything wrong in your configuration, either. It feels the problem lies elsewhere. Can you create a temp task in your nbproject/build-impl.xml that just reads the properties and echoes them? Then try to execute it via gradle.
Hope that helps! Szczepan On Sat, Apr 16, 2011 at 2:51 PM, Rob Stewart <[email protected]> wrote: > Hi, > > I am aware that there is no official support for Netbeans, but since > Netbeans uses ant, I thought that gradle would work. > > My build.gradle file contains: > ant.importBuild 'build.xml' > > The build.xml file in the root of a netbeans project contains: > <import file="nbproject/build-impl.xml"/> > > The nbproject/build-impl.xml file contains: > <target depends="-pre-init,-init-private,-init-libraries,-init-user" > name="-init-project"> > <property file="nbproject/project.properties"/> > </target> > > The nbproject/project.properties file contains: > web.docbase.dir=web > > > However, when I run `gradle default', the following error is thrown: > ----------------- > Execution failed for task ':-copy-webdir'. > Cause: /home/foo/myproject/${web.docbase.dir} does not exist. > > > Am I missing something in my build.gradle file, or is this method of > importing build file in sub directories not supported in gradle's > ant.importBuild function? > > (Running `ant default' works fine.). > > -- > Rob Stewart > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email
