sprout-as3-puremvc-bundle 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/README +48 -0
  2. data/lib/sprout/as3.rb +5 -0
  3. data/lib/sprout/as3/version.rb +12 -0
  4. data/lib/sprout/as3_tasks.rb +7 -0
  5. data/lib/sprout/generators/class/USAGE +42 -0
  6. data/lib/sprout/generators/class/class_generator.rb +20 -0
  7. data/lib/sprout/generators/class/templates/Class.as +8 -0
  8. data/lib/sprout/generators/class/templates/Component.mxml +8 -0
  9. data/lib/sprout/generators/class/templates/TestCase.as +30 -0
  10. data/lib/sprout/generators/class/templates/TestSuite.as +18 -0
  11. data/lib/sprout/generators/component/component_generator.rb +18 -0
  12. data/lib/sprout/generators/component/templates/Component.mxml +3 -0
  13. data/lib/sprout/generators/component/templates/TestSuite.as +18 -0
  14. data/lib/sprout/generators/component/templates/VisualTestCase.as +32 -0
  15. data/lib/sprout/generators/project/project_generator.rb +163 -0
  16. data/lib/sprout/generators/project/templates/MainClass.as +139 -0
  17. data/lib/sprout/generators/project/templates/README.txt +56 -0
  18. data/lib/sprout/generators/project/templates/TestRunner.as +15 -0
  19. data/lib/sprout/generators/project/templates/deploy/assets/css/main.css +5 -0
  20. data/lib/sprout/generators/project/templates/deploy/assets/js/swfobject.js +5 -0
  21. data/lib/sprout/generators/project/templates/deploy/assets/swf/express_install.swf +0 -0
  22. data/lib/sprout/generators/project/templates/deploy/index.html +30 -0
  23. data/lib/sprout/generators/project/templates/embed/fonts/arial.ttf +0 -0
  24. data/lib/sprout/generators/project/templates/embed/fonts/fonts.xml +42 -0
  25. data/lib/sprout/generators/project/templates/embed/template/AssetEmbedTemplate.as +15 -0
  26. data/lib/sprout/generators/project/templates/embed/template/FontTemplate.as +20 -0
  27. data/lib/sprout/generators/project/templates/generate +21 -0
  28. data/lib/sprout/generators/project/templates/lib/PureMVC_AS3_2_0_3.swc +0 -0
  29. data/lib/sprout/generators/project/templates/lib/com_ffsys_utils_font.swc +0 -0
  30. data/lib/sprout/generators/project/templates/lib/com_ffsys_utils_locale.swc +0 -0
  31. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_core.swc +0 -0
  32. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_effects.swc +0 -0
  33. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_effects_tween.swc +0 -0
  34. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_errors.swc +0 -0
  35. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_events.swc +0 -0
  36. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_io.swc +0 -0
  37. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils.swc +0 -0
  38. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_address.swc +0 -0
  39. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_array.swc +0 -0
  40. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_assert.swc +0 -0
  41. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_bezier.swc +0 -0
  42. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_boolean.swc +0 -0
  43. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_byte.swc +0 -0
  44. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_collections.swc +0 -0
  45. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_display.swc +0 -0
  46. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_flex.swc +0 -0
  47. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_font.swc +0 -0
  48. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_history.swc +0 -0
  49. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_identifier.swc +0 -0
  50. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_inspector.swc +0 -0
  51. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_locale.swc +0 -0
  52. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_number.swc +0 -0
  53. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_object.swc +0 -0
  54. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_random.swc +0 -0
  55. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_reflection.swc +0 -0
  56. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_reflection_members.swc +0 -0
  57. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_reflection_meta.swc +0 -0
  58. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_reflection_parser.swc +0 -0
  59. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_regex.swc +0 -0
  60. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_string.swc +0 -0
  61. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_substitution.swc +0 -0
  62. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_time.swc +0 -0
  63. data/lib/sprout/generators/project/templates/lib/opt/ffsys/com_ffsys_utils_xml.swc +0 -0
  64. data/lib/sprout/generators/project/templates/rakeassets.rb +77 -0
  65. data/lib/sprout/generators/project/templates/rakefile.rb +112 -0
  66. data/lib/sprout/generators/project/templates/rakefonts.rb +170 -0
  67. data/lib/sprout/generators/suite/USAGE +0 -0
  68. data/lib/sprout/generators/suite/suite_generator.rb +17 -0
  69. data/lib/sprout/generators/suite/templates/TestSuite.as +18 -0
  70. data/lib/sprout/generators/test/USAGE +37 -0
  71. data/lib/sprout/generators/test/templates/TestCase.as +30 -0
  72. data/lib/sprout/generators/test/templates/TestSuite.as +18 -0
  73. data/lib/sprout/generators/test/test_generator.rb +20 -0
  74. data/lib/sprout/tasks/asdoc_doc.rb +155 -0
  75. data/lib/sprout/tasks/asdoc_rdoc.rb +155 -0
  76. data/lib/sprout/tasks/asdoc_task.rb +276 -0
  77. data/lib/sprout/tasks/asunit_task.rb +148 -0
  78. data/lib/sprout/tasks/compc_doc.rb +543 -0
  79. data/lib/sprout/tasks/compc_rdoc.rb +543 -0
  80. data/lib/sprout/tasks/compc_task.rb +130 -0
  81. data/lib/sprout/tasks/fcsh_task.rb +13 -0
  82. data/lib/sprout/tasks/fdb_task.rb +0 -0
  83. data/lib/sprout/tasks/mxmlc_doc.rb +484 -0
  84. data/lib/sprout/tasks/mxmlc_rdoc.rb +484 -0
  85. data/lib/sprout/tasks/mxmlc_task.rb +659 -0
  86. data/rakefile.rb +73 -0
  87. metadata +192 -0
@@ -0,0 +1,543 @@
1
+ module Sprout
2
+ class COMPCTask < ToolTask
3
+ # Enables accessibility features when compiling the Flex application or SWC file. The default value is false.
4
+ def accessible=(boolean)
5
+ @accessible = boolean
6
+ end
7
+
8
+ # Sets the file encoding for ActionScript files. For more information see: http://livedocs.adobe.com/flex/2/docs/00001503.html#149244
9
+ def actionscript_file_encoding=(string)
10
+ @actionscript_file_encoding = string
11
+ end
12
+
13
+ # Checks if a source-path entry is a subdirectory of another source-path entry. It helps make the package names of MXML components unambiguous. This is an advanced option.
14
+ def allow_source_path_overlap=(boolean)
15
+ @allow_source_path_overlap = boolean
16
+ end
17
+
18
+ # Use the ActionScript 3.0 class-based object model for greater performance and better error reporting. In the class-based object model, most built-in functions are implemented as fixed methods of classes.
19
+ #
20
+ # The default value is true. If you set this value to false, you must set the es option to true.
21
+ #
22
+ # This is an advanced option.
23
+ def as3=(boolean)
24
+ @as3 = boolean
25
+ end
26
+
27
+ # Prints detailed compile times to the standard output. The default value is true.
28
+ def benchmark=(boolean)
29
+ @benchmark = boolean
30
+ end
31
+
32
+ # 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.
33
+ #
34
+ # For more information on using the {context.root} token, see http://livedocs.adobe.com/flex/2/docs/00001446.html#205687.
35
+ def context_root=(path)
36
+ @context_root = path
37
+ end
38
+
39
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
40
+ def contributor=(string)
41
+ @contributor = string
42
+ end
43
+
44
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files. (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380)
45
+ def creator=(string)
46
+ @creator = string
47
+ end
48
+
49
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files. (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380)
50
+ def date=(string)
51
+ @date = string
52
+ end
53
+
54
+ # Generates a debug SWF file. This file includes line numbers and filenames of all the source files. When a run-time error occurs, the stacktrace shows these line numbers and filenames. This information is also used by the command-line debugger and the Flex Builder debugger. Enabling the debug option generates larger SWF files.
55
+ #
56
+ # For the mxmlc compiler, the default value is false. For the compc compiler, the default value is true.
57
+ #
58
+ # For SWC files generated with the compc compiler, set this value to true, unless the target SWC file is an RSL. In that case, set the debug option to false.
59
+ #
60
+ # For information about the command-line debugger, see Using the Command-Line Debugger (http://livedocs.adobe.com/flex/2/docs/00001540.html#181846).
61
+ #
62
+ # Flex also uses the verbose-stacktraces setting to determine whether line numbers are added to the stacktrace.
63
+ def debug=(boolean)
64
+ @debug = boolean
65
+ end
66
+
67
+ # Lets you engage in remote debugging sessions with the Flash IDE. This is an advanced option.
68
+ def debug_password=(string)
69
+ @debug_password = string
70
+ end
71
+
72
+ # Sets the application's background color. You use the 0x notation to set the color, as the following example shows:
73
+ #
74
+ # -default-background-color=0xCCCCFF
75
+ #
76
+ # The default value is null. The default background of a Flex application is an image of a gray gradient. You must override this image for the value of the default-background-color option to be visible. For more information, see Editing application settings (http://livedocs.adobe.com/flex/2/docs/00001504.html#138781).
77
+ #
78
+ # This is an advanced option.
79
+ def default_background_color=(string)
80
+ @default_background_color = string
81
+ end
82
+
83
+ # Sets the application's frame rate. The default value is 24. This is an advanced option.
84
+ def default_frame_rate=(number)
85
+ @default_frame_rate = number
86
+ end
87
+
88
+ # Defines the default application size, in pixels for example: default_size = '950 550'. This is an advanced option.
89
+ def default_size=(string)
90
+ @default_size = string
91
+ end
92
+
93
+ # Defines the location of the default style sheet. Setting this option overrides the implicit use of the defaults.css style sheet in the framework.swc file.
94
+ #
95
+ # For more information on the defaults.css file, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
96
+ #
97
+ # This is an advanced option.
98
+ def default_css_url=(url)
99
+ @default_css_url = url
100
+ end
101
+
102
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
103
+ def description=(string)
104
+ @description = string
105
+ end
106
+
107
+ # Outputs the compiler options in the flex-config.xml file to the target path; for example:
108
+ #
109
+ # mxmlc -dump-config myapp-config.xml
110
+ #
111
+ # This is an advanced option.
112
+ def dump_config=(file)
113
+ @dump_config = file
114
+ end
115
+
116
+ # Use the ECMAScript edition 3 prototype-based object model to allow dynamic overriding of prototype properties. In the prototype-based object model, built-in functions are implemented as dynamic properties of prototype objects.
117
+ #
118
+ # You can set the strict option to true when you use this model, but it might result in compiler errors for references to dynamic properties.
119
+ #
120
+ # The default value is false. If you set this option to true, you must set the es3 option to false.
121
+ #
122
+ # This is an advanced option.
123
+ def es=(boolean)
124
+ @es = boolean
125
+ end
126
+
127
+ # Sets a list of symbols to exclude from linking when compiling a SWF file.
128
+ #
129
+ # This option provides compile-time link checking for external references that are dynamically linked.
130
+ #
131
+ # For more information about dynamic linking, see About linking (http://livedocs.adobe.com/flex/2/docs/00001521.html#205852).
132
+ #
133
+ # This is an advanced option.
134
+ def externs=(symbols)
135
+ @externs = symbols
136
+ end
137
+
138
+ # Specifies a list of SWC files or directories to exclude from linking when compiling a SWF file. This option provides compile-time link checking for external components that are dynamically linked.
139
+ #
140
+ # For more information about dynamic linking, see About linking (http://livedocs.adobe.com/flex/2/docs/00001521.html#205852).
141
+ #
142
+ # You can use the += operator to append the new SWC file to the list of external libraries.
143
+ #
144
+ # This parameter has been aliased as +el+.
145
+ def external_library_path=(files)
146
+ @external_library_path = files
147
+ end
148
+
149
+ # Specifies source files to compile. This is the default option for the mxmlc compiler.
150
+ def file_specs=(files)
151
+ @file_specs = files
152
+ end
153
+
154
+ # Specifies the range of Unicode settings for that language. For more information, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
155
+ #
156
+ # This is an advanced option.
157
+ def fonts_languages_language_range=(string)
158
+ @fonts_languages_language_range = string
159
+ end
160
+
161
+ # Defines the font manager. The default is flash.fonts.JREFontManager. You can also use the flash.fonts.BatikFontManager. For more information, see Using Styles and Themes in Flex 2 Developer's Guide (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755).
162
+ #
163
+ # This is an advanced option.
164
+ def fonts_managers=(symbols)
165
+ @fonts_managers = symbols
166
+ end
167
+
168
+ # Sets the maximum number of fonts to keep in the server cache. For more information, see Caching fonts and glyphs (http://livedocs.adobe.com/flex/2/docs/00001469.html#208457).
169
+ #
170
+ # This is an advanced option.
171
+ def fonts_max_cached_fonts=(number)
172
+ @fonts_max_cached_fonts = number
173
+ end
174
+
175
+ # Sets the maximum number of character glyph-outlines to keep in the server cache for each font face. For more information, see Caching fonts and glyphs (http://livedocs.adobe.com/flex/2/docs/00001469.html#208457).
176
+ #
177
+ # This is an advanced option.
178
+ def fonts_max_glyphs_per_face=(number)
179
+ @fonts_max_glyphs_per_face = number
180
+ end
181
+
182
+ # Specifies a SWF file frame label with a sequence of class names that are linked onto the frame.
183
+ #
184
+ # For example: frames_frame = 'someLabel MyProject OtherProject FoodProject'
185
+ #
186
+ # This is an advanced option.
187
+ def frames_frame=(string)
188
+ @frames_frame = string
189
+ end
190
+
191
+ # Toggles the generation of an IFlexBootstrap-derived loader class.
192
+ #
193
+ # This is an advanced option.
194
+ def generate_frame_loader=(boolean)
195
+ @generate_frame_loader = boolean
196
+ end
197
+
198
+ # Enables the headless implementation of the Flex compiler. This sets the following:
199
+ #
200
+ # System.setProperty('java.awt.headless', 'true')
201
+ #
202
+ # The headless setting (java.awt.headless=true) is required to use fonts and SVG on UNIX systems without X Windows.
203
+ #
204
+ # This is an advanced option.
205
+ def headless_server=(boolean)
206
+ @headless_server = boolean
207
+ end
208
+
209
+ # Links all classes inside a SWC file to the resulting application SWF file, regardless of whether or not they are used.
210
+ #
211
+ # Contrast this option with the library-path option that includes only those classes that are referenced at compile time.
212
+ #
213
+ # To link one or more classes whether or not they are used and not an entire SWC file, use the includes option.
214
+ #
215
+ # This option is commonly used to specify resource bundles.
216
+ def include_libraries=(files)
217
+ @include_libraries = files
218
+ end
219
+
220
+ # Links one or more classes to the resulting application SWF file, whether or not those classes are required at compile time.
221
+ #
222
+ # To link an entire SWC file rather than individual classes, use the include-libraries option.
223
+ def includes=(symbols)
224
+ @includes = symbols
225
+ end
226
+
227
+ # Enables incremental compilation. For more information, see About incremental compilation (http://livedocs.adobe.com/flex/2/docs/00001506.html#153980).
228
+ #
229
+ # This option is true by default for the Flex Builder application compiler. For the command-line compiler, the default is false. The web-tier compiler does not support incremental compilation.
230
+ def incremental=(boolean)
231
+ @incremental = boolean
232
+ end
233
+
234
+ # Determines whether to keep the generated ActionScript class files.
235
+ #
236
+ # The generated class files include stubs and classes that are generated by the compiler and used to build the SWF file.
237
+ #
238
+ # The default location of the files is the /generated subdirectory, which is directly below the target MXML file. If the /generated directory does not exist, the compiler creates one.
239
+ #
240
+ # The default names of the primary generated class files are filename-generated.as and filename-interface.as.
241
+ #
242
+ # The default value is false.
243
+ # This is an advanced option.
244
+ def keep_generated_actionscript=(boolean)
245
+ @keep_generated_actionscript = boolean
246
+ end
247
+
248
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
249
+ def language=(string)
250
+ @language = string
251
+ end
252
+
253
+ # Enables ABC bytecode lazy initialization.
254
+ #
255
+ # The default value is false.
256
+ #
257
+ # This is an advanced option.
258
+ def lazy_init=(boolean)
259
+ @lazy_init = boolean
260
+ end
261
+
262
+ # Links SWC files to the resulting application SWF file. The compiler only links in those classes for the SWC file that are required.
263
+ #
264
+ # The default value of the library-path option includes all SWC files in the libs directory and the current locale. These are required.
265
+ #
266
+ # To point to individual classes or packages rather than entire SWC files, use the source-path option.
267
+ #
268
+ # If you set the value of the library-path as an option of the command-line compiler, you must also explicitly add the framework.swc and locale SWC files. Your new entry is not appended to the library-path but replaces it.
269
+ #
270
+ # You can use the += operator to append the new argument to the list of existing SWC files.
271
+ #
272
+ # In a configuration file, you can set the append attribute of the library-path tag to true to indicate that the values should be appended to the library path rather than replace it.
273
+ def library_path=(files)
274
+ @library_path = files
275
+ end
276
+
277
+ # Prints linking information to the specified output file. This file is an XML file that contains <def>, <pre>, and <ext> symbols showing linker dependencies in the final SWF file.
278
+ #
279
+ # The file format output by this command can be used to write a file for input to the load-externs option.
280
+ #
281
+ # For more information on the report, see Examining linker dependencies (http://livedocs.adobe.com/flex/2/docs/00001394.html#211202).
282
+ #
283
+ # This is an advanced option.
284
+ def link_report=(file)
285
+ @link_report = file
286
+ end
287
+
288
+ # Specifies the location of the configuration file that defines compiler options.
289
+ #
290
+ # If you specify a configuration file, you can override individual options by setting them on the command line.
291
+ #
292
+ # All relative paths in the configuration file are relative to the location of the configuration file itself.
293
+ #
294
+ # Use the += operator to chain this configuration file to other configuration files.
295
+ #
296
+ # For more information on using configuration files to provide options to the command-line compilers, see About configuration files (http://livedocs.adobe.com/flex/2/docs/00001490.html#138195).
297
+ def load_config=(file)
298
+ @load_config = file
299
+ end
300
+
301
+ # Specifies the location of an XML file that contains <def>, <pre>, and <ext> symbols to omit from linking when compiling a SWF file. The XML file uses the same syntax as the one produced by the link-report option. For more information on the report, see Examining linker dependencies (http://livedocs.adobe.com/flex/2/docs/00001394.html#211202).
302
+ #
303
+ # This option provides compile-time link checking for external components that are dynamically linked.
304
+ #
305
+ # For more information about dynamic linking, see About linking (http://livedocs.adobe.com/flex/2/docs/00001521.html#205852).
306
+ #
307
+ # This is an advanced option.
308
+ def load_externs=(file)
309
+ @load_externs = file
310
+ end
311
+
312
+ # Specifies the locale that should be packaged in the SWF file (for example, en_EN). You run the mxmlc compiler multiple times to create SWF files for more than one locale, with only the locale option changing.
313
+ #
314
+ # You must also include the parent directory of the individual locale directories, plus the token {locale}, in the source-path; for example:
315
+ #
316
+ # mxmlc -locale en_EN -source-path locale/{locale} -file-specs MainApp.mxml
317
+ #
318
+ # For more information, see Localizing Flex Applicationsin (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) Flex 2 Developer's Guide.
319
+ def locale=(string)
320
+ @locale = string
321
+ end
322
+
323
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
324
+ def localized_description=(string)
325
+ @localized_description = string
326
+ end
327
+
328
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
329
+ def localized_title=(string)
330
+ @localized_title = string
331
+ end
332
+
333
+ # Specifies a namespace for the MXML file. You must include a URI and the location of the manifest file that defines the contents of this namespace. This path is relative to the MXML file.
334
+ #
335
+ # For more information about manifest files, see About manifest files (http://livedocs.adobe.com/flex/2/docs/00001519.html#134676).
336
+ def namespaces_namespace=(string)
337
+ @namespaces_namespace = string
338
+ end
339
+
340
+ # Enables the ActionScript optimizer. This optimizer reduces file size and increases performance by optimizing the SWF file's bytecode.
341
+ #
342
+ # The default value is false.
343
+ def optimize=(boolean)
344
+ @optimize = boolean
345
+ end
346
+
347
+ # Specifies the output path and filename for the resulting file. If you omit this option, the compiler saves the SWF file to the directory where the target file is located.
348
+ #
349
+ # The default SWF filename matches the target filename, but with a SWF file extension.
350
+ #
351
+ # If you use a relative path to define the filename, it is always relative to the current working directory, not the target MXML application root.
352
+ #
353
+ # The compiler creates extra directories based on the specified filename if those directories are not present.
354
+ #
355
+ # When using this option with the component compiler, the output is a SWC file rather than a SWF file.
356
+ def output=(file)
357
+ @output = file
358
+ end
359
+
360
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
361
+ def publisher=(string)
362
+ @publisher = string
363
+ end
364
+
365
+ # Prints a list of resource bundles to input to the compc compiler to create a resource bundle SWC file. The filename argument is the name of the file that contains the list of bundles.
366
+ #
367
+ # For more information, see Localizing Flex Applications (http://livedocs.adobe.com/flex/2/docs/00000898.html#129288) in Flex 2 Developer's Guide.
368
+ def resource_bundle_list=(file)
369
+ @resource_bundle_list = file
370
+ end
371
+
372
+ # Specifies a list of run-time shared libraries (RSLs) to use for this application. RSLs are dynamically-linked at run time.
373
+ #
374
+ # You specify the location of the SWF file relative to the deployment location of the application. For example, if you store a file named library.swf file in the web_root/libraries directory on the web server, and the application in the web root, you specify libraries/library.swf.
375
+ #
376
+ # For more information about RSLs, see Using Runtime Shared Libraries. (http://livedocs.adobe.com/flex/2/docs/00001520.html#168690)
377
+ def runtime_shared_libraries=(urls)
378
+ @runtime_shared_libraries = urls
379
+ end
380
+
381
+ # Specifies the location of the services-config.xml file. This file is used by Flex Data Services.
382
+ def services=(file)
383
+ @services = file
384
+ end
385
+
386
+ # Shows a warning when Flash Player cannot detect changes to a bound property.
387
+ #
388
+ # The default value is true.
389
+ #
390
+ # For more information about compiler warnings, see Using SWC files (http://livedocs.adobe.com/flex/2/docs/00001505.html#158337).
391
+ def show_binding_warnings=(boolean)
392
+ @show_binding_warnings = boolean
393
+ end
394
+
395
+ # Shows warnings for ActionScript classes.
396
+ #
397
+ # The default value is true.
398
+ #
399
+ # For more information about viewing warnings and errors, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
400
+ def show_actionscript_warnings=(boolean)
401
+ @show_actionscript_warnings = boolean
402
+ end
403
+
404
+ # Shows deprecation warnings for Flex components. To see warnings for ActionScript classes, use the show-actionscript-warnings option.
405
+ #
406
+ # The default value is true.
407
+ #
408
+ # For more information about viewing warnings and errors, see Viewing warnings and errors.
409
+ def show_deprecation_warnings=(boolean)
410
+ @show_deprecation_warnings = boolean
411
+ end
412
+
413
+ # Adds directories or files to the source path. The Flex compiler searches directories in the source path for MXML or AS source files that are used in your Flex applications and includes those that are required at compile time.
414
+ #
415
+ # You can use wildcards to include all files and subdirectories of a directory.
416
+ #
417
+ # To link an entire library SWC file and not individual classes or directories, use the library-path option.
418
+ #
419
+ # The source path is also used as the search path for the component compiler's include-classes and include-resource-bundles options.
420
+ #
421
+ # You can also use the += operator to append the new argument to the list of existing source path entries.
422
+ def source_path=(paths)
423
+ @source_path = paths
424
+ end
425
+
426
+ # Prints undefined property and function calls; also performs compile-time type checking on assignments and options supplied to method calls.
427
+ #
428
+ # The default value is true.
429
+ #
430
+ # For more information about viewing warnings and errors, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
431
+ def strict=(boolean)
432
+ @strict = boolean
433
+ end
434
+
435
+ # Specifies a list of theme files to use with this application. Theme files can be SWC files with CSS files inside them or CSS files.
436
+ #
437
+ # For information on compiling a SWC theme file, see Using Styles and Themes (http://livedocs.adobe.com/flex/2/docs/00000751.html#241755) in Flex 2 Developer's Guide.
438
+ def theme=(files)
439
+ @theme = files
440
+ end
441
+
442
+ # Sets metadata in the resulting SWF file. For more information, see Adding metadata to SWF files (http://livedocs.adobe.com/flex/2/docs/00001502.html#145380).
443
+ def title=(string)
444
+ @title = string
445
+ end
446
+
447
+ # Specifies that the current application uses network services.
448
+ #
449
+ # The default value is true.
450
+ #
451
+ # 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.
452
+ #
453
+ # For more information about the use-network property, see Applying Flex Security (http://livedocs.adobe.com/flex/2/docs/00001328.html#137544).
454
+ def use_network=(boolean)
455
+ @use_network = boolean
456
+ end
457
+
458
+ # Generates source code that includes line numbers. When a run-time error occurs, the stacktrace shows these line numbers.
459
+ #
460
+ # Enabling this option generates larger SWF files.
461
+ # The default value is false.
462
+ def verbose_stacktraces=(boolean)
463
+ @verbose_stacktraces = boolean
464
+ end
465
+
466
+ # Enables specified warnings. For more information, see Viewing warnings and errors (http://livedocs.adobe.com/flex/2/docs/00001517.html#182413).
467
+ def warn_warning_type=(boolean)
468
+ @warn_warning_type = boolean
469
+ end
470
+
471
+ # Enables all warnings. Set to false to disable all warnings. This option overrides the warn-warning_type options.
472
+ #
473
+ # The default value is true.
474
+ def warnings=(boolean)
475
+ @warnings = boolean
476
+ end
477
+
478
+ # Main source file to send compiler
479
+ def input=(file)
480
+ @input = file
481
+ end
482
+
483
+ # Outputs the SWC file in an open directory format rather than a SWC file. You use this option with the output option to specify a destination directory, as the following example shows:
484
+ # compc -directory -output destination_directory
485
+ #
486
+ # You use this option when you create RSLs. For more information, see Using Runtime Shared Libraries (http://livedocs.adobe.com/flex/201/html/rsl_124_1.html#168690).
487
+ def directory=(boolean)
488
+ @directory = boolean
489
+ end
490
+
491
+ # Specifies classes to include in the SWC file. You provide the class name (for example, MyClass) rather than the file name (for example, MyClass.as) to the file for this option. As a result, all classes specified with this option must be in the compiler's source path. You specify this by using the source-path compiler option.
492
+ #
493
+ # You can use packaged and unpackaged classes. To use components in namespaces, use the include-namespaces option.
494
+ #
495
+ # If the components are in packages, ensure that you use dot-notation rather than slashes to separate package levels.
496
+ #
497
+ # This is the default option for the component compiler.
498
+ def include_classes=(symbols)
499
+ @include_classes = symbols
500
+ end
501
+
502
+ # Adds the file to the SWC file. This option does not embed files inside the library.swf file. This is useful for skinning and theming, where you want to add non-compiled files that can be referenced in a style sheet or embedded as assets in MXML files.
503
+ #
504
+ # If you use the [Embed] syntax to add a resource to your application, you are not required to use this option to also link it into the SWC file.
505
+ #
506
+ # For more information, see Adding nonsource classes (http://livedocs.adobe.com/flex/201/html/compilers_123_39.html#158900).
507
+ def include_file=(files)
508
+ @include_file = files
509
+ end
510
+
511
+ #
512
+ def include_lookup_only=(boolean)
513
+ @include_lookup_only = boolean
514
+ end
515
+
516
+ # Specifies namespace-style components in the SWC file. You specify a list of URIs to include in the SWC file. The uri argument must already be defined with the namespace option.
517
+ #
518
+ # To use components in packages, use the include-classes option.
519
+ def include_namespaces=(urls)
520
+ @include_namespaces = urls
521
+ end
522
+
523
+ # Specifies the resource bundles to include in this SWC file. All resource bundles specified with this option must be in the compiler's source path. You specify this using the source-path compiler option.
524
+ #
525
+ # For more information on using resource bundles, see Localizing Flex Applications (http://livedocs.adobe.com/flex/201/html/l10n_076_1.html#129288) in Flex 2 Developer's Guide.
526
+ def include_resource_bundles=(files)
527
+ @include_resource_bundles = files
528
+ end
529
+
530
+ # Specifies classes or directories to add to the SWC file. When specifying classes, you specify the path to the class file (for example, MyClass.as) rather than the class name itself (for example, MyClass). This lets you add classes to the SWC file that are not in the source path. In general, though, use the include-classes option, which lets you add classes that are in the source path.
531
+ #
532
+ # If you specify a directory, this option includes all files with an MXML or AS extension, and ignores all other files.
533
+ def include_sources=(paths)
534
+ @include_sources = paths
535
+ end
536
+
537
+ # Not sure about this option, it was in the CLI help, but not documented on the Adobe site
538
+ def namespace=(string)
539
+ @namespace = string
540
+ end
541
+
542
+ end
543
+ end