Using Ant sccript to compile the flex application and enable automation.

October 7, 2009 at 6:03 am 2 comments

If you are using ant script to compile your application and if you would like to link in the automation libraries , you need to use the appropriate compiler arguments. Please  note that placing the automation libraries in the library path and providing the library path using the compiler.library-path wont enable  the applications for automation.

Automation classes wont be added to the application by the compiler just by placing the libraries as the application code does not refer to the automation classes. So the classes needs to be linked in to the application forcefully using the -include-libraries option.

In the ant script this can be used as follows.

This needs to be used in the mxmlc task.

<mxmlc file=”${APP_ROOT}/Main.mxml” keep-generated-actionscript=”true”>

          <compiler.include-libraries dir=”${swf.output}” append=”true”>
                       <include name=”MyComponents.swc” />
                      <include name=”AcmeComponents.swc” />
                    <include name=”DharmaComponents.swc” />
          </compiler.include-libraries>

</mxmlc>

For more details refer  http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html

Advertisements

Entry filed under: Flex Automation. Tags: .

FlashBuilder 4 – Beta2 is out. Spark components automation for trial IE7 and FlexBuilder3 plugin not working for automation using QTP ?

2 Comments Add your own

  • 1. Ponti1  |  March 12, 2010 at 4:26 pm

    We have successfully built our FLEX application with the automation libraries included, using ANT instead of FlexBuilder.

    However, the automation is still only recognized as “trial license”, and cots off after about 30 steps.

    Our understanding is that ANT only uses the FlexSDK, so we are unsure how to get the ANT build process to recognize a FlexBuilder “Professional” license that we have available.

    Any additional guidance is appreciated.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

October 2009
M T W T F S S
« Sep   Dec »
 1234
567891011
12131415161718
19202122232425
262728293031  

Most Recent Posts


%d bloggers like this: