Hello,
I have a project from which it is generated more than one Jar.
Now I have forced the generation of the jar and their upload
project(':prjA') {
createTask('archive_jar', overwrite: true, dependsOn: 'test' ) { task ->
ant.jar(destfile: task.project.buildDir.path+"/common.jar",
compress: true, index: false ) {
fileset(dir: task.project.buildDir.path+"/bin",
includes:
"com/prjA/common/**")
}
ant.jar(destfile: task.project.buildDir.path+"/core.jar",
compress:
true, index: false ) {
fileset(dir: task.project.buildDir.path+"/bin",
includes: "com/prjA/core/**")
}
createTask('uploadLibs', overwrite: true, dependsOn: 'libs' ) { task ->
ant.copy( file: task.project.buildDir.path+"/common.jar", todir:
mainRepo.path, overwrite:true)
ant.copy( file: task.project.buildDir.path+"/core.jar", todir:
mainRepo.path, overwrite:true)
}
task('uploadInternalLibs').enabled = false
}
The problem is that the upload is done everytime even if the jar has
not been changed. Is it correct?
Thanks
Regards,
Walter
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email