• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Automation libraries do not work with upgrade license

New Here ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

Hi there,

Since we upgraded from Flex 3 to 4 (purchsing an upgrade premium license), when running the automation test it started to trigger a popup saying: "License not presetn.With the trial verison only limited replays are allowed.". I have tried compiling the project using Flex 4 SDK with either license number and still get the popup when running the test.

How do I get this to work? from the look of it, the compiler argument -license only supports one license number at the time.

Should this work?

-license=flexbuilder4,[license number]

Cheers,

Diego

TOPICS
Installation and activation

Views

984

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

Hi Diego,

http://raniskumar.wordpress.com/2009/07/28/flex-builder-license-and-automation-flex-3/

The above blog post outlines various approaches to add license for Flex builder 3. To use Flash Builder 4 license, one should change flexbuilder3 keyword to flashbuilder4. Hope that helps.

Thanks,

Deeptika

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

Thanks Deeptika for your reply, but it doesn't seem to work.

I'm using the following macro to compile:

<macrodef name="compile.flex">

<attribute name="flexHome" default="${flex.home}"/>

<attribute name="backgroundColor" default="#FFFFFF"/>

<attribute name="incremental" default="true"/>

<attribute name="optimize" default="true"/>

<attribute name="strict" default="true"/>

<attribute name="targetPlayer"/>

<attribute name="useNetwork" default="true"/>

<attribute name="in"/>

<attribute name="out"/>

<attribute name="failonerror" default="true"/>

        <attribute name="static-link-runtime-shared-libraries" default="false"/>

        <attribute name="flex-licence" default="${flex.licence}"/>

    <attribute name="additional" default=""/>

<sequential>

            <property name="rsl.dir" value="@{flexHome}/frameworks/libs"/>

<java jar="@{flexHome}/lib/mxmlc.jar" fork="true" maxmemory="512m" failonerror="@{failonerror}" resultproperty="buildResultProperty">

<jvmarg line="-Xms32m -Xmx768m -Dsun.io.useCanonCaches=false"/>

<!-- Add metadata -->

<arg value="-title=${title}"/>

<arg value="-publisher=${publisher}"/>

<arg value="-creator=${creator}"/>

<arg value="-language=${language}"/>

<!-- Compiler arguments -->

                <arg value="-licenses.license flexbuilder4 @{flex-licence}"/>

<arg value="+flexlib=@{flexHome}/frameworks"/>

                <arg value="-source-path=@{flexHome}/frameworks/libs"/>

<arg value="-static-link-runtime-shared-libraries=@{static-link-runtime-shared-libraries}"/>

<arg value="-library-path+=${basedir}/libs"/>

<arg value="-default-background-color=@{backgroundColor}"/>

<arg value="-theme=@{flexHome}/frameworks/themes/Halo/halo.swc"/>

<arg value="-incremental=@{incremental}"/>

<arg value="-optimize=@{optimize}"/>

<arg value="-strict=@{strict}"/>

<arg value="-use-network=@{useNetwork}"/>

<arg value="-target-player=@{targetPlayer}"/>

<arg value="-output=@{out}"/>

<arg line="@{additional}"/>

<arg value="@{in}"/>

</java>

</sequential>

</macrodef>

This is the error I get:

[java] Adobe Flex Compiler (mxmlc)
     [java] Version 4.1.0 build 16076
     [java] Copyright (c) 2004-2009 Adobe Systems, Inc. All rights reserved.
     [java] 
     [java] command line: Error: unknown configuration variable 'licenses.license flexbuilder4 xxxx-xxxx-xxxx-xxxx-xxxx-xxxx'
     [java] 
     [java] Use 'mxmlc -help' for information about using the command line.

Thanks for your help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

Hi,

<arg value="-licenses.license flexbuilder4 @{flex-licence}"/>

In this line, flexbuilder4 should be flashbuilder4. Please try this and let me know your findings.

Thanks,

Deeptika

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 20, 2011 Jul 20, 2011

Copy link to clipboard

Copied

good catch, thanks for that. However it doesnt seem to work

[java] command line: Error: unknown configuration variable 'licenses.license flashbuilder4 xxxx-xxxx-xxxx-xxxx-xxxx-xxxx'

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jul 21, 2011 Jul 21, 2011

Copy link to clipboard

Copied

Hi Diego,

Was the same macro working earlier with Flex 3 SDK?

Thanks,

Deeptika

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 21, 2011 Jul 21, 2011

Copy link to clipboard

Copied

LATEST

yes it was and I've never seen that popup before.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines