AFAIK the string after "flexoptions=" is split at the comma(s) to
retrieve the single parameters for the flex compiler. So no, it isn't a
literal string for the flex compiler.
On 12/12/2010 1:44 PM, P T Withington wrote:
That sure looks funny, having more than one `=`... I guess this is just a
literal string that is passed to the flex compiler?
On 2010-12-11, at 21:58, André Bargull wrote:
Isn't is possible to use "flexoptions=air,version=10.1,debug"? So the "version"
option in the middle (or at the end)? In that case the pattern needs to be adjusted, maybe
something like this:
Pattern p = Pattern.compile("(?:.*,)?version=([0-9.]+)(?:,.*)?");
Matcher m = p.matcher(s);
if (m.matches()) {
String flexversion = m.group(1);
}
On 12/12/2010 3:05 AM, Henry Minsky wrote:
Change hqm-20101211-Zl6 by [email protected] on 2010-12-11 16:27:59 EST
in /Users/hqm/openlaszlo/trunk2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: add $flexversion compile-time and runtime constant
New Features:
Bugs Fixed: LPP-9584
Technical Reviewer: andre
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Overview:
Details:
Place $flexversion in the compile-time constants and runtime constants table.
Default value of flexversion == "10.0"
example
lzc -lDEBUG --flex-options=version=10.1 --runtime=swf10 test/flexoptions.lzx
Tests:
Since this is a string value, the compiler will currently throw and error if
you try to
eval $flexversion as compile-time conditional.
It should work when the compiler is extended handle string comparison in
compile-time constants (LPP-9583)
Files:
M WEB-INF/lps/server/src/org/openlaszlo/sc/SWF9External.java
M
WEB-INF/lps/server/src/org/openlaszlo/compiler/CompilationEnvironment.java
Changeset: http://svn.openlaszlo.org/openlaszlo/patches/hqm-20101211-Zl6.tar