Cool! :)

However I'm wondering why you have to wrap up value with apostrophes ? <
value>'en_US'</value>

wt., 26 lut 2019 o 15:42 Carlos Rovira <[email protected]> napisał(a):

> Hi Piotr,
> thanks for the advices, finally get it working adding your suggestion to
> both SWF and JS config.xml files :)
>
> El mar., 26 feb. 2019 a las 14:53, Piotr Zarzycki (<
> [email protected]>) escribió:
>
> > Hi Carlos,
> >
> > Just for a workaround try to specify your defines in separate config
> file.
> > In flex it would be [1] and later load it like that
> >
> > -load-config+=${basedir}/nameoofyourconfig-config.xml
> >
> > Maybe root tag should be named <royale-config />
> >
> > [1] https://paste.apache.org/yYuR
> >
> > Thanks,
> > Piotr
> >
> > wt., 26 lut 2019 o 14:08 Carlos Rovira <[email protected]>
> > napisał(a):
> >
> > > Hi,
> > >
> > > I'm trying to add bundles to Jewel and I got it for pom.xml and
> asconfigc
> > > in "validator-localized-bundles" branch
> > > latest commit is about trying to get the same for build.xml, but can't
> > get
> > > it.
> > > So hope others with more knowledge in ANT than me could find a
> solution.
> > >
> > > The problem:
> > >
> > > I'm trying to externalize the "en_US" string from Jewel to avoid it
> have
> > it
> > > hardcoded in Jewel source code.
> > > So I'm using a define (please let me know if you know a better way to
> do
> > > this, or we should do in other preferable way).
> > >
> > > So in maven we have:
> > >
> > > <defines>
> > > <property>
> > > <name>LOCALE::language</name>
> > > <value>'"en_US"'</value>
> > > </property>
> > > </defines>
> > >
> > > and in asconfigc
> > >
> > > "define": [
> > > {
> > > "name": "LOCALE::language",
> > > "value": "'en_US'"
> > > }
> > > ]
> > >
> > > for ant I have
> > >
> > > <property name="locale" value="'en_US'"/>
> > >
> > > and in bold the new lines for include defines:
> > >
> > > <java jar="${ROYALE_COMPILER_HOME}/lib/compc.jar" fork="true"
> > > resultproperty
> > > ="compcoutput">
> > > <jvmarg value="-Xmx384m" />
> > > <jvmarg value="-Dsun.io.useCanonCaches=false" />
> > > <jvmarg value="-Droyalelib=${ROYALE_HOME}/frameworks" />
> > > <arg value="+royalelib=${ROYALE_HOME}/frameworks" />
> > > *<arg value="-compiler.define+=LOCALE::language,${locale}" />*
> > > <arg value="+playerglobal.version=${playerglobal.version}" />
> > > <arg value="+env.AIR_HOME=${env.AIR_HOME}" />
> > > <arg value="-compiler.strict-xml=true" />
> > > <arg value="-compiler.targets=SWF,JSRoyale" />
> > > <arg value="-output=${basedir}/target/${target.name}" />
> > > <arg
> > value="-load-config=${basedir}/src/main/config/compile-swf-config.xml"
> > > />
> > > *<arg value="-js-compiler-define+=LOCALE::language,${locale}" />*
> > > <arg value="-js-load-config=${ROYALE_HOME}/frameworks/js-config.xml" />
> > > <arg value="-js-load-config+=${basedir}/../../js/projects/${
> > > ant.project.name
> > > }JS/src/main/config/compile-js-config.xml" />
> > > </java>
> > >
> > >
> > > but ant is failing:
> > >
> > >      [java]
> > >
> > >
> >
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/Jewel/src/main/royale/org/apache/royale/jewel/beads/validators/Validator.as(430):
> > > col: 9 Access of possibly undefined property PointUtils.
> > >      [java]
> > >      [java]                     pt = PointUtils.localToGlobal(pt,
> > > hostComponent);
> > >      [java]                          ^
> > >      [java]
> > >      [java] Java Result: 3
> > >
> > > BUILD FAILED
> > >
> > >
> >
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/Jewel/build.xml:81:
> > > The following error occurred while executing this line:
> > >
> > >
> >
> /Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks/projects/Jewel/build.xml:106:
> > > condition satisfied
> > >
> > > Total time: 3 seconds
> > >
> > >
> > > Someone could let me know what I'm doing wrong?
> > >
> > > thanks
> > >
> > >
> > > --
> > > Carlos Rovira
> > > http://about.me/carlosrovira
> > >
> >
> >
> > --
> >
> > Piotr Zarzycki
> >
> > Patreon: *https://www.patreon.com/piotrzarzycki
> > <https://www.patreon.com/piotrzarzycki>*
> >
>
>
> --
> Carlos Rovira
> http://about.me/carlosrovira
>


-- 

Piotr Zarzycki

Patreon: *https://www.patreon.com/piotrzarzycki
<https://www.patreon.com/piotrzarzycki>*

Reply via email to