Ant - replace fb.exportReleaseBuild with mxmlc and compc

I have a complex Flash Builder workspace with 18 Flex library projects and one AS3 project, where there are many dependencies between them.

I created the ANT build.xml file for automatic assemblies, however I use the ANT task from Flash Builder itself:

<fb.exportReleaseBuild project="..." destdir="..." failonerror="true" /> 

This works, but it brings some disadvantages:

  • no debug build
  • Flash Builder must be installed (not available on Linux server).

So my question is : is there an easy way to rewrite this fb.exportReleaseBuild ANT task for small project tasks using mxmlc and compc ?

Each swc project has 4 other dependencies of swc and other external assets that must be linked for implementation.

+6
source share
1 answer

I don’t know how the fb.exportReleaseBuild task works, but I think it can help you achieve some kind of similar task on the unix platform if you are using flexbuild 4 or later.

see link in adobe online doc

You can use the '-dump-config' option to flush setigns taht mxmlc or the compc compiler used in the file, and then use the '-load-config' option to download it from the unix platform. Detailed steps have just been copied from the link:

  • In Flash Builder, choose Project> Properties> Flex Compiler
  • In additional compiler arguments, specify the following argument: -dump-config pathname, where pathname indicates the absolute path to your system file.
  • Apply changes in the project window. Compiler options are written to the specified file. Remove the -dump-config argument after you have confirmed that the file was written.
  • Change the configuration settings if necessary. In your build script, run the compiler to include the saved compiler settings:
  • mxmlc -load-config pathname
+1
source

Source: https://habr.com/ru/post/905648/


All Articles