How do I license the data visualization components (charting) for the Flex SDK on an automated builder server?

StackOverflow https://stackoverflow.com/questions/1616141

Question

I have a professional license of Flex 3.3. This allows me to create applications using the data visualization components (charts) without watermarks. However, all of release builds (test, production, etc) occur on our build server.

The build server only has the Flex SDK installed (not full Flex Builder). As a result the SWFs compiled with this SDK contain watermarks on all the charts. How can I apply a Flex Builder Professional license to the build server to remove the watermakrs w/o installing Flex Builder?

My build environment is Flex SDK 3.3 + CruiseControl.NET + NAnt.

Was it helpful?

Solution

It took a bit of Google searching (more than usual) but I was able to find the answer. I needed to apply the Flex Builder Pro product name and serial number to the a flex-config.xml file in the /frameworks/ directory like so:

<licenses>
   <license>
      <product>flexbuilder3</product>
      <serial-number>your serial number here</serial-number>
   </license>
</licenses>

The advantage of this approach is that it works for any build environment, be it NAnt, Ant, or any other setup.

OTHER TIPS

Building Flex charts with an ant task

If you aren't using the ANT tasks the mxmlc commandline takes -license.license option. You should be able to pass the license number in there. From the help

-licenses.license

So it would be something like:

mxmlc -licenses.license "FlexBuilder3" "xxxx-xxx-xxx-xx-xxx"

Came across same issue, but trying to use mxmlc commandline with the mxmlc -licenses.license option complained... the following worked though:

mxmlc -license=flexbuilder3,"XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top