Hi Dirk,

Thanks so much for this info - it is exactly what i need to speed up development. I am unsure how i get this to work so if you could find the time to point me in the right direction it would be much appreciated.

My current build file for my project is....

<?xml version="1.0" encoding="UTF-8"?>
<project name="FeverPitch" default="FeverPitch">
    <description>Build FeverPitch Application</description>
    <!-- set up flex paths -->
    <property name="mxmlc" value="/opt/flex/bin/mxmlc"/>
    <property name="framework" value="/opt/flex/frameworks/flex-config.xml"/>
   
    <target name="FeverPitch" description="Build FeverPitch">
        <exec executable="${mxmlc}">
            <arg value="-incremental=true"/>
            <arg value="-output=deploy/FeverPitch.swf"/>
            <arg value="-default-frame-rate=31"/>
            <arg value="-default-size"/>
            <arg value="800"/>
            <arg value="600"/>
            <arg value="src/FeverPitch.mxml"/>
        </exec>
    </target>
</project>

so how do i use eclipse.incrementalBuild with this? I tried creating an xml file with 

<?xml version="1.0"?>
<project name="project" default="build">
    <target name="build">
        <eclipse.incrementalBuild project="FeverPitch" />
    </target>
</project>

and running this but i get... "Could not create task or type of type: eclipse.incrementalBuild". What am i doing wrong?

Thanks again for you help.

cheers, Al


On 24 Mar 2006, at 08:37, Dirk Eismann wrote:

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







--
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




Reply via email to