views:

416

answers:

1

I'd like to see the command-line arguments that FlexBuilder is using to compile my application. This is so that I can build them into the ANT script I'm working on. Is there any way to view the command line compilation step?

The reason I'm asking for this is that when I compile my app using Ant/Flex SDK vs. FlexBuilder my app behaves differently.

+3  A: 

So I figured out the answer.

First of all, you can get a better idea of how FlexBuilder compiles your app by adding a -dump-config=C:\myConfig.xml to the compile arguments in FlexBuilder. This outputs an xml file containing configuration settings used in the compilation step. You can also use this file as an argument to compc or mxmlc if you'd like. Read more about it here...

But, here's what actually solved my problem. I was using the regular old Flex SDK installed on our integration server to compile my apps using Ant. This is the free SDK you can download from Adobe's site. I then took the FlexBuilder directory from my local machine and copied it up to the integration server and pointed my build script to use that version of the SDK (and changed my path env variable).

When I compiled using the FlexBuilder version of the SDK, all was well and the strange bugs I was seeing in my app disappeared.

Moral of the story, make sure you are using the same version of the SDK for your automated builds as you use to build locally.

Tim Merrifield
I can only concur that it is extremely important to have the same flex sdk versions on integration server and local dev env. We had massive trouble compiling a 3.1 project on a 3.2 version of the sdk (there were problems with including swc files)
Mauli