On Tue, Mar 23, 2010 at 09:56, Hans Dockter <[email protected]> wrote:

> Hi Jason,
>
> On Tue, Mar 23, 2010 at 3:10 PM, Jason Porter <[email protected]>wrote:
>
>> I have an existing ant build and I'd like to do the same thing in Gradle.
>>  The ant build creates a couple of jars and then adds them to the war (yes,
>> I know this should probably be three projects, but can't get the manager nor
>> the team to go for it).
>
>
> Fair enough. That's what Gradle is about :)
>
>
>> How can I create the jars (not the hard part) and have the war exclude the
>> jared classes from the WEB-INF/classes directory?  I'm using a current
>> version of 0.9 (compiled last Thursday).
>>
>
> That should do the job:
>
> war {
>    dependsOn jar1, jar2
>    classpath = [jar1.archivePath, jar2.archivePath]
> }
>

Wow, that seems pretty easy.  I'll give it a shot and see what happens.

As an aside, seems like there's no one hanging out in IRC anymore :( We had
some good discussions going on.


>
> - Hans
>
> --
> Hans Dockter
> Founder, Gradle
> http://www.gradle.org, http://twitter.com/gradleorg
> CEO, Gradle Inc. - Gradle Training, Support, Consulting
> http://www.gradle.biz
>
>
>>
>> --
>> Jason Porter
>>
>> Software Engineer
>> Open Source Advocate
>>
>> PGP key id: 926CCFF5
>> PGP key available at: keyserver.net, pgp.mit.edu
>>
>
>


-- 
Jason Porter

Software Engineer
Open Source Advocate

PGP key id: 926CCFF5
PGP key available at: keyserver.net, pgp.mit.edu

Reply via email to