Hi I am currently in the process of coverting most of our old build scripts from ant to gradle.
We have a legacy ant target that we wanted to avoid rewriting.
I can get the project to build but in eclipse the build.xml file always shows that there is an error.
Error is “target unzipCougaar does not exist in this project.”
Line affected in build.xml.
<target name="csi-defrunner" depends="clean-assets, unzipCougaar, set-paths" description="Generates asset classes if necessary">
Gradle Build File
ant.importBuild 'build.xml'
ant.version = version
ant.branchId = "trunk"
ant.buildDate = buildDate
...
task unzipCougaar(type: Copy) {
from(zipTree(configurations.cougaar.singleFile))
into 'build/cougaar'
}
Is there something specific I need to do so that the build.xml file knows about the gradle task. I thought that this line was what accomplished this.
ant.importbuild 'build.xml'
Is this maybe just an eclipse problem? The build seems to work fine and it runs properly.
Info:
Eclipse Luna
Gradle 2.4
Java 8
ant 1.9.4
ivy 2.4.0
Any help would be appreciated.
Thanks, Brian