Hello again!
Ant has Perforce tasks implemented by default so I wanted to reuse them what
is much simpler than using P4Java framework. To get it working on gradle the
only way I found is by copying libraries jakarta-oro-2.0.8 and
ant-apache-oro-1.7.1 to gradle/lib folder what doesn`t look good. A small
note that I need this working from init.gradle script what makes things more
complicated. This didn`t worked for me couse ant classpath is loaded on
gradle startup as I understand:
initscript {
repositories {
...
}
dependencies {
classpath group: 'ant-apache-oro', name: 'ant-apache-oro', version:
'1.7.1'
classpath group: 'jakarta-oro', name: 'jakarta-oro', version:
'2.0.8'
}
}
groovy.util.AntBuilder ant = new groovy.util.AntBuilder()
ant.p4sync(view: "...#head")
--
View this message in context:
http://old.nabble.com/Using-ant.p4sync-task-from-gradle-0.8-tp26829605p26829605.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