Re: [gradle-user] compile a flex program with Gradle

2010-04-14 Thread Adam Murdoch
On 14/04/10 6:55 AM, Rene Groeschke wrote: Hi, Am 13.04.10 15:36, schrieb gperlade: Thanks you for the answers, but I think I haven't got be clear in my last message. The task mxmlc is launch but my programme needs the file "PureMVC_AS3_MultiCore_1_0_5.swc" (in the libs directory) to be comp

Re: [gradle-user] compile a flex program with Gradle

2010-04-14 Thread Rene Groeschke
hmm, I think you have to set compiler.include-libraries in single quotes like this: ant.mxmlc(file: "src/Bibliotheque.mxml"){ 'compiler.include-libraries'(dir:"${basedir}, append:true){ include(name:"${lib.dir}") } } regards, Rene compiler.include-libraries in

Re: [gradle-user] compile a flex program with Gradle

2010-04-14 Thread gperlade
I have try this solution but this is the error log: * What went wrong: Execution failed for task ':compile'. Cause: Could not find property 'compiler' on root project 'BibliothequeIHM4Gradl e'. So Gradle cann't find the property compiler. I have find one tutorial http://blog.ericdaugherty.com

Re: [gradle-user] compile a flex program with Gradle

2010-04-13 Thread Rene Groeschke
Hi, Am 13.04.10 15:36, schrieb gperlade: Thanks you for the answers, but I think I haven't got be clear in my last message. The task mxmlc is launch but my programme needs the file "PureMVC_AS3_MultiCore_1_0_5.swc" (in the libs directory) to be compile. With ant i had add this to include the fil

Re: [gradle-user] compile a flex program with Gradle

2010-04-13 Thread gperlade
Thanks you for the answers, but I think I haven't got be clear in my last message. The task mxmlc is launch but my programme needs the file "PureMVC_AS3_MultiCore_1_0_5.swc" (in the libs directory) to be compile. With ant i had add this to include the file :

Re: [gradle-user] compile a flex program with Gradle

2010-04-12 Thread Rene Groeschke
Hi, I'm not used to the flex3 ant task, but I think what is missing in your build script is the classpath declaration of your custom ant task. you can do something like this to setup your custom mxmlc classpath: repositories { flatDir name: 'localRepository', dirs: 'libs' } configurations{

Re: [gradle-user] compile a flex program with Gradle

2010-04-12 Thread gperlade
I'm come back here because i have got an other problem. My program needs a library(in ./libs), but i can't say to gradle to include the file. I have try to add the lybrary with a fileset like that : task compile << { ant.taskdef(resource:"flexTasks.tasks") ant.mxmlc(file: "./src/Biblioth

Re: [gradle-user] compile a flex program with Gradle

2010-04-12 Thread gperlade
Hi Andrew and thanks for your reply. But no it's the solution (i have alreasy a FLEX_HOME environnement variable). I have finally found the solution. The variable ant.FLEX_HOME must be ant.FLEX_HOME="D:/flex3.2.0sdk" and not ant.FLEX_HOME="D:\flex3.2.0sdk" . So I have compialtion issue but no

Re: [gradle-user] compile a flex program with Gradle

2010-04-12 Thread Andrew Schetinin
Hi Gregory, Probably the Flex compiler task expects an environment variable from you, while ant.VAR defines something else (ANT property?). Try verifying it by defining an environment variable FLEX_HOME before running the build script - if it works, then you would have to find a way to define env

[gradle-user] compile a flex program with Gradle

2010-04-12 Thread gperlade
Hi, I'm actually trying to compile a flex program with gradle, but I have got some trouble. Maybe somebody have already make a task to compile Flex and could share it? I found http://blog.ericdaugherty.com/2009/08/building-flex-applications-with-gradle.html this example but it doesn't work.