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' )
        }

I am sure there must be a way of getting the name of the archive since
Gradle must already know it, but I can't see it in the documentation --
my fault possibly but any pointers would be good.

The real point is that the above causes:

        |> gradle -r
        
        Build failed with an exception.
        Run with -s or -d option to get more details. Run with -f option to get 
the full (very verbose) stacktrace.
        
        Build file 
'/home/users/russel/Repositories/Bazaar/Masters/GradleCoberturaPlugin/build.gradle'
 line: 42
        
        A problem occurred evaluating root project 'GradleCoberturaPlugin'.
        Cause: Warning: Could not find file 
/home/users/russel/Repositories/Bazaar/Masters/GradleCoberturaPlugin/build/gradle-cobertura-plugin-0.2-SNAPSHOT.jar
 to copy.
        
        BUILD FAILED
        
        Total time: 5.683 secs

This is fundamentally wrong, the ant.copy should not be being executed
during a -t operation.

If it is agreed this is a bug I will write up a JIRA.


-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: [email protected]
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:[email protected]
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to