Eclipse struggling to regenerate bin folder after flashbuilderclean

Patrick Mowrer's Avatar

Patrick Mowrer

06 Nov, 2012 12:03 AM

This might be an environment issue, but my Eclipse install is struggling to regenerate the bin folder that the flashbuilderclean task wipes out. Would it make sense for the flashbuilder task to automatically create the output folder?

  1. Support Staff 1 Posted by Yennick Trevels on 06 Nov, 2012 07:44 AM

    Yennick Trevels's Avatar

    If it has problems to regenerate it then it would indeed be better to let the flashbuilder task generate the output folder. But I'll have to test this on my machine (as soon as possible) to see if this is an environment issue.

  2. Support Staff 2 Posted by Maxime Cowez on 07 Nov, 2012 10:28 AM

    Maxime Cowez's Avatar

    The problem with generating the folder through the flashbuilder task would be that the output folder is configurable in FlashBuilder. We cannot rely on the fact that the folder should be called bin, bin-debug or bin-release.
    Hence we would have to add a configuration property to the IDE plugin. I'm not too fond of the idea of having IDE-specific information in a build script.

    One other thought: Eclipse has trouble refreshing files that were altered externally. Have you tried refreshing (F5) the project (within Eclipse) before doing your other operations?

  3. 3 Posted by Patrick Mowrer on 07 Nov, 2012 03:40 PM

    Patrick Mowrer's Avatar

    Isn't the flashbuilderclean relying on the output folder being called bin? It seems odd that flashbuilder and flashbuilderclean aren't inverses of one-another.

  4. Support Staff 4 Posted by Maxime Cowez on 07 Nov, 2012 09:08 PM

    Maxime Cowez's Avatar

    flashbuilderclean takes the outputFolderPath property from the .actionscriptProperties file, i.e. the output folder defined in FlashBuilder, which defaults to bin for library projects and bin-debug for applications, but can be altered by the user.

    My experience is that FlashBuilder automatically regenerates the output folder when a project is compiled (both for library projects and for applications), so there is no need for Gradle to handle this (especially since it could become tricky when the user changes the output folder to anything but the default value). There is one minor bug though: if you restart an application without any changes to the code, the incremental compiler will not recompile the code and FlashBuilder does not recreate the output folder (nor the output swc or swf for that matter). This is easily circumvented by typing a space somewhere in your code to force a recompilation.

    I have just taken a closer look at the project creation process in FB and it turns out that the output folder is actually created immediately when the project is created (not when it is first compiled, like in IntelliJ Idea). So your suggestion to generate that folder from the Gradle task does make sense: it would mimic the IDE's behaviour, which it doesn't seem to do right now.
    Bear in mind that this would not regenerate the compiled swf or swc and you might still be facing the issue I described in the previous paragraph.
    Furthermore the same reasoning applies to the html-template folder, which is also immediately created when a project is created in FB.

    If your situation is somehow different than what I've just described, could you please provide us with a step-by-step description to reproduce the issue, so that we can track it down.

  5. 5 Posted by Patrick Mowrer on 07 Nov, 2012 10:47 PM

    Patrick Mowrer's Avatar

    Thanks for the suggestions! Refreshing the projects seem to be doing the trick. I had previously been running 'clean', which I assumed would do refresh, and more, but that's apparently not the case. After refresh, building the project appears to regenerate the output folder.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM


04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM