Hi, Xiaojian

that is a good recommendation.

We may use that for new projects, but at this moment we can not change the
existing ones

Thanks,

Jefferson



2011/5/19 Xiaojian Ao <[email protected]>

> Why not follow the mavan standard layout template ? Since gradle also
> support it?
>
> src/main/java
> src/main/webapp
>
>
> On Thu, May 19, 2011 at 9:22 PM, Jefferson Magno Solfarello <
> [email protected]> wrote:
>
>> Hi Rene and Ken,
>>
>> I just created a file called build.gradle with the following:
>>
>> *apply plugin: 'war'
>>
>> sourceSets.main.java.srcDirs = ['src']
>> webAppDirName = 'WebContent'*
>>
>> It works to me :)
>>
>> Is there an EAR plugin or something similar?
>>
>> Thanks
>>
>> Jefferson
>>
>>
>>
>> 2011/5/19 Ken Sipe <[email protected]>
>>
>>> Jefferson,
>>>
>>> if you are totally new... then here are things I expect beyond Rene's
>>> comments...
>>>
>>> apply plugin: 'war'
>>>
>>> sourceSets.main.java.srcDir = 'src'
>>>
>>> Ken Sipe | [email protected] | blog: http://kensipe.blogspot.com
>>>
>>>
>>>
>>> On May 19, 2011, at 7:36 AM, Rene Groeschke wrote:
>>>
>>> > Hi "Jefferson" of course,
>>> > sorry :-)
>>> > Am 19.05.11 14:33, schrieb Rene Groeschke:
>>> >> Hi Magno,
>>> >>
>>> >> the only thing you should adapt in your build script is to set the
>>> webAppDirName property to "WebContent". Now your war task should create a
>>> correct war file.
>>> >> regards,
>>> >> René
>>> >>
>>> >> Am 19.05.11 14:17, schrieb Jefferson Magno Solfarello:
>>> >>> Hello all,
>>> >>>
>>> >>> I am a Java developer and new to Gradle / Groovy. I am very excited
>>> to explore this new world :)
>>> >>> I intend to use Gradle to build several applications. I use to create
>>> my Web Apps using Eclipse so it have the following layout:
>>> >>>
>>> >>> src                                          // Java source code and
>>> resources
>>> >>> WebContent                             // root of Web App
>>> >>> WebContent/WEB-INF/classes  // compiled classes and resources (from
>>> src)
>>> >>> WebContent/WEB-INF/lib          // libraries needed at runtime
>>> >>>
>>> >>> I tried to read the war plugin documentation but I am still confused
>>> about how to configure it.
>>> >>> So I need some help to customize the directory tree as above
>>> >>>
>>> >>> Regards,
>>> >>>
>>> >>> Jefferson
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > -----------------------
>>> > regards René
>>> >
>>> > rene groeschke
>>> > http://www.breskeby.com
>>> > @breskeby
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe from this list, please visit:
>>> >
>>> >   http://xircles.codehaus.org/manage_email
>>> >
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>
>

Reply via email to