On 27/11/2010, at 3:47 AM, frenchyan wrote:
Hello
In a multi-project environment, I have a project1 which is a java project
defined this way:
// project1
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'org.json:json:20090211'
runtime
Hey,
I have these tasks:
def my_dir = test_dir
task A(type: Delete) {
delete = my_dir
}
task B(dependsOn: A) {
outputs.upToDateWhen {
file(my_dir).exists()
}
doFirst {
ant.mkdir dir: my_dir
}
}
I was assuming that when a task is up-to-date its dependencies wouldn't be
executed. However, B is
What are the semantics you are trying to communicate here? What are
you trying to accomplish?
~~ Robert.
On 27 November 2010 17:48, Steven Devijver sdevij...@yahoo.fr wrote:
Hey,
I have these tasks:
def my_dir = test_dir
task A(type: Delete) {
delete = my_dir
}
task B(dependsOn: A) {
Robert Fischer wrote:
What are the semantics you are trying to communicate here? What are
you trying to accomplish?
~~ Robert.
The script is a simplification from a more complex one. Basically I don't
want A to delete a folder when B's work in that folder is up to date.
Steven
--
Hi
I tried to define a task type DirSizeCheck in an external script and include it
in my main script:
apply from: 'other.gradle'
Gradle finds the script but, unfortunately, it does not recognize my task type
and errors out in my main script with:
A problem occurred evaluating root project
On 28/11/2010, at 10:21 AM, Etienne Studer wrote:
Hi
I tried to define a task type DirSizeCheck in an external script and include
it in my main script:
apply from: 'other.gradle'
Gradle finds the script but, unfortunately, it does not recognize my task
type and errors out in my