Excellent.. at least I don't feel that bad.  looking at the mentions of 
"destinationDir" in the 0.8 User guide.. it is (impossible?) to deduce they 
apply to the War plugin/task.

Best I could find in the current docs:
Archives have a destinationDir property to specify where the generated archive 
should be placed. It has also an archivePath property, which returns a File 
object with the absolute path of the generated archive. 

That sentence isn't near War or Jar per se .

Thanks Hans, as always, for the amazingly quick and clear answers.  You are the 
reason Gradle is going to succeed  (okay, one of the reasons i'm sure, but I 
can be extra nice!)

Roger
            
On Dec 22, 2009, at 2:41 AM, Hans Dockter wrote:

> 
> 
> On Tue, Dec 22, 2009 at 2:45 AM, Roger Studner <[email protected]> wrote:
> Was looking in the docs.. I can see setting version=xxx
> 
> but say I have a folder srtrong
> 
> /Users/me/myProj/build.gradle
> 
> in the build.gradle I do:
> version='9.0'
> 
> when I do gradle war
> 
> I always successfully(WOO!) get
> builds/libs/myProj-9.0.war
> 
> How can I both rename myProj to something else:
> myProjYay-9.0.war
> 
> and even more fun, how to make it put that somewhere other than build/libs
> 
> If you want to change something only for a particular archive. For example 
> for the default war archive:
> 
> war {
>    destinationDir = 'somePath'
>    baseName = 'mywar' // leads to mywar-0.9.war
> }
>  
> See also: 
> http://gradle.org/latest/docs/groovydoc/index.html?org/gradle/api/tasks/bundling/AbstractArchiveTask.html
> 
> If you want to change rules for all archives (e.g. change the conventions) 
> the approach is differently. In the link Tomek has pointed out you would have 
> to change:
> 
> archivesBaseName and distsDirName (relative to buildDir)
> 
> To change the project name you would need to do this in the settings.gradle.
> 
> A couple of things:
> 
> We hope to provide an IntelliJ plugin in the next month that provides content 
> assistant in a configure closure.
> An IDE plugin should make it easy to access javadoc/groovydoc and source code 
> of the Gradle API.
> 
> - Hans
> 
> --
> Hans Dockter
> Gradle Project Manager
> http://www.gradle.org
> 
> 
> Thanks,
> Roger
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 
> 
> 

Reply via email to