Flex Ant: Compile multiple module -


I am trying to compile my project using ant. I did. But I have a problem I do not know how to solve.

  & lt ;! - Compile module (s) - & gt; & Lt; Target name = "compile module" dependent = "compilation BLP" & gt; & Lt; Record Name = "$ {LOG_DIR} / LOG _ $ {CURR_TIME_SUBFIX} $ {LOG_FILE_TYPE}" app = "wrong" action = "start" /> & Lt; Cpmdl file = "com / do / pi / visual / DM / module1" /> & Lt; Cpmdl file = "com / do / p / scene / pim / module 2" /> & Lt; Record Name = "$ {LOG_DIR} / LOG _ $ {CURR_TIME_SUBFIX} $ {LOG_FILE_TYPE}" Action = "Stop" /> & Lt; / Target & gt; & Lt ;! - Package module (E) - & gt; & Lt; Macrodef name = "cpmdl" & gt; & Lt; Attribute name = "file" /> & Lt; Sequential & gt; & Lt; Echo & gt; @ {File} & lt; / Echo & gt; & Lt; Mxmlc file = "$ {SRC_DIR}/@{file}.mxml" output = '$ {DEPLOY_DIR }/@{file}.swf' optimize = "true" debug = "false" incremental = "false" fork = "true "& Gt; & Lt; Compiler.source-path path-element = "$ {SRC_DIR}" /> & Lt; Source-path path-element = "$ {FLEX_HOME} / framework" /> & Lt; Compiler.library-path dir = "$ {FLEX_HOME} / frameworks" app = "true" & gt; & Lt; Include name = "libs" / & gt; & Lt; /compiler.library-path> & Lt; Compiler.library-path dir = "$ {baseir}" append = "true" & gt; & Lt; Include name = "libs" / & gt; & Lt; Include name = "src / assets / swc" /> & Lt; /compiler.library-path> & Lt; Source-path path- element = "$ {SRC_DIR}" /> & Lt; / Mxmlc & gt; & Lt; / Sequential & gt; & Lt; / Macrodef> You can see if I compile 2 modules, then I have to load the file config two times.  
  [mxmlc] Loading the configuration file C: \ Program Files \ Adobe \ Adobe Flash Builder 4 plug-in \ sdks \ 4.1 .0 \ frameworks \ flex-config.xml [mxmlc ] D: \ Projects \ Bloppy \ build \ Déplo \ com \ du \ pi \ views \ dm \ Module1.swf (1233413 bytes) [mxmlc] Loading configuration file C: \ Program Files \ Adobe \ Adobe Flash Builder 4 Plug-in \ sdks \ 4.1.0 \ frameworks \ flex-config.xml [mxmlc] D: \ projects \ BLP \ build \ DEPLOY \ com \ dou \ pi \ views \ pim \ Module2.swf (963045 bytes)   

Maybe, this is not good, though, do we have to Net 1 bar can load?

Hope you can give me some suggestions, thank you.

There is actually nothing in the loading of the config file is done internally by MXLLC, ant No. Remember, every time you call mxmlc in your anti script, it is launching a new instance, so each instance has to load the configuration for itself.

This is similar to the way your web browser launches, close it and open it again, you will load your homepage twice. There is nothing in the environment that can save the page in memory so that it can complete the second charge of the program.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -