How do I move file assets from src into bin at compile time in FDT5

502 views Asked by At

Flash Builder has a nice feature that will allow you to have it move files such as images, fonts, xml files and so forth into the bin-debug directory an compile time. The reason for doing this would be to mock up some data or test pulling in assets dynamically but having them in source directory so you can version control the assets during development. Typically we don't add the bin directory to version control so being able to have the IDE move files over to bin for you is very helpful if you are on a large team.

Is there a feature within FDT5 that will do this like Flash Builder?

1

There are 1 answers

2
Alan Klement On BEST ANSWER

There is not, but it sounds cool. Could you provide a screenshot of what looks like in FB (I'll add it to JIRA as a feature request).

Here is the feature request.

The thing to do would be to write a simple Ant script that moves your files. (Learn more about FDT Ant scripts)

Here is a sample snippet we use on the FDT team that deletes an old file and puts in fresh ones:

    <target name="move zip to core plugin">
        <delete file="${basedir}/../../com.powerflasher.fdt.core/src/com/powerflasher/fdt/internal/core/preferences/projectTemplate/projectTemplates.zip">
        </delete>
        <copy todir="${basedir}/../../com.powerflasher.fdt.core/src/com/powerflasher/fdt/internal/core/preferences/projectTemplate/" file="${basedir}/../projectTemplates.zip" />
    </target>

Put it here:

enter image description here