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] [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson
Sent: Wednesday, August 09, 2006 2:20 PM
To: [email protected]
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