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