On Wed, Jan 20, 2010 at 11:59 AM, MartyMcFly <[email protected]>wrote:
> > Thanks for your answers.... they really do help :-) > > I know of ant4eclipse and we currently using it... but actually I do want > to > be free of that. > > The conversion I would need is: > > - find out the project dependencies via .classpath file > - resolve them to the local repository > > ant4eclipse cant do that - but if its that easy as Hans wrote... that would > be great > You could combine both approaches. You could let ant4eclipse do the parsing, get the path information from Ant and translate it into Gradle DSL speech. - Hans -- Hans Dockter Founder, Gradle http://www.gradle.org, http://twitter.com/gradleorg CEO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz > > Cheers > Marty > > > Steven Devijver-3 wrote: > > > > > >> > >>>- How is the integration of Gradle with eclipse ? Is it somehow possible > for > >>>the developer to have a plugin with which one can enter / delete > >>>dependencies and that is then transformed into gradle syntax. > >>>Basically I want to free the developer to know about Gradle at all. > >>>E.g. Defining the dependencies in a properties file which is then read > by > >>>the build process or any other way... > >> > > > > This would be possible without problems. It just needs to be written :) > > > > For your scenario I could imagine the following strategy. You would write > > a plugin that is used in all your builds. This plugin would do two > things: > > > > 1.) Do what the template build script is supposed to do. > > 2.) Read the .classpath and configure the Gradle dependency section > > according to that. > > > > This plugin could be just another gradle script applied as described > > above. > > > > You can do stuff in there like: > > > > dependencies { > > compile files(getDependenciesFromEclipse()) > > } > > > > where getDependenciesFromEclipse returns for example a set of files. > > > > The Groovy Xml API's are fantastic. Using those for parsing the > .classpath > > files should make implementing this very convenient. > > > > > > > > Actually, there seems to be an ant4eclipse project > > (http://www.ant4eclipse.org/) which already supports converting > .classpath > > file into ant pathId's: > > > > http://3.ly/ISt6 > > > > Steven > > > > > > > > > > -- > View this message in context: > http://old.nabble.com/Migration-current-build-to-Gradle-tp27238061p27239887.html > Sent from the gradle-user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
