Quantcast
Channel: Gradle Forums - Latest posts
Viewing all articles
Browse latest Browse all 19859

Gradle ant task multiple/concatenated classpath

$
0
0

Translating this into gradle would be something like

configurations {
   hibernateTool
} 
dependencies {
   hibernateTool fileTree('WebContent/WEB-INF/lib') {
      include '*.jar'
   } 
   hibernateTool sourceSets.main.runtimeClasspath 
} 
task myTask {
   doLast {
      ant.taskdef(name:'hibernatetool', classname: 'org.hibernate.tool.ant.HibernateToolTask', classpath: configurations.hibernateTool.asPath)
      ant.hibernatetool(...)
   } 
} 

Viewing all articles
Browse latest Browse all 19859

Trending Articles