Has anyone had any luck with Gradle build file generation?

I'm creating a plugin to help jEdit plugin developers get started. The
plugin thus far will allow users to run 'gradle init' in their directory,
and it'll create the base directory structure. I'd like to be able to safely
add things to the build file after commands are run. For example, in the
'init' task I'd like to ask the user if their plugin is intended for jEdit
4.3, jEdit 4.4, or jEdit 4.5. Based on their choice, I'd want to add the
appropriate dependency to the build.gradle file.

I suppose this is one benefit to being able to use XML, java processes can
manipulate the XML structure pretty easily without worrying about closing
braces in the wrong places.

I saw this ticket: http://jira.codehaus.org/browse/GRADLE-197

Is it a best bet to wait for something to come out of it, or is there a
work-a-round I can use for this?

Thanks for any help.
Eric Berry

-- 
Learn from the past. Live in the present. Plan for the future.
Blog: http://www.townsfolkdesigns.com/blogs/elberry
jEdit <http://www.jedit.org> - Programmer's Text Editor
Bazaar <http://bazaar.canonical.com> - Adaptive Version Control System

Reply via email to