Gradle-classpath

How could i use the .classpath from eclipse directly in gradle build scipt to compile the src using those classpath

Am not using eclipse to compile but instaed scripts. This actually works in ant with ant.getEclipseClasspath.classpath but how could i do it gradle

This has been asked before.

http://forums.gradle.org/gradle/topics/how_to_read_the_dependencies_from_an_eclipse_classpath

Tried the snippet but does’n seem to be working.

Cannot invoke method fromJarURI() on null object

Not sure why i get the above error…

Thanks