views:

594

answers:

4

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.

A: 

http://stackoverflow.com/questions/935986/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"
dan
Thanks. Unfortunately, that only works with Ant. I am using CruiseControl.NET and NAnt. I have clarified my question above.
Ryan Taylor
+2  A: 

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.

Ryan Taylor
A: 

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"
Mario Ruggier
A: 

thanks,

mxmlc -license=flexbuilder3,"XXXX-XXXX-XXXX-XXXX-XXXX-XXXX"

saved ma day

Hissam
This is not an answer, you're just reiterating what Mario said.
dimo414