Re: [gradle-user] How to prevent "assemble" from executing my custom jar task?

2011-07-22 Thread Luke Daley
On 23/07/2011, at 6:24 AM, Szczepan Faber wrote: >> 1) how to I apply this filter throughout ALL assemble tasks (project >> and subproject). Do I need to call project.allProjects and iterate >> each project, then apply this filter to each assemble task? > > Yeah, pretty much. You can just use

[gradle-user] Re: Accessing AntBuilder from custom task class

2011-07-22 Thread TheKaptain
The Gradle Project object allows access to its internal Ant builder through the 'ant' call": http://gradle.org/current/docs/javadoc/org/gradle/api/Project.html#ant%28groovy.lang.Closure%29 -- View this message in context: http://gradle.1045684.n5.nabble.com/Accessing-AntBuilder-from-custom-task-

Re: [gradle-user] War packed with duplicated jars

2011-07-22 Thread Rene Groeschke
Hi, I forgot to mention, that instead of moving your lib folder, you can exclude it from being copied during step 2 described below. adding war{ exclude 'WEB-INF/lib/*' } to your build file should do the trick, regards, René Am 23.07.11 01:08, schrieb Rene Groesc

Re: [gradle-user] War packed with duplicated jars

2011-07-22 Thread Rene Groeschke
Hi Ricardo, I think the reason why you have duplicated libs in your war is the location of your libs. when packaging the war, gradle merges 1. your compiled sources, 2. your webapp folder and 3. the dependencies of your project into the war file. The when referencing libs you already have in yo

[gradle-user] War packed with duplicated jars

2011-07-22 Thread Ricardo Mayerhofer
Hi all, I'm facing an issue when using war plugin. The resulting war is packed with duplicated jars in WEB-INF/LIB folder (zip allows files with same name). All jars are duplicated. The build script is quite simples and is listed below: apply plugin: 'war' apply from: 'xmlbeans.gradle' weblogicL

Re: [gradle-user] gradle tasks

2011-07-22 Thread Levi Yourchuck
I am trying to do this: gradle clean create_distro_A clean create_distro_B There needs to be a 'clean' in between 'create_distro_A' and 'create_distro_B'. Otherwise distro B is corrupted by distro A. > task compileDistros(dependsOn: compile_distro_A, > compile_distro_B) > > Though I suspect th

Re: [gradle-user] How to prevent "assemble" from executing my custom jar task?

2011-07-22 Thread Szczepan Faber
> 1) how to I apply this filter throughout ALL assemble tasks (project > and subproject).  Do I need to call project.allProjects and iterate > each project, then apply this filter to each assemble task? Yeah, pretty much. > 2)  the code snippet is in build script form.  This code would go > insid

Re: [gradle-user] problem exporting war

2011-07-22 Thread Szczepan Faber
Hmmm, what if you try running ':com.validis.amatino:cleanEclipseWtpComponent' first? >From the stack trace it looks like the reading the component information from existing wtp files is failing. Cheers! On Fri, Jul 22, 2011 at 5:15 PM, Andres Olave wrote: > We are having a problem with the ecli

Re: [gradle-user] Re: GroovyDoc task and PermGen

2011-07-22 Thread Russel Winder
Peter, On Fri, 2011-07-22 at 10:37 -0700, Peter Niederwieser wrote: > Russel Winder wrote: > > > > I guess the compilers are forked though? > > > > It seems that javac isn't forked by default, but groovyc is. Hummm... I'd suggest that inconsistency is not a good thing. To fork, or not to fork

[gradle-user] Re: GroovyDoc task and PermGen

2011-07-22 Thread Peter Niederwieser
Russel Winder wrote: > > I guess the compilers are forked though? > It seems that javac isn't forked by default, but groovyc is. Russel Winder wrote: > > Not sure if there is anything in this but if I run "gradle install" then > the groovydoc fails. If I run "JAVA_OPT='-Xmx1024M' gradle ins

Re: [gradle-user] Re: GroovyDoc task and PermGen

2011-07-22 Thread Russel Winder
Peter, On Fri, 2011-07-22 at 05:56 -0700, Peter Niederwieser wrote: > Russel Winder wrote: > > > > Is there a way of allocating more memory for the GroovyDoc task. > > > > The Gradle Groovydoc task runs the Ant groovydoc task in the same JVM, so > you have to increase PermGen space for Gradle's

Re: [gradle-user] How to prevent "assemble" from executing my custom jar task?

2011-07-22 Thread phil swenson
I'm not sure it's possible to do it the "holistic" way in my situation. My jar tasks depend on other assemble jar tasks being executed first, and has other dependencies as well. So I end up in a situation where assemble wants my jar tasks to execute but my jar tasks depend on assemble to finish a

[gradle-user] problem exporting war

2011-07-22 Thread Andres Olave
We are having a problem with the eclipse plugin. We have a number war files that we need built. They are all setup fairly similarly. 3 of them are building fine, but one of them encounters the following problem. 16:00:17.241 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':c

[gradle-user] Re: groovy.lang.MissingPropertyException with grails plugin

2011-07-22 Thread arolave
thanks Luke. I sorted my plugins out and gradle now works fine -- View this message in context: http://gradle.1045684.n5.nabble.com/groovy-lang-MissingPropertyException-with-grails-plugin-tp4599783p4623507.html Sent from the gradle-user mailing list archive at Nabble.com. ---

Re: [gradle-user] Subprojects as dependencies

2011-07-22 Thread Hani Suleiman
I'd basically like to say: - Download some zip file expressed as a dependency - unpack the file into the project (file will contain resources, jsp files etc, potentially with its own build.gradle) - Include it in the project via settings.gradle The key problem isn't the classes dependency, but t

[gradle-user] Re: Accessing root project "clean" task as dependency

2011-07-22 Thread Peter Niederwieser
enelson wrote: > > When I run Gradle, I get an error saying that it can't resolve the > dependencies for task 'jarUpSubModules'. So then I tried printing out all > the tasks of the root project and 'clean' isn't one of them. Do I simply > not have access to those core project tasks from within

[gradle-user] Re: GroovyDoc task and PermGen

2011-07-22 Thread Peter Niederwieser
Russel Winder wrote: > > Is there a way of allocating more memory for the GroovyDoc task. > The Gradle Groovydoc task runs the Ant groovydoc task in the same JVM, so you have to increase PermGen space for Gradle's JVM. Russel Winder wrote: > > The JavaDoc/GroovyDoc files are missing lots of

Re: [gradle-user] Subproject test source depends on another subproject's test binaries

2011-07-22 Thread Matt Stine
Tried both solutions. Both seem to work - if I change Luke's solution to say sourceSets.test.classes rather than output. Adam - if you don't mind, please explain to me the significance of "evaluationDependsOn" in this case. Thanks! -Matt On Thu, Jul 21, 2011 at 10:23 PM, Adam Murdoch wrote: >

[gradle-user] Re: Subprojects as dependencies

2011-07-22 Thread Peter Niederwieser
Hani Suleiman wrote: > > I have a project where dependencies are composed of a number of files (not > just jar files) that I need unpacked and included as sub projects, and was > wondering what the best approach for this is. > What do you mean by "dependencies that I need [...] included as sub

[gradle-user] Subprojects as dependencies

2011-07-22 Thread Hani Suleiman
Hi all, I have a project where dependencies are composed of a number of files (not just jar files) that I need unpacked and included as sub projects, and was wondering what the best approach for this is. The solution I'm pondering is declaring the dependencies in buildSrc, then having a task i

[gradle-user] GroovyDoc task and PermGen

2011-07-22 Thread Russel Winder
The gant_groovy1.9:groovydoc task of the Gradle build of Gant (i.e. Gant built against the new Groovy 1.9.0-beta-1) is running out of PermGen. This is the first time I have ever seen this sort of thing -- Gradle's defaults have always been fine for everything in the past. Is there a way of allocat

Re: [gradle-user] Intercepting log output for embeded Gradle

2011-07-22 Thread Grzegorz Gigon
Thanks for that Rene How do I pass the parameters to a build (project parameters that I pass through command line with -P) ? I got as far as: GradleConnector.newConnector().connect().newBuild().forTasks('tasks').run() and it works fine. I need to call another task that takes a bunch of parameter

[gradle-user] Soon Dee Chua/ARO/SG/ASIA/CGUGROUP is out of the office.

2011-07-22 Thread Soon Dee Chua
I will be out of the office starting 22/07/2011 and will not return until 23/07/2012. I am no longer with the Company. For all matter on Project Felix 2 please write to Michael Ang, Ruby Yuen, Rajit Kapoor, Nadeema Ajihil For all matters regarding to iAdviser, please write to Chong Tai Yet For a