Thanks for the additional information Roger!

 

I didn’t know about the += feature for overlaying config files. This will be really useful as I end up using 90% of the same settings as the defaults with exception of my compc config files which tend to get a little more involved to create.

 

The append attribute is also a nice trick. Thanks!

 

The auto load feature is something new to me as well. Until now I have been loading my config files with the –load-config attribute.

 

These all some great tricks and will definitely make things a little more organized and a lot cleaner when working with the config files for me!

 

Lance

 

 

 


From: [email protected] [mailto:[email protected]] On Behalf Of Roger Gonzalez
Sent: Wednesday, August 09, 2006 4:55 PM
To: [email protected]
Subject: RE: [flexcoders] Re: Schema files for mxmlc and compc config files

 

You can also use "mxmlc -dump-config=mycfg.xml -otheroptions..." to build a starter config file.  In general, you'll then want to edit it down to the bare minimum settings you need.

 

I somehow overlooked to have "dump-config" enabled on compc (will put this into a dot release) but the config files are pretty much identical (+/- the compc-specific values that you can find out about via compc -help as Renaun says below).

 

You'll then generally want to use "mxmlc -load-config+=mycfg.xml" to compile.  Note the "+=", which says "don't nuke the existing default value of load-config (which points to the flex-config.xml file) just overlay these settings on top".

 

Inside your config file, you can do the same sort of operation as += via the (undocumented?) "append" attribute:

 

<library-path append="true">

  <path-element>mylib.swc</path-element>

</library-path>

 

Of course, you can also use these config files by naming them myapp-config.xml (where myapp is the name of your mxml/as application) and have them automatically loaded:

 

Given

myapp-config.xml

myapp.mxml

 

mxmlc myapp.mxml

 

will automatically load myapp-config.xml as if it were -load-config+=myapp-config.xml

 

Enjoy,

 

-rg

 


From: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Renaun Erickson
Sent: Wednesday, August 09, 2006 2:20 PM
To: [EMAIL PROTECTED]ups.com
Subject: [flexcoders] Re: Schema files for mxmlc and compc config files

Have you tried:

mxmlc -help list
mxmlc -help advanced
mxmlc -help syntax
mxmlc -help aliases
mxmlc -help details

You can find alot of information from the executables themselves.

Renaun

--- In [EMAIL PROTECTED]ups.com, "Lance Linder" <[EMAIL PROTECTED]> wrote:
>
> Anyone know where I could get schema files for the config files for both
> the mxmlc and compc compilers?
>
>
>
> As I do more and more build scripts for Flex2 apps these schema files
> sure would help!
>
>
>
> Thanks,
>
> Lance
>

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to