You might want to use the eclipse.incrementalBuild Task that comes with
Eclipse. This allows to invoke the incremental Flex Builder compiler
from within Ant. This gives you the same compilation performance as
using "Build Automatically" plus adds all the nice stuff you can achieve
with Ant :-)
Check my blog post here:
http://www.richinternet.de/blog/index.cfm?entry=2B7613A8-C687-AF8E-B9855
2AF89BBE463
<http://www.richinternet.de/blog/index.cfm?entry=2B7613A8-C687-AF8E-B985
52AF89BBE463>
You'll only need to make sure that Ant runs in the same JRE as the
workspace.
Dirk.
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Sascha
Sent: Monday, January 08, 2007 6:27 AM
To: [email protected]
Subject: RE: [flexcoders] flex2ant
Actually I would like to use Ant in Eclipse running with Flex2
PlugIn to build my projects! For AS2 is always used AS2Ant with FDT and
MTASC and it was the best!
Unfortunately things look different for Flex Builder. Building
the project with an Ant task is slower than using Flex Builder and
'Build Automatically' is necessary for compile time error checking
(while MTASC did this automatically on-the-fly) but it would then also
always build when using the Ant task.
Does anyone know how to get this working:
Having an Ant build.xml that does some project preparing tasks
(i.e. increasing build number and store in an auto generated AppInfo
class) and then call the Flex builder build process from Ant. I'm not
Ant magican but is this possible?
Sascha
________________________________
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of Lance Linder
Sent: Monday, 08 January, 2007 03:37
To: [email protected]
Subject: RE: [flexcoders] flex2ant
Very nice work!
I thought about doing something like this before and ended up
taking a bit of a different approach. What I did was create a task that
can read the flex project files and from these use mxmlc and compc to
build the projects. What I figured is that if Flex Builder is creating
the project files for me and can compile off of these that I would mimic
the same thing! If people are interested in using this approach I will
look at hosting it somewhere. This is however an NAnt task so I suspect
there will be less people interested in this.
Lance
From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of flex2ant
Sent: Friday, October 27, 2006 7:50 PM
To: [email protected]
Subject: [flexcoders] flex2ant
Hi list,
Now Flash player 9 (beta) for Linux has been released we can
finally
develop Flex 2 and AS3 apps on Linux. I've been putting in a lof
of
effort in the past week to create flex2ant.
With flex2ant you can develop Flex2/AS3 apps from within
Eclipse. All
you need is the Flex 2 SDK, Eclipse and flex2ant and off you go.
If you are interessed in this type of development then please go
over
to http://www.flex2ant.org <http://www.flex2ant.org> and
download the latest release.
regards,
Luke