lib/sprout/tasks/compc_doc.rb in sprout-as3-bundle-0.1.34 vs lib/sprout/tasks/compc_doc.rb in sprout-as3-bundle-0.1.37
- old
+ new
@@ -478,31 +478,66 @@
# Main source file to send compiler
def input=(file)
@input = file
end
+# 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:
+# compc -directory -output destination_directory
+#
+# 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).
+def directory=(boolean)
+ @directory = boolean
+end
+
+# 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.
+#
+# You can use packaged and unpackaged classes. To use components in namespaces, use the include-namespaces option.
+#
+# If the components are in packages, ensure that you use dot-notation rather than slashes to separate package levels.
+#
+# This is the default option for the component compiler.
def include_classes=(symbols)
@include_classes = symbols
end
-def include_file=(file)
- @include_file = file
+# 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.
+#
+# 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.
+#
+# For more information, see Adding nonsource classes (http://livedocs.adobe.com/flex/201/html/compilers_123_39.html#158900).
+def include_file=(files)
+ @include_file = files
end
+#
def include_lookup_only=(boolean)
@include_lookup_only = boolean
end
+# 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.
+#
+# To use components in packages, use the include-classes option.
def include_namespaces=(urls)
@include_namespaces = urls
end
+# 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.
+#
+# 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.
def include_resource_bundles=(files)
@include_resource_bundles = files
end
+# 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.
+#
+# If you specify a directory, this option includes all files with an MXML or AS extension, and ignores all other files.
def include_sources=(paths)
@include_sources = paths
+end
+
+# Not sure about this option, it was in the CLI help, but not documented on the Adobe site
+def namespace=(string)
+ @namespace = string
end
end
end