Specifications

CHAPTER 18
346
You can add a comment to this file by using the pound (#) sign at the beginning of the line that you want to
comment out.
If you make changes to this file, you must restart your web server for the changes to take effect. For more infor-
mation on editing the default web-tier compiler’s wrapper, see “Customizing the template” on page 348.
2 flex-config.xml — This file defines the default settings for the Flex compiler. The module finds this file by
using the value of the
flex_config property in the compiler.conf file. If you installed the Flex framework with
the web-tier compiler, then the compiler.conf file points to the flex-config.xml file in the
module_install_dir/frameworks directory. If you are currently using the SDK and have a custom flex-config.xml
file, you might want to replace the default flex-config.xml file with your custom file or change the location by
editing the compiler.conf file.
For more information about the flex-config.xml file, see “Using the Flex Compilers” on page 125.
If a configuration file exists in the same folder as the MXML file, with a name that matches the app_name-
config.xml format, the web-tier compiler uses that configuration file. This configuration file has the same prece-
dence as a local configuration file, as described in About configuration files” on page 134.
You cannot instruct the web-tier compiler to compile files that have extensions other than *.mxml or *.mxml.swf.
Therefore, although you can change the file extension that triggers the compiler (for example, by adding an
additional
AddHandler entry in your Apache httpd.conf file), anything that is passed to the web-tier compiler
other than a *.mxml or *.mxml.swf file generates a compiler error.
About the compiler.conf options
The following table describes the options that you can set in the compiler.conf file:
Option Description
flex_config
The location of the flex-config.xml file that is used by the web-tier compiler. This file contains all available
compiler settings, and the compiler relies on it for default settings.
If you installed the web-tier compiler with the Flex framework, the default value on Windows is C:\Program
Files\FlexModule\frameworks\flex-config.xml. On MacOS, it is /Applications/FlexModule/frameworks. On
Linux, it is /user_home/FlexModule/frameworks.
Otherwise, the default value is the location of your framework’s flex-config.xml file.
For more information on the flex-config.xml file, see “Using the Flex Compilers” on page 125
cache_folder
The location of a cache file used by the MXML compiler. This is used for incremental compilation.
On Windows XP, the default value is C:\Documents and Settings\username\Local Settings\Temp\. On Windows
Vista, it is /Users/user_name/Local Settings/temp. On Linux and MacOS, it is /tmp.