aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes How to Compile Multiple MXML files(FLEX) from ANT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How to Compile Multiple MXML files(FLEX) from ANT" Watch "How to Compile Multiple MXML files(FLEX) from ANT" New topic
Author

How to Compile Multiple MXML files(FLEX) from ANT

Manish Doomra
Greenhorn

Joined: Sep 05, 2008
Posts: 21
Hello all,

I am compiling mxml files(Flex files) from Ant, for the Flex-ant tasks, I am including "flexTasks.jar"

The problem is that mxmlc task which compiles only a single file.
The syntax of mxmlc task is as follows:-


But our application requires multiple mxml files to get compiled.

Can you suggest a method for the same.

I have tried making a batch file which i have found it on internet, but unable to proceed with it.
The content of batch file is as follows, this batch file was then called by ant.


For your reference:-

Can you suggest me with a new approach to do the same...


Manish Doomra
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30780
    
157

Manish,
Do you want to compile them all in one shot or one at a time. (I've never used Flex so I don't know how things work.)

If the later, you could use Ant-Contrib's looping tag to go through the mxml files and compile them one at a time.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Compile Multiple MXML files(FLEX) from ANT