Skip to main content
Participant
June 30, 2008
Question

Flex ant - MxmlcTask

  • June 30, 2008
  • 1 reply
  • 735 views
Hello all,

I´m trying to use MxcmlTask whitin a custom Task in ant.
I just include the task in my code, but there is a method not implemented in my current Flex.ant package.
So, this is the code:

for ( int i=0; i< vStyleFiles.size(); i++){
MxmlcTask mxmlctask = new MxmlcTask();
mxmlctask.setProject( project);
mxmlctask.init();
String outputFileName = vStyleFiles.elementAt(i).getName().replace( ".css", SWF_EXTENSION);
// Executing mxmlc task
mxmlctask.setFile( vStyleFiles.elementAt(i).getAbsolutePath());
mxmlctask.setOutput(outputFileName);// Method not found 😞
mxmlctask.execute();
}

and the setOutput method is not registered, so i cant use, but I MUST use it.

Asking google, I found a MxmlcTask implementation which includes that method, from the package flex.ant, while im using the package flex2.ant.
I cant find the jar file for the flex.ant package, and also not the setOutput method in my package flex2.ant.

Any idea?? There is a change from flex.ant to flex2.ant? Where is the setOutput method??

TIA.
Pablo Medina.
This topic has been closed for replies.

1 reply

Participating Frequently
June 30, 2008
Hi Pablo,

I'm a little confused -- there's quite a lot going on in your question. What is the core problem?

You can browse the source from
http://opensource.adobe.com/svn/opensource/flex/sdk/trunk/modules/antTasks/src/flex/ant/

Also, there's no flex2 package in the ant that we ship, it's just flex.

- Jono