Posts in Category "Tooling"

*New* FlexAntTask – fails build if test suite doesn’t execute

The FlexAntTask will now fail the build if there is an error executing the test suite e.g. a socket timeout. In the past the error was swallowed as the server socket runs in a separate thread – any errors are now passed back to the task and re-thrown.

Binary distribution

 

Source Distribution

 

Example Project

 

Ant Task Parameters

Attribute
Description
Required
swf The name of SWF containing the tests to execute. Yes
port The port to receive the test results on from FlexUnit. The default port is 1024. No
timeout The time in milliseconds to wait for results from FlexUnit before stopping the building process. The default is 60 seconds. You need to allow enought time for your tests to run as the socket is opended prior to the test execution. No
toDir The output directory for the test resutlts. The default is the working directory. No
haltonfailure Stop the build process if a test fails. The default is true. No
failureproperty The name of the property to set in the event of a failure. The default is ‘flexunit.failed”. No
verbose Causes the flexunit tasks to print status messages. The default is false. No

FlexUnit for Ant now supports Mac OS X

A big thank you to Tom Sugden who has added support for Mac OS X.

For more details on how to use FlexUnit for Ant please see my earlier blog. There is also documentation on the flexunit Ant task parameters at the end of this blog. You can download FlexUnit from Adobe Labs.

Continue reading…

FDS Plugin V2

I am please to say V2 of my FDS Plugin is now available for download on the Flex Exchange. Thanks to all those who took the time to downloaded the BETA and for reporting the bugs you found. In particular the following bugs have been fixed:

  • The plugin will now run with Java 1.4.
  • The paths in the project are correct on Mac OS X.
  • The ‘user_classes’ folder is now included in the project classpath.
  • If you compile locally the Web Tools Plaform WAR export will now include the Flex generated files (e.g. *.swf) and the Flex source files if selected.

Continue reading…

Continuous Integration with CruiseControl + FlexUnit + XDoclet2

Last year I blogged about XDoclet2 and FlexUnit and Ant . In this entry I am going to look at setting up CruiseControl for continuous integration. I have setup my CruiseControl server on Linux so I will do my best to make sure these instruction also apply to Windows. I also used Perforce as my source control repository so I have included the extra steps that are required to get CruiseControl working with Perforce. CruiseControl supports many other repositories such as Subversion and CVS. Please refer the the CuriseControl configuration reference for more details.

Continue reading…

FlexUnit for Ant Update#4

You can download a new release of FlexUnit for Ant. This version fixes a bug with the toDir property and also removes the need to create a configuration file under the FlashPlayerTrust folder to allow the SWF to run in the local trusted sandbox. The Ant task will now send a policy file to the Flash Player to allow the data to be sent over the socket – should make life a little easier.

For more details on how to use FlexUnit for Ant please see my earlier blog. There is also documentation on the flexunit Ant task parameters at the end of this blog. You can download FlexUnit from Adobe Labs.

Continue reading…

FDS Plugin 2 (Beta)

A number of people of have been asking me when a new version of my FDS plugin will be released to support Flex 2.0.1, Eclipse 3.2 and the Mac. Now that Flex 2.0.1 is released I am happy to say I have made a beta version of the plugin available. So please install it and let me know what you think. More importantly if you find a bug send me an email, pmartin@adobe.com.

This is a complete re-write and I have done my best to address the issues that I saw in the previous versions. In particular I have removed the dependency on Java 5 and externalized Flex Data Services (you now need to have FDS installed on your your local machine).

Continue reading…

FlexUnit for Ant Update#3

You can download a new release of FlexUnit for Ant, which fixes a few bugs people have experienced recently. For more details on how to use FlexUnit for Ant please see my earlier blog. There is also documentation on the flexunit Ant task parameters at the end of this blog. You can download FlexUnit from Adobe Labs.

 

Continue reading…

FDS Plugin for Eclipse Web Tools Platform

I have developed a plugin for the Eclipse Web Tools Platforms (WTP). The plugin provides a project facet, which is used to add Flex Data Services (FDS) functionality to a dynamic web project.

Continue reading…

Cairngorm 2 + XDoclet2

With the release of Cairngorm on Adobe Labs the package name has changed from org.nevis.cairngorm to com.adobe.cairngorm. I have updated the AS3 plugin for XDoclet2 to reflect the new package name so all generated VOs will now implement com.adobe.cairngorm.vo.ValueObject. You can also download the source from here.

For more information on XDoclet2 please see my earlier blogs:

New FlexUnit Ant Task

Many thanks to Tony Hillerson of EUI for his contribution following my last blog on FlexUnit + Ant. Tony has taken the FlexUnit task and added the following properties:

  • haltonfailure – stop the build process if a failure occurs in one of the tests..
  • failureproperty – the name of a property to set if there is a failure in one of the tests..
  • verbose – print information about the test run.

Continue reading…