You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Yishay Weiss <yi...@hotmail.com> on 2020/09/22 14:54:48 UTC

compc - configname

Hi,

I can’t figure out how to add configname=flex to compc. Any pointers? My goal is to compile a library that relies on emulation components.

Thanks.


RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
So I guess I was just using the flex compiler which explains why configname went unnoticed. Thank, Josh and Greg.

From: Yishay Weiss<ma...@hotmail.com>
Sent: Tuesday, September 22, 2020 9:26 PM
To: dev@royale.apache.org<ma...@royale.apache.org>
Subject: RE: compc - configname

Bingo.

Removing my config.xml and using js/lib/compc.jar solved it.

What’s going on there?

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Tuesday, September 22, 2020 9:22 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

Try using js/lib/compc.jar instead of lib/compc.jar.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:21 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> If I do that I get
>
> Buildfile: C:\dev\example\build.xml
>
> compile:
>      [java] Unknown tag:compiler.targets
>      [java] Loading configuration:
> c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml
>      [java] Loading configuration: C:\dev\example\royale-config.xml
>      [java]
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml(33): col:
> 0 Error: unknown configuration variable 'compiler.targets'.
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml (line: 33)
>      [java]
>      [java]       <targets>
>      [java]
>      [java]
>      [java] Java Result: 5
>
> From: Greg Dove<ma...@gmail.com>
> Sent: Tuesday, September 22, 2020 9:16 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> it might need to be
>
> <arg value="-load-config+=${basedir}/royale-config.xml"/>
>
>
> On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:
>
> >
> > Yishay, what is in
> >
> > <arg value="-load-config=${basedir}/royale-config.xml"/>
> >
> >
> >
> > On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> >> Maybe you can share some of your source? This  is my ant test project
> >> which fails.
> >>
> >> Thanks.
> >>
> >> <project name="MyProject" default="compile" basedir=".">
> >>   <description>
> >>     simple example build file
> >>   </description>
> >>
> >>   <target name="compile">
> >>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
> >>                            <jvmarg value="-Xmx384m" />
> >>                            <jvmarg value="-Dsun.io.useCanonCaches=false"
> >> />
> >>                            <jvmarg
> >> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
> >>                            <arg value="+configname=flex"/>
> >>                            <arg
> >> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
> >>                            <arg
> >> value="-load-config=${basedir}/royale-config.xml"/>
> >>                            <arg value="-include-classes=MyClass"/>
> >>                            <arg value="-output=My.swc"/>
> >>                            <arg value="-source-path=src"/>
> >>         </java>
> >>   </target>
> >> </project>
> >>
> >> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> >> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
> >>
> >> From: Josh Tynjala<ma...@bowlerhat.dev>
> >> Sent: Tuesday, September 22, 2020 8:06 PM
> >> To: Apache Royale Development<ma...@royale.apache.org>
> >> Subject: Re: compc - configname
> >>
> >> Hmmm... interestingly that's exactly how I was using it.
> >>
> >> <arg line="+configname=air"/>
> >>
> >> It's possible that the order matters with options with the + character.
> >> Try
> >> to put it before all regular options that start with the - character.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> >> wrote:
> >>
> >> > Ok, I can confirm adding +configname=flex on the command line does the
> >> > trick. Now I need to understand why adding <arg
> >> value=”+configname=flex”/>
> >> > to
> >> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >> >
> >> >
> >> > From: Josh Tynjala<ma...@bowlerhat.dev>
> >> > Sent: Tuesday, September 22, 2020 6:43 PM
> >> > To: Apache Royale Development<ma...@royale.apache.org>
> >> > Subject: Re: compc - configname
> >> >
> >> > It should be possible to specify +configname=flex with both mxmlc and
> >> > compc.
> >> >
> >> > I just found the build script for an old Flex SWC of mine that uses
> >> > +configname=air, so if the Royale compc doesn't also support
> >> +configname,
> >> > it's a bug.
> >> >
> >> > --
> >> > Josh Tynjala
> >> > Bowler Hat LLC <https://bowlerhat.dev>
> >> >
> >> >
> >> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I can’t figure out how to add configname=flex to compc. Any
> pointers?
> >> My
> >> > > goal is to compile a library that relies on emulation components.
> >> > >
> >> > > Thanks.
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
>
>


Re: compc - configname

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
lib/compc.jar is a bit more like the old Flex compiler. It is limited to
the compiler options that existed in Flex and it compiles to SWF only (no
JS). The "targets" compiler option is a new option for compiling to JS, so
that's why you saw that error about the unknown option. That error was the
clue that made me realize you were using the wrong .jar file.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:26 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> Bingo.
>
> Removing my config.xml and using js/lib/compc.jar solved it.
>
> What’s going on there?
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 9:22 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> Try using js/lib/compc.jar instead of lib/compc.jar.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 11:21 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > If I do that I get
> >
> > Buildfile: C:\dev\example\build.xml
> >
> > compile:
> >      [java] Unknown tag:compiler.targets
> >      [java] Loading configuration:
> > c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml
> >      [java] Loading configuration: C:\dev\example\royale-config.xml
> >      [java]
> >      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml(33):
> col:
> > 0 Error: unknown configuration variable 'compiler.targets'.
> >      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml (line:
> 33)
> >      [java]
> >      [java]       <targets>
> >      [java]
> >      [java]
> >      [java] Java Result: 5
> >
> > From: Greg Dove<ma...@gmail.com>
> > Sent: Tuesday, September 22, 2020 9:16 PM
> > To: Apache Royale Development<ma...@royale.apache.org>
> > Subject: Re: compc - configname
> >
> > it might need to be
> >
> > <arg value="-load-config+=${basedir}/royale-config.xml"/>
> >
> >
> > On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:
> >
> > >
> > > Yishay, what is in
> > >
> > > <arg value="-load-config=${basedir}/royale-config.xml"/>
> > >
> > >
> > >
> > > On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> > > wrote:
> > >
> > >> Maybe you can share some of your source? This  is my ant test project
> > >> which fails.
> > >>
> > >> Thanks.
> > >>
> > >> <project name="MyProject" default="compile" basedir=".">
> > >>   <description>
> > >>     simple example build file
> > >>   </description>
> > >>
> > >>   <target name="compile">
> > >>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar"
> fork="true">
> > >>                            <jvmarg value="-Xmx384m" />
> > >>                            <jvmarg
> value="-Dsun.io.useCanonCaches=false"
> > >> />
> > >>                            <jvmarg
> > >> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
> > >>                            <arg value="+configname=flex"/>
> > >>                            <arg
> > >> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
> > >>                            <arg
> > >> value="-load-config=${basedir}/royale-config.xml"/>
> > >>                            <arg value="-include-classes=MyClass"/>
> > >>                            <arg value="-output=My.swc"/>
> > >>                            <arg value="-source-path=src"/>
> > >>         </java>
> > >>   </target>
> > >> </project>
> > >>
> > >> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> > >> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
> > >>
> > >> From: Josh Tynjala<ma...@bowlerhat.dev>
> > >> Sent: Tuesday, September 22, 2020 8:06 PM
> > >> To: Apache Royale Development<ma...@royale.apache.org>
> > >> Subject: Re: compc - configname
> > >>
> > >> Hmmm... interestingly that's exactly how I was using it.
> > >>
> > >> <arg line="+configname=air"/>
> > >>
> > >> It's possible that the order matters with options with the +
> character.
> > >> Try
> > >> to put it before all regular options that start with the - character.
> > >>
> > >> --
> > >> Josh Tynjala
> > >> Bowler Hat LLC <https://bowlerhat.dev>
> > >>
> > >>
> > >> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> > >> wrote:
> > >>
> > >> > Ok, I can confirm adding +configname=flex on the command line does
> the
> > >> > trick. Now I need to understand why adding <arg
> > >> value=”+configname=flex”/>
> > >> > to
> > >> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> > >> >
> > >> >
> > >> > From: Josh Tynjala<ma...@bowlerhat.dev>
> > >> > Sent: Tuesday, September 22, 2020 6:43 PM
> > >> > To: Apache Royale Development<ma...@royale.apache.org>
> > >> > Subject: Re: compc - configname
> > >> >
> > >> > It should be possible to specify +configname=flex with both mxmlc
> and
> > >> > compc.
> > >> >
> > >> > I just found the build script for an old Flex SWC of mine that uses
> > >> > +configname=air, so if the Royale compc doesn't also support
> > >> +configname,
> > >> > it's a bug.
> > >> >
> > >> > --
> > >> > Josh Tynjala
> > >> > Bowler Hat LLC <https://bowlerhat.dev>
> > >> >
> > >> >
> > >> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <
> yishayjobs@hotmail.com>
> > >> > wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > I can’t figure out how to add configname=flex to compc. Any
> > pointers?
> > >> My
> > >> > > goal is to compile a library that relies on emulation components.
> > >> > >
> > >> > > Thanks.
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >>
> > >>
> >
> >
>
>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
Bingo.

Removing my config.xml and using js/lib/compc.jar solved it.

What’s going on there?

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Tuesday, September 22, 2020 9:22 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

Try using js/lib/compc.jar instead of lib/compc.jar.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:21 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> If I do that I get
>
> Buildfile: C:\dev\example\build.xml
>
> compile:
>      [java] Unknown tag:compiler.targets
>      [java] Loading configuration:
> c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml
>      [java] Loading configuration: C:\dev\example\royale-config.xml
>      [java]
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml(33): col:
> 0 Error: unknown configuration variable 'compiler.targets'.
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml (line: 33)
>      [java]
>      [java]       <targets>
>      [java]
>      [java]
>      [java] Java Result: 5
>
> From: Greg Dove<ma...@gmail.com>
> Sent: Tuesday, September 22, 2020 9:16 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> it might need to be
>
> <arg value="-load-config+=${basedir}/royale-config.xml"/>
>
>
> On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:
>
> >
> > Yishay, what is in
> >
> > <arg value="-load-config=${basedir}/royale-config.xml"/>
> >
> >
> >
> > On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> >> Maybe you can share some of your source? This  is my ant test project
> >> which fails.
> >>
> >> Thanks.
> >>
> >> <project name="MyProject" default="compile" basedir=".">
> >>   <description>
> >>     simple example build file
> >>   </description>
> >>
> >>   <target name="compile">
> >>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
> >>                            <jvmarg value="-Xmx384m" />
> >>                            <jvmarg value="-Dsun.io.useCanonCaches=false"
> >> />
> >>                            <jvmarg
> >> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
> >>                            <arg value="+configname=flex"/>
> >>                            <arg
> >> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
> >>                            <arg
> >> value="-load-config=${basedir}/royale-config.xml"/>
> >>                            <arg value="-include-classes=MyClass"/>
> >>                            <arg value="-output=My.swc"/>
> >>                            <arg value="-source-path=src"/>
> >>         </java>
> >>   </target>
> >> </project>
> >>
> >> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> >> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
> >>
> >> From: Josh Tynjala<ma...@bowlerhat.dev>
> >> Sent: Tuesday, September 22, 2020 8:06 PM
> >> To: Apache Royale Development<ma...@royale.apache.org>
> >> Subject: Re: compc - configname
> >>
> >> Hmmm... interestingly that's exactly how I was using it.
> >>
> >> <arg line="+configname=air"/>
> >>
> >> It's possible that the order matters with options with the + character.
> >> Try
> >> to put it before all regular options that start with the - character.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> >> wrote:
> >>
> >> > Ok, I can confirm adding +configname=flex on the command line does the
> >> > trick. Now I need to understand why adding <arg
> >> value=”+configname=flex”/>
> >> > to
> >> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >> >
> >> >
> >> > From: Josh Tynjala<ma...@bowlerhat.dev>
> >> > Sent: Tuesday, September 22, 2020 6:43 PM
> >> > To: Apache Royale Development<ma...@royale.apache.org>
> >> > Subject: Re: compc - configname
> >> >
> >> > It should be possible to specify +configname=flex with both mxmlc and
> >> > compc.
> >> >
> >> > I just found the build script for an old Flex SWC of mine that uses
> >> > +configname=air, so if the Royale compc doesn't also support
> >> +configname,
> >> > it's a bug.
> >> >
> >> > --
> >> > Josh Tynjala
> >> > Bowler Hat LLC <https://bowlerhat.dev>
> >> >
> >> >
> >> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I can’t figure out how to add configname=flex to compc. Any
> pointers?
> >> My
> >> > > goal is to compile a library that relies on emulation components.
> >> > >
> >> > > Thanks.
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
>
>


Re: compc - configname

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Try using js/lib/compc.jar instead of lib/compc.jar.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:21 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> If I do that I get
>
> Buildfile: C:\dev\example\build.xml
>
> compile:
>      [java] Unknown tag:compiler.targets
>      [java] Loading configuration:
> c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml
>      [java] Loading configuration: C:\dev\example\royale-config.xml
>      [java]
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml(33): col:
> 0 Error: unknown configuration variable 'compiler.targets'.
>      [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml (line: 33)
>      [java]
>      [java]       <targets>
>      [java]
>      [java]
>      [java] Java Result: 5
>
> From: Greg Dove<ma...@gmail.com>
> Sent: Tuesday, September 22, 2020 9:16 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> it might need to be
>
> <arg value="-load-config+=${basedir}/royale-config.xml"/>
>
>
> On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:
>
> >
> > Yishay, what is in
> >
> > <arg value="-load-config=${basedir}/royale-config.xml"/>
> >
> >
> >
> > On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> >> Maybe you can share some of your source? This  is my ant test project
> >> which fails.
> >>
> >> Thanks.
> >>
> >> <project name="MyProject" default="compile" basedir=".">
> >>   <description>
> >>     simple example build file
> >>   </description>
> >>
> >>   <target name="compile">
> >>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
> >>                            <jvmarg value="-Xmx384m" />
> >>                            <jvmarg value="-Dsun.io.useCanonCaches=false"
> >> />
> >>                            <jvmarg
> >> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
> >>                            <arg value="+configname=flex"/>
> >>                            <arg
> >> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
> >>                            <arg
> >> value="-load-config=${basedir}/royale-config.xml"/>
> >>                            <arg value="-include-classes=MyClass"/>
> >>                            <arg value="-output=My.swc"/>
> >>                            <arg value="-source-path=src"/>
> >>         </java>
> >>   </target>
> >> </project>
> >>
> >> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> >> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
> >>
> >> From: Josh Tynjala<ma...@bowlerhat.dev>
> >> Sent: Tuesday, September 22, 2020 8:06 PM
> >> To: Apache Royale Development<ma...@royale.apache.org>
> >> Subject: Re: compc - configname
> >>
> >> Hmmm... interestingly that's exactly how I was using it.
> >>
> >> <arg line="+configname=air"/>
> >>
> >> It's possible that the order matters with options with the + character.
> >> Try
> >> to put it before all regular options that start with the - character.
> >>
> >> --
> >> Josh Tynjala
> >> Bowler Hat LLC <https://bowlerhat.dev>
> >>
> >>
> >> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> >> wrote:
> >>
> >> > Ok, I can confirm adding +configname=flex on the command line does the
> >> > trick. Now I need to understand why adding <arg
> >> value=”+configname=flex”/>
> >> > to
> >> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >> >
> >> >
> >> > From: Josh Tynjala<ma...@bowlerhat.dev>
> >> > Sent: Tuesday, September 22, 2020 6:43 PM
> >> > To: Apache Royale Development<ma...@royale.apache.org>
> >> > Subject: Re: compc - configname
> >> >
> >> > It should be possible to specify +configname=flex with both mxmlc and
> >> > compc.
> >> >
> >> > I just found the build script for an old Flex SWC of mine that uses
> >> > +configname=air, so if the Royale compc doesn't also support
> >> +configname,
> >> > it's a bug.
> >> >
> >> > --
> >> > Josh Tynjala
> >> > Bowler Hat LLC <https://bowlerhat.dev>
> >> >
> >> >
> >> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I can’t figure out how to add configname=flex to compc. Any
> pointers?
> >> My
> >> > > goal is to compile a library that relies on emulation components.
> >> > >
> >> > > Thanks.
> >> > >
> >> > >
> >> >
> >> >
> >>
> >>
>
>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
If I do that I get

Buildfile: C:\dev\example\build.xml

compile:
     [java] Unknown tag:compiler.targets
     [java] Loading configuration: c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml
     [java] Loading configuration: C:\dev\example\royale-config.xml
     [java]
     [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml(33): col: 0 Error: unknown configuration variable 'compiler.targets'.
     [java] c:\dev\flexjs\royale-asjs\frameworks\flex-config.xml (line: 33)
     [java]
     [java]       <targets>
     [java]
     [java]
     [java] Java Result: 5

From: Greg Dove<ma...@gmail.com>
Sent: Tuesday, September 22, 2020 9:16 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

it might need to be

<arg value="-load-config+=${basedir}/royale-config.xml"/>


On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:

>
> Yishay, what is in
>
> <arg value="-load-config=${basedir}/royale-config.xml"/>
>
>
>
> On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
>> Maybe you can share some of your source? This  is my ant test project
>> which fails.
>>
>> Thanks.
>>
>> <project name="MyProject" default="compile" basedir=".">
>>   <description>
>>     simple example build file
>>   </description>
>>
>>   <target name="compile">
>>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>>                            <jvmarg value="-Xmx384m" />
>>                            <jvmarg value="-Dsun.io.useCanonCaches=false"
>> />
>>                            <jvmarg
>> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>>                            <arg value="+configname=flex"/>
>>                            <arg
>> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>>                            <arg
>> value="-load-config=${basedir}/royale-config.xml"/>
>>                            <arg value="-include-classes=MyClass"/>
>>                            <arg value="-output=My.swc"/>
>>                            <arg value="-source-path=src"/>
>>         </java>
>>   </target>
>> </project>
>>
>> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
>> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>>
>> From: Josh Tynjala<ma...@bowlerhat.dev>
>> Sent: Tuesday, September 22, 2020 8:06 PM
>> To: Apache Royale Development<ma...@royale.apache.org>
>> Subject: Re: compc - configname
>>
>> Hmmm... interestingly that's exactly how I was using it.
>>
>> <arg line="+configname=air"/>
>>
>> It's possible that the order matters with options with the + character.
>> Try
>> to put it before all regular options that start with the - character.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
>> wrote:
>>
>> > Ok, I can confirm adding +configname=flex on the command line does the
>> > trick. Now I need to understand why adding <arg
>> value=”+configname=flex”/>
>> > to
>> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
>> >
>> >
>> > From: Josh Tynjala<ma...@bowlerhat.dev>
>> > Sent: Tuesday, September 22, 2020 6:43 PM
>> > To: Apache Royale Development<ma...@royale.apache.org>
>> > Subject: Re: compc - configname
>> >
>> > It should be possible to specify +configname=flex with both mxmlc and
>> > compc.
>> >
>> > I just found the build script for an old Flex SWC of mine that uses
>> > +configname=air, so if the Royale compc doesn't also support
>> +configname,
>> > it's a bug.
>> >
>> > --
>> > Josh Tynjala
>> > Bowler Hat LLC <https://bowlerhat.dev>
>> >
>> >
>> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I can’t figure out how to add configname=flex to compc. Any pointers?
>> My
>> > > goal is to compile a library that relies on emulation components.
>> > >
>> > > Thanks.
>> > >
>> > >
>> >
>> >
>>
>>


Re: compc - configname

Posted by Greg Dove <gr...@gmail.com>.
it might need to be

<arg value="-load-config+=${basedir}/royale-config.xml"/>


On Wed, Sep 23, 2020 at 6:15 AM Greg Dove <gr...@gmail.com> wrote:

>
> Yishay, what is in
>
> <arg value="-load-config=${basedir}/royale-config.xml"/>
>
>
>
> On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
>> Maybe you can share some of your source? This  is my ant test project
>> which fails.
>>
>> Thanks.
>>
>> <project name="MyProject" default="compile" basedir=".">
>>   <description>
>>     simple example build file
>>   </description>
>>
>>   <target name="compile">
>>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>>                            <jvmarg value="-Xmx384m" />
>>                            <jvmarg value="-Dsun.io.useCanonCaches=false"
>> />
>>                            <jvmarg
>> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>>                            <arg value="+configname=flex"/>
>>                            <arg
>> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>>                            <arg
>> value="-load-config=${basedir}/royale-config.xml"/>
>>                            <arg value="-include-classes=MyClass"/>
>>                            <arg value="-output=My.swc"/>
>>                            <arg value="-source-path=src"/>
>>         </java>
>>   </target>
>> </project>
>>
>> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
>> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>>
>> From: Josh Tynjala<ma...@bowlerhat.dev>
>> Sent: Tuesday, September 22, 2020 8:06 PM
>> To: Apache Royale Development<ma...@royale.apache.org>
>> Subject: Re: compc - configname
>>
>> Hmmm... interestingly that's exactly how I was using it.
>>
>> <arg line="+configname=air"/>
>>
>> It's possible that the order matters with options with the + character.
>> Try
>> to put it before all regular options that start with the - character.
>>
>> --
>> Josh Tynjala
>> Bowler Hat LLC <https://bowlerhat.dev>
>>
>>
>> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
>> wrote:
>>
>> > Ok, I can confirm adding +configname=flex on the command line does the
>> > trick. Now I need to understand why adding <arg
>> value=”+configname=flex”/>
>> > to
>> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
>> >
>> >
>> > From: Josh Tynjala<ma...@bowlerhat.dev>
>> > Sent: Tuesday, September 22, 2020 6:43 PM
>> > To: Apache Royale Development<ma...@royale.apache.org>
>> > Subject: Re: compc - configname
>> >
>> > It should be possible to specify +configname=flex with both mxmlc and
>> > compc.
>> >
>> > I just found the build script for an old Flex SWC of mine that uses
>> > +configname=air, so if the Royale compc doesn't also support
>> +configname,
>> > it's a bug.
>> >
>> > --
>> > Josh Tynjala
>> > Bowler Hat LLC <https://bowlerhat.dev>
>> >
>> >
>> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I can’t figure out how to add configname=flex to compc. Any pointers?
>> My
>> > > goal is to compile a library that relies on emulation components.
>> > >
>> > > Thanks.
>> > >
>> > >
>> >
>> >
>>
>>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
<?xml version="1.0"?>

<royale-config>
      <compiler>
      <external-library-path>
          <path-element>C:\dev\flashplayer\11.1\playerglobal.swc</path-element>
      </external-library-path>
              </compiler>
</royale-config>

From: Greg Dove<ma...@gmail.com>
Sent: Tuesday, September 22, 2020 9:15 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

Yishay, what is in

<arg value="-load-config=${basedir}/royale-config.xml"/>



On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Maybe you can share some of your source? This  is my ant test project
> which fails.
>
> Thanks.
>
> <project name="MyProject" default="compile" basedir=".">
>   <description>
>     simple example build file
>   </description>
>
>   <target name="compile">
>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>                            <jvmarg value="-Xmx384m" />
>                            <jvmarg value="-Dsun.io.useCanonCaches=false" />
>                            <jvmarg
> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>                            <arg value="+configname=flex"/>
>                            <arg
> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>                            <arg
> value="-load-config=${basedir}/royale-config.xml"/>
>                            <arg value="-include-classes=MyClass"/>
>                            <arg value="-output=My.swc"/>
>                            <arg value="-source-path=src"/>
>         </java>
>   </target>
> </project>
>
> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 8:06 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> Hmmm... interestingly that's exactly how I was using it.
>
> <arg line="+configname=air"/>
>
> It's possible that the order matters with options with the + character. Try
> to put it before all regular options that start with the - character.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Ok, I can confirm adding +configname=flex on the command line does the
> > trick. Now I need to understand why adding <arg
> value=”+configname=flex”/>
> > to
> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >
> >
> > From: Josh Tynjala<ma...@bowlerhat.dev>
> > Sent: Tuesday, September 22, 2020 6:43 PM
> > To: Apache Royale Development<ma...@royale.apache.org>
> > Subject: Re: compc - configname
> >
> > It should be possible to specify +configname=flex with both mxmlc and
> > compc.
> >
> > I just found the build script for an old Flex SWC of mine that uses
> > +configname=air, so if the Royale compc doesn't also support +configname,
> > it's a bug.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I can’t figure out how to add configname=flex to compc. Any pointers?
> My
> > > goal is to compile a library that relies on emulation components.
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>


Re: compc - configname

Posted by Greg Dove <gr...@gmail.com>.
Yishay, what is in

<arg value="-load-config=${basedir}/royale-config.xml"/>



On Wed, Sep 23, 2020 at 6:07 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Maybe you can share some of your source? This  is my ant test project
> which fails.
>
> Thanks.
>
> <project name="MyProject" default="compile" basedir=".">
>   <description>
>     simple example build file
>   </description>
>
>   <target name="compile">
>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>                            <jvmarg value="-Xmx384m" />
>                            <jvmarg value="-Dsun.io.useCanonCaches=false" />
>                            <jvmarg
> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>                            <arg value="+configname=flex"/>
>                            <arg
> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>                            <arg
> value="-load-config=${basedir}/royale-config.xml"/>
>                            <arg value="-include-classes=MyClass"/>
>                            <arg value="-output=My.swc"/>
>                            <arg value="-source-path=src"/>
>         </java>
>   </target>
> </project>
>
> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 8:06 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> Hmmm... interestingly that's exactly how I was using it.
>
> <arg line="+configname=air"/>
>
> It's possible that the order matters with options with the + character. Try
> to put it before all regular options that start with the - character.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Ok, I can confirm adding +configname=flex on the command line does the
> > trick. Now I need to understand why adding <arg
> value=”+configname=flex”/>
> > to
> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >
> >
> > From: Josh Tynjala<ma...@bowlerhat.dev>
> > Sent: Tuesday, September 22, 2020 6:43 PM
> > To: Apache Royale Development<ma...@royale.apache.org>
> > Subject: Re: compc - configname
> >
> > It should be possible to specify +configname=flex with both mxmlc and
> > compc.
> >
> > I just found the build script for an old Flex SWC of mine that uses
> > +configname=air, so if the Royale compc doesn't also support +configname,
> > it's a bug.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I can’t figure out how to add configname=flex to compc. Any pointers?
> My
> > > goal is to compile a library that relies on emulation components.
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
It tells me

C:\dev\example\src\MyClass.mxml(2): col: 1 Error: This tag could not be resolved to an ActionScript class. It will be ignored.
     [java]
     [java] <s:Group xmlns:s="library://ns.apache.org/royale/spark">

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Tuesday, September 22, 2020 9:16 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

What exactly happens when it fails?

Here's a snippet from my build script. It looks pretty similar (other than
compiling for Flex rather than Royale).

<java jar="${compc}" dir="${flextoolbox.path}" fork="true"
failonerror="true">
     <arg line="+flexlib='${flexframework.root}'"/>
     <arg line="+configname=air"/>
     <arg line="--namespace+=${flextoolbox.namespace},manifest.xml"/>
     <arg line="--source-path+='source'"/>
     <arg line="--include-namespaces+=${flextoolbox.namespace}"/>
     <arg line="--include-sources+='source'"/>
     <arg line="--include-stylesheet defaults.css source/defaults.css"/>
     <arg line="--external-library-path+='${flexframework.lib}'"/>
     <arg line="--external-library-path+='${flexair.lib}'"/>
     <arg line="--external-library-path+='${flexmx.lib}'"/>
     <arg line="--external-library-path+='${library.output}'"/>
     <arg line="--swf-version=${swfversion}"/>
     <arg line="--output '${library.output}/flextoolbox.swc'"/>
</java>

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:07 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> Maybe you can share some of your source? This  is my ant test project
> which fails.
>
> Thanks.
>
> <project name="MyProject" default="compile" basedir=".">
>   <description>
>     simple example build file
>   </description>
>
>   <target name="compile">
>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>                            <jvmarg value="-Xmx384m" />
>                            <jvmarg value="-Dsun.io.useCanonCaches=false" />
>                            <jvmarg
> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>                            <arg value="+configname=flex"/>
>                            <arg
> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>                            <arg
> value="-load-config=${basedir}/royale-config.xml"/>
>                            <arg value="-include-classes=MyClass"/>
>                            <arg value="-output=My.swc"/>
>                            <arg value="-source-path=src"/>
>         </java>
>   </target>
> </project>
>
> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 8:06 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> Hmmm... interestingly that's exactly how I was using it.
>
> <arg line="+configname=air"/>
>
> It's possible that the order matters with options with the + character. Try
> to put it before all regular options that start with the - character.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Ok, I can confirm adding +configname=flex on the command line does the
> > trick. Now I need to understand why adding <arg
> value=”+configname=flex”/>
> > to
> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >
> >
> > From: Josh Tynjala<ma...@bowlerhat.dev>
> > Sent: Tuesday, September 22, 2020 6:43 PM
> > To: Apache Royale Development<ma...@royale.apache.org>
> > Subject: Re: compc - configname
> >
> > It should be possible to specify +configname=flex with both mxmlc and
> > compc.
> >
> > I just found the build script for an old Flex SWC of mine that uses
> > +configname=air, so if the Royale compc doesn't also support +configname,
> > it's a bug.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I can’t figure out how to add configname=flex to compc. Any pointers?
> My
> > > goal is to compile a library that relies on emulation components.
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>


Re: compc - configname

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
 What exactly happens when it fails?

Here's a snippet from my build script. It looks pretty similar (other than
compiling for Flex rather than Royale).

<java jar="${compc}" dir="${flextoolbox.path}" fork="true"
failonerror="true">
     <arg line="+flexlib='${flexframework.root}'"/>
     <arg line="+configname=air"/>
     <arg line="--namespace+=${flextoolbox.namespace},manifest.xml"/>
     <arg line="--source-path+='source'"/>
     <arg line="--include-namespaces+=${flextoolbox.namespace}"/>
     <arg line="--include-sources+='source'"/>
     <arg line="--include-stylesheet defaults.css source/defaults.css"/>
     <arg line="--external-library-path+='${flexframework.lib}'"/>
     <arg line="--external-library-path+='${flexair.lib}'"/>
     <arg line="--external-library-path+='${flexmx.lib}'"/>
     <arg line="--external-library-path+='${library.output}'"/>
     <arg line="--swf-version=${swfversion}"/>
     <arg line="--output '${library.output}/flextoolbox.swc'"/>
</java>

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 11:07 AM Yishay Weiss <yi...@hotmail.com>
wrote:

> Maybe you can share some of your source? This  is my ant test project
> which fails.
>
> Thanks.
>
> <project name="MyProject" default="compile" basedir=".">
>   <description>
>     simple example build file
>   </description>
>
>   <target name="compile">
>         <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
>                            <jvmarg value="-Xmx384m" />
>                            <jvmarg value="-Dsun.io.useCanonCaches=false" />
>                            <jvmarg
> value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
>                            <arg value="+configname=flex"/>
>                            <arg
> value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
>                            <arg
> value="-load-config=${basedir}/royale-config.xml"/>
>                            <arg value="-include-classes=MyClass"/>
>                            <arg value="-output=My.swc"/>
>                            <arg value="-source-path=src"/>
>         </java>
>   </target>
> </project>
>
> <!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc"
> "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 8:06 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> Hmmm... interestingly that's exactly how I was using it.
>
> <arg line="+configname=air"/>
>
> It's possible that the order matters with options with the + character. Try
> to put it before all regular options that start with the - character.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Ok, I can confirm adding +configname=flex on the command line does the
> > trick. Now I need to understand why adding <arg
> value=”+configname=flex”/>
> > to
> > <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
> >
> >
> > From: Josh Tynjala<ma...@bowlerhat.dev>
> > Sent: Tuesday, September 22, 2020 6:43 PM
> > To: Apache Royale Development<ma...@royale.apache.org>
> > Subject: Re: compc - configname
> >
> > It should be possible to specify +configname=flex with both mxmlc and
> > compc.
> >
> > I just found the build script for an old Flex SWC of mine that uses
> > +configname=air, so if the Royale compc doesn't also support +configname,
> > it's a bug.
> >
> > --
> > Josh Tynjala
> > Bowler Hat LLC <https://bowlerhat.dev>
> >
> >
> > On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I can’t figure out how to add configname=flex to compc. Any pointers?
> My
> > > goal is to compile a library that relies on emulation components.
> > >
> > > Thanks.
> > >
> > >
> >
> >
>
>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
Maybe you can share some of your source? This  is my ant test project which fails.

Thanks.

<project name="MyProject" default="compile" basedir=".">
  <description>
    simple example build file
  </description>

  <target name="compile">
        <java jar="c:/dev/flexjs/royale-asjs/lib/compc.jar" fork="true">
                           <jvmarg value="-Xmx384m" />
                           <jvmarg value="-Dsun.io.useCanonCaches=false" />
                           <jvmarg value="-Droyalelib=c:/dev/flexjs/royale-asjs/frameworks" />
                           <arg value="+configname=flex"/>
                           <arg value="+royalelib=c:/dev/flexjs/royale-asjs/frameworks"/>
                           <arg value="-load-config=${basedir}/royale-config.xml"/>
                           <arg value="-include-classes=MyClass"/>
                           <arg value="-output=My.swc"/>
                           <arg value="-source-path=src"/>
        </java>
  </target>
</project>

<!-- C:\dev\flexjs\royale-asjs\bin\compc.bat "-output=My.swc" "-source-path=src" "-include-classes=MyClass" "+configname=flex" -->

From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Tuesday, September 22, 2020 8:06 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

Hmmm... interestingly that's exactly how I was using it.

<arg line="+configname=air"/>

It's possible that the order matters with options with the + character. Try
to put it before all regular options that start with the - character.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Ok, I can confirm adding +configname=flex on the command line does the
> trick. Now I need to understand why adding <arg value=”+configname=flex”/>
> to
> <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
>
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 6:43 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> It should be possible to specify +configname=flex with both mxmlc and
> compc.
>
> I just found the build script for an old Flex SWC of mine that uses
> +configname=air, so if the Royale compc doesn't also support +configname,
> it's a bug.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Hi,
> >
> > I can’t figure out how to add configname=flex to compc. Any pointers? My
> > goal is to compile a library that relies on emulation components.
> >
> > Thanks.
> >
> >
>
>


Re: compc - configname

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
Hmmm... interestingly that's exactly how I was using it.

<arg line="+configname=air"/>

It's possible that the order matters with options with the + character. Try
to put it before all regular options that start with the - character.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 9:40 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Ok, I can confirm adding +configname=flex on the command line does the
> trick. Now I need to understand why adding <arg value=”+configname=flex”/>
> to
> <java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...
>
>
> From: Josh Tynjala<ma...@bowlerhat.dev>
> Sent: Tuesday, September 22, 2020 6:43 PM
> To: Apache Royale Development<ma...@royale.apache.org>
> Subject: Re: compc - configname
>
> It should be possible to specify +configname=flex with both mxmlc and
> compc.
>
> I just found the build script for an old Flex SWC of mine that uses
> +configname=air, so if the Royale compc doesn't also support +configname,
> it's a bug.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com>
> wrote:
>
> > Hi,
> >
> > I can’t figure out how to add configname=flex to compc. Any pointers? My
> > goal is to compile a library that relies on emulation components.
> >
> > Thanks.
> >
> >
>
>

RE: compc - configname

Posted by Yishay Weiss <yi...@hotmail.com>.
Ok, I can confirm adding +configname=flex on the command line does the trick. Now I need to understand why adding <arg value=”+configname=flex”/> to
<java jar=”…/lib/compc.jar” fork=”true”> doesn’t work in ant...


From: Josh Tynjala<ma...@bowlerhat.dev>
Sent: Tuesday, September 22, 2020 6:43 PM
To: Apache Royale Development<ma...@royale.apache.org>
Subject: Re: compc - configname

It should be possible to specify +configname=flex with both mxmlc and compc.

I just found the build script for an old Flex SWC of mine that uses
+configname=air, so if the Royale compc doesn't also support +configname,
it's a bug.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Hi,
>
> I can’t figure out how to add configname=flex to compc. Any pointers? My
> goal is to compile a library that relies on emulation components.
>
> Thanks.
>
>


Re: compc - configname

Posted by Josh Tynjala <jo...@bowlerhat.dev>.
It should be possible to specify +configname=flex with both mxmlc and compc.

I just found the build script for an old Flex SWC of mine that uses
+configname=air, so if the Royale compc doesn't also support +configname,
it's a bug.

--
Josh Tynjala
Bowler Hat LLC <https://bowlerhat.dev>


On Tue, Sep 22, 2020 at 7:54 AM Yishay Weiss <yi...@hotmail.com> wrote:

> Hi,
>
> I can’t figure out how to add configname=flex to compc. Any pointers? My
> goal is to compile a library that relies on emulation components.
>
> Thanks.
>
>