Hi jan,

I think at the moment you have to do this manually in your build script.
I've added aspectj nature to my project with the following lines in my
build script:
-----

eclipseProject.doLast {
        def projectFile = project.file(eclipseProject.PROJECT_FILE_NAME)

    def reader = new org.dom4j.io.SAXReader()
    def doc = reader.read(projectFile)
        def builders = doc.selectSingleNode('/projectDescription/buildSpec')
        def buildCommandElement = builders.addElement('buildCommand')
        
buildCommandElement.addElement('name').addText('org.eclipse.ajdt.core.ajbuilder')
        buildCommandElement.addElement('arguments')


        def natures = doc.selectSingleNode('/projectDescription/natures')
    natures.addElement('nature').addText('org.eclipse.ajdt.ui.ajnature')
        // Eclipse pulls the decoration from the first nature. Make groovy be 
first.
    natures.setContent(natures.content().reverse())

    def writer = new org.dom4j.io.XMLWriter(projectFile.newWriter(),
org.dom4j.io.OutputFormat.createPrettyPrint())
    writer.write(doc)
    writer.close()
}

-----

not that groovy yet, but it works.

regards,
René


Am Di, 30.03.2010, 17:06, schrieb Jan Ehrhardt:
> Hello,
>
>
> can I configure the Eclipse plugin to add further natures to my Eclipse
> '.project' file?
>
>
> Regards
> Jan Ehrhardt
>
>



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to