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 :
                        <compiler.include-libraries dir="${basedir}" 
append="true">
                                <include name="${lib.dir}" />
                        </compiler.include-libraries>

This is why i have try to add a fileset to include the file in the
build.gradle.

If you need all my build.gradle or an other thing feel free for ask it?

Thanks again.

Rene Groeschke wrote:
> 
> 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{
>      mxmlc
> }
> 
> dependencies{
>      mxmlc ":flexTasks"
> }
> 
> task compile << {
>      ant.taskdef(resource:"flexTasks.tasks", classpath: 
> configurations.mxmlc.asPath)
> 
>      doLast{
>          ant.mxmlc(file: "src/Bibliotheque.mxml")
>      }
> }
> 
> I hope this helps,
> 
> regards,
> 
> René
> 
> Am 12.04.10 17:27, schrieb 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/Bibliotheque.mxml") {
>>      fileset(dir: "./libs"){
>>              include('**')
>>      }
>>      }
>> }
>>
>> But this doesn't work.
>>
>> Anyone say how to include this during a flex compile with Gradle?
>>
>>
>>
>> gperlade wrote:
>>    
>>> 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 now i think i will can compile a flex
>>> program.
>>>
>>> Sorry stupid mistake.
>>>
>>> Thanks again for your help.
>>>
>>> Grégory
>>>
>>>      
>>    
> 
> 
> -- 
> ------------------------------------
> Rene Groeschke
> 
> [email protected]
> http://www.breskeby.com
> http://twitter.com/breskeby
> ------------------------------------
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/compile-a-flex-program-with-Gradle-tp28216863p28230194.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


Reply via email to