If you're using ANT inside Eclipse then you should be able to use the
<eclipse.incrementalBuild/> task. This should invoke the internal Flex 2
compiler and you should see same compilation as running it directly.
The only thing you have to do is to tell your Ant script to run in the
same VM as Eclipse, otherwise it won't now about the Workspace (Run -->
External Tools... --> Ant build --> your build file --> JRE --> check
"Run in the same VM as the Workspace")
The minimum Ant script to invoke the incremental build process in the
current workspace is:
<?xml version="1.0"?>
<project name="project" default="build">
<target name="build">
<eclipse.incrementalBuild />
</target>
</project>
To invoke the process for a given project it looks like
<eclipse.incrementalBuild project="MyProject" />
This not only works for Flex but for all projects that use incremental
project builders.
Dirk.
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Alisdair Mills
Sent: Friday, March 24, 2006 9:30 AM
To: [email protected]
Subject: Re: [flexcoders] Mac Flex developing
thanks for explaining... i am using ANT to compile and
calling it from Eclipse... is it possible to add the mxmlc compiler to
Eclipse so it loads it only once without using Flex Builder?
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/