Hi.
We have a project like so,
apply plugin: 'base'
apply plugin: 'java-base'
task GenPropsSet {
ext.srcFilePre
= file("${SRC_DIR}/util/Properties.prologue")
ext.srcFilePost = file("${SRC_DIR}/util/Properties.epilogue")
ext.srcFileAct
= file("${SRC_DIR}/util/Properties.txt")
ext.destFile
= file("${SRC_DIR}/util/Properties.java")
inputs.files (srcFilePre, srcFilePost, srcFileAct)
outputs.file destFile
doLast {
// Logic to create 'destFile' goes here
}
}
When I try,
gradle cleanGenPropsSet it fails saying
“Task ‘cleanGenPropsSet’ not found in root project ‘Project’”
Configurations: ------------------------------------------------------------ Gradle 1.11 ------------------------------------------------------------
Build time:
2014-02-11 11:34:39 UTC Build number: none Revision:
a831fa866d46cbee94e61a09af15f9dd95987421
Groovy:
1.8.6 Ant:
Apache Ant™ version 1.9.2 compiled on July 8 2013 Ivy:
2.2.0 JVM:
1.7.0_45 (Oracle Corporation 24.45-b08) OS:
Windows XP 5.1 x86