Hi Steve,
On Sun, Oct 10, 2010 at 2:59 PM, Steve Ebersole <[email protected]> wrote:
> Is there to request an empty <developers/> element be added to the
> generated
> pom? I tried just:
>
> developers{
> }
>
We are delegating to the native Polyglot Maven code. May be we should do our
own builder to be able to fix problems like this ourselves.
What you can do is to manipulate the xml before it is written:
pom {
withXml { xmlProvider ->
def xml = xmlProvider.asString()
xml.insert(xml.lastIndexOf('</project>'), ' <developers/>\n'
}
}
The xmlProvider is returning a StringBuffer representation of the xml to be
written.
It would be much nicer I think if you could just manipulate a
groovy.util.Node object. We should add a asNode method to the xmlProvider.
- Hans
--
Hans Dockter
Founder, Gradle
http://www.gradle.org, http://twitter.com/gradleorg
CEO, Gradle Inc. - Gradle Training, Support, Consulting
http://www.gradle.biz
>
> But that leads to nothing being written.
>
> Why? For some reason the Nexus server we deploy to requires there to be a
> <developers/> section, even though it does not care if you actually put any
> developers in there.
>
>
> --
> Steve Ebersole <[email protected]>
> http://hibernate.org
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>