apache-flexeclipsebuild-processflexbuilder

How to exclude files from being copied to bin-debug on build


Using Adobe Flex Builder Pro stand-alone, how do I filter or exclude some files in my project source folder from being copied into the bin-debug folder during a build? Flex Builder is based on the Eclipse platform IDE, this could be as much of a question about Eclipse as it is Flex Builder.


Solution

  • You can prevent Flex from copying all extra files like this:

    1. Within Flex Navigator panel, right-click on the Flex project
    2. Choose Properties
    3. Click on "Flex Compiler" on the left
    4. Under "Compiler Options" DESELECT "Copy non-embedded files to output folder"
    5. Click OK

    If you want to include some but not others, then you can use a custom Ant build script to do the build and copy the limited files you want to copy.