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. vars. from inside Gradle script

Regards,

Andrew Schetinin

On Mon, Apr 12, 2010 at 3:04 PM, gperlade <[email protected]> wrote:

>
> 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.
>
> Thsi is my task create from the example :
>
> ant.FLEX_HOME="D:\flex3.2.0sdk"
>
> task compile << {
> ant.taskdef(resource:"flexTasks.tasks")
>        ant.mxmlc(file: "./src/Bibliotheque.mxml") {
>        }
> }
>
> But when I try a gradle compile the build failed and say to me, that
> FLEX_HOME can't be found. I have try to had  FLEX_HOME="D:\flex3.2.0sdk"
> and
> not ant.FLEX_HOME but it did not solve tre problem.
>
> Can you help me please?
> --
> View this message in context:
> http://old.nabble.com/compile-a-flex-program-with-Gradle-tp28216863p28216863.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


-- 
--
Andrew Schetinin

Reply via email to