lib/flashsdk/compiler_base.rb in flashsdk-1.0.29.pre vs lib/flashsdk/compiler_base.rb in flashsdk-1.0.33.pre
- old
+ new
@@ -51,24 +51,24 @@
# t.input = 'src/SomeProject.as'
# t.source_path << 'src'
# t.as3 = false
# end
#
- add_param :as3, Boolean, { :default => true, :show_on_false => true }
-
+ add_param :as3, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
+
##
# Prints detailed compile times to the standard output. The default value is true.
#
# desc "Compile the Application"
# mxmlc 'bin/SomeProject.swf' do |t|
# t.input = 'src/SomeProject.as'
# t.source_path << 'src'
# t.benchmark = true
# end
#
- add_param :benchmark, Boolean, { :default => true, :show_on_false => true }
-
+ add_param :benchmark, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
+
##
# Sets the value of the {context.root} token in channel definitions in the flex-services.xml file. If you do not specify the value of this option, Flex uses an empty string.
#
add_param :context_root, Path
@@ -716,11 +716,11 @@
# t.optimize = true
# end
#
# @see #debug
#
- add_param :optimize, Boolean
+ add_param :optimize, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Specifies the output path and filename for the resulting file.
#
# If you omit this option, the compiler saves the SWF file to the
@@ -821,11 +821,11 @@
# t.input = 'src/SomeProject.as'
# t.source_path << 'src'
# t.show_actionscript_warnings = false
# end
#
- add_param :show_actionscript_warnings, Boolean, { :default => true, :show_on_false => true }
+ add_param :show_actionscript_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Shows a warning when Flash Player cannot detect changes to a bound property.
#
# The default value is true.
@@ -835,11 +835,40 @@
# t.input = 'src/SomeProject.mxml'
# t.source_path << 'src'
# t.show_binding_warnings = false
# end
#
- add_param :show_binding_warnings, Boolean, { :default => true, :show_on_false => true }
+ add_param :show_binding_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
+
+ ##
+ # Shows warnings when you try to embed a font with a family name that is the same as the operating system font name.
+ # The compiler normally warns you that you are shadowing a system font. Set this option to false to disable the warnings.
+ #
+ # The default value is true.
+ #
+ # desc "Compile the Application"
+ # mxmlc 'bin/SomeProject.swf' do |t|
+ # t.input = 'src/SomeProject.mxml'
+ # t.source_path << 'src'
+ # t.show_shadowed_device_font_warnings = false
+ # end
+ #
+ add_param :show_shadowed_device_font_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
+
+ ##
+ # Shows warnings when a type selector in a style sheet or <mx:Style> block is not used by any components in the application.
+ #
+ # The default value is true.
+ #
+ # desc "Compile the Application"
+ # mxmlc 'bin/SomeProject.swf' do |t|
+ # t.input = 'src/SomeProject.mxml'
+ # t.source_path << 'src'
+ # t.show_unused_type_selector_warnings = false
+ # end
+ #
+ add_param :show_unused_type_selector_warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Shows deprecation warnings for Flex components. To see warnings for ActionScript classes, use the show-actionscript-warnings option.
#
# The default value is true.
@@ -880,14 +909,19 @@
add_param_alias :sp, :source_path
##
# Statically link the libraries specified by the {#runtime_shared_libraries} option.
#
+ # Default changed to false in Flex 4: http://opensource.adobe.com/wiki/display/flexsdk/Linking+RSLs+by+Default
+ #
+ # We respect this new default.
+ #
# @see #runtime_shared_libraries
#
- add_param :static_link_runtime_shared_libraries, Boolean, { :default => true }
+ add_param :static_link_runtime_shared_libraries, Boolean, { :default => false, :hidden_value => false, :delimiter => '=' }
+
##
# Alias for {#static_link_runtime_shared_libraries}
#
add_param_alias :static_rsls, :static_link_runtime_shared_libraries
@@ -903,11 +937,11 @@
# t.input = 'src/SomeProject.mxml'
# t.source_path << 'src'
# t.strict = false
# end
#
- add_param :strict, Boolean, { :default => true, :show_on_false => true }
+ add_param :strict, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Specifies the version of the player the application is targeting.
#
# Features requiring a later version will not be compiled into the application. The minimum value supported is "9.0.0".
@@ -943,11 +977,18 @@
# When the use-network property is set to false, the application can
# access the local filesystem (for example, use the XML.load() method
# with file: URLs) but not network services. In most circumstances, the
# value of this property should be true.
#
- add_param :use_network, Boolean, { :default => true, :show_on_false => true }
+ add_param :use_network, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
+
+ ##
+ # Enables resource bundles. Set to true to instruct the compiler to process the contents of the [ResourceBundle] metadata tag.
+ #
+ # The default value is true.
+ #
+ add_param :use_resource_bundle_metadata, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Generates source code that includes source files and line numbers. When
# a run-time error occurs, the stacktrace shows these line numbers.
#
@@ -972,10 +1013,10 @@
##
# Enables all warnings. Set to false to disable all warnings. This option overrides the warn-warning_type options.
#
# The default value is true.
#
- add_param :warnings, Boolean
+ add_param :warnings, Boolean, { :default => true, :show_on_false => true, :hidden_value => false, :delimiter => '=' }
##
# Set to true in order to compile with the Flex Compiler Shell (FCSH).
#
# You can set this value directly on a single compiler instance like: