Russel Winder wrote:
I am experimenting with a Gradle build.  I have the task:

        task refresh ( dependsOn : 'jar' , description : 'Refreshes the jar in 
the jar directory.' ) {
          ant.copy ( file : buildDir.path + System.properties.'file.separator' 
+ archivesBaseName + '-' + version + '.jar' , toDir : 'jar' )
        }


You are running the copy during the configuration phase.  I think you want:
task refresh ( dependsOn : 'jar' , description : 'Refreshes the jar in the jar directory.' ) << { ant.copy ( file : buildDir.path + System.properties.'file.separator' + archivesBaseName + '-' + version + '.jar' , toDir : 'jar' )
     }

Note the "<<"

This is a subtle and confusing detail.

--
Steve Appling
Automated Logic Research Team

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to