Gradle eclipse classpath containers

Hi again Peter,

Sorry for my late reply. I am quite busy these days … I’ll try to put some sample code of what i want …

Assuming I have created a container in the class path like this

eclipse.classpath {
 containers 'my.container'
}

Now, eclipse expects ‘my.container’ to be an implementation of IClasspathContainer. Am I right about this ? As I did not find an IClasspathContainer implementation in Gradle that knows how to resolve gradle dependencies, I suppose I cannot use this approach

Creating a USER_LIBRARY container and manipulating the XML ( .classpath )

configurations {
                      MY_CONFIGURATION
}
  eclipse.classpath {
   containers 'org.eclipse.jdt.USER_LIBRARY/MY_CONTAINER'
          file {
               beforeMerged { classpath ->
                       classpath.entries.findAll { entry -> entry.kind == 'con' && entry.path == 'org.eclipse.jdt.USER_LIBRARY/MY_CONTAINER' }
//Here I want to iterate over the jars in MY_CONFIGURATION and associate those jars to MY_CONTAINER.
//How do I do the association between the jars in my configuration and my container
 //so that in eclipse I can see the jars in MY_CONFIGURATION under MY_CONTAINER
//user library container ? Is it possible ?
             }
}

Was I confusing again ?

Thanks