Hi gradle experts,
I have a gradle project with a runtime dependency such as:
//DB dump file for current project
runtime ‘com.mycompany.db:’+project.name+’:TRUNK-SNAPSHOT’ }
The dependency is an DB dump file.
At runtime, the dependency is resolved and a file is downloaded from repository server and put into gradle cache directory, such as: $GRADLE_HOME/caches/artifacts-14/filestore/com.mycompany.db/myprojectl/TRUNK-SNAPSHOT/dmp/myprojectl-TRUNK-SNAPSHOT.dmp
I would like to write a gradle task to invoke an external process to import the dump file into a local DB. To do so, an external process will be invoked from gradle (impdp) and it will need to get the full path of the dump file.
Any idea on how to retrieve the full path of a file defined in runtime dependency? (this is similar to what is done in gradle eclipse to generate eclipse .classpath/classpathentry/sourcepath)