How do I license the data visualization components (charting) for the Flex SDK on an automated builder server?
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.
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.
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"
精彩评论