FLEX提高编译效率解决方案1

上传人:无*** 文档编号:185563645 上传时间:2023-02-04 格式:PDF 页数:9 大小:438.12KB
收藏 版权申诉 举报 下载
FLEX提高编译效率解决方案1_第1页
第1页 / 共9页
FLEX提高编译效率解决方案1_第2页
第2页 / 共9页
FLEX提高编译效率解决方案1_第3页
第3页 / 共9页
资源描述:

《FLEX提高编译效率解决方案1》由会员分享,可在线阅读,更多相关《FLEX提高编译效率解决方案1(9页珍藏版)》请在装配图网上搜索。

1、FLEXFLEX 提高编译效率解决方案提高编译效率解决方案一问题描述:.1二解决方案:.1三编译效率测试.2四推荐方案.9一问题描述:一问题描述:编译效率是开发效率中的一个重要环节,下列几种情况使得 FlexBuilder 的编译效率低下,1).开发人员的机器配置太低(要求 2G 以上内存),2).工程中加载的模块太多甚至模块间有关联,3).每次修改都自动编译整个项目。除了机器要求之外,下列分析并提供了四种能够提高编译效率的方式。二解决方案:二解决方案:1.使用模块化开发,不开发的就不引用,这样可大大加快编译速度。开发人员各司其职,最后公布的时候再统一 builder。2.把 Build Au

2、tomatically选项去掉,模块编译改用手动 Build,修改完善之后才进行 Build,该方式为增量编译。3.使用 fsch+ant 编译模块,fsch 是一个编译的后台程序,需要在开发机器上安装,通过 ant 执行 build.xml 文件来调用 fsch 服务,build 文件中的执行如下:这种方式产生的模块 swf 文件较使用 FlexBuilder 合并代码编译的结果小,但是ant 编译目前无法结合应用程序 Main.mxml 方式编译,因此编译结果的模块需要添加样式文件,如:。4.4.安装安装 YLZPlugin eclipseYLZPlugin eclipse 插件,在插件,

3、在 FlexFlex 模块文件上点击右键菜单“编译模块文件上点击右键菜单“编译 FlexFlex模块”模块”,这种方式编译简单这种方式编译简单,编译效率高而且不需要每次要编译一个模块就修改编译效率高而且不需要每次要编译一个模块就修改antant 文件文件三编译效率测试三编译效率测试下列测试环境:CPU 2.4GHZ内存:2G开发工具 Myeclipse8.5+FlexBuilder-Xmx768m-XX:MaxPermSize=256m-XX:ReservedCodeCacheSize=64m1.使用 fsch+ant 的方式编译第一次编译:Buildfile:E:workspaceYLZCB

4、Pantbuild-fsch.xmlecho E:workspaceYLZCBPecho C:Program Files(x86)Fcsh Server/fcsh.jarbuildfcsh:fcsh Server is not responding.Probably it is stopped.Trying to launch.fcsh Server startedfcsh Trying to connect.Attempt 1 of 5fcsh Paused for 2 seconds.fcsh Trying to connect.Attempt 2 of 5fcsh Connection

5、establishedfcsh Send command:mxmlc E:workspaceYLZCBP/flex-src/modules/sysmanager/SysorgManager.mxml-output=D:greensoftwaretomcat5.5.20webappsYLZCBPswf/modules/sysmanager/SysorgManager.swf-load-config=D:flexsdks4.0.0/frameworks/flex-config.xml-source-path=E:workspaceYLZCBP/flex-src-library-path+=E:wo

6、rkspaceYLZCBP/flex-lib/YLZFlex.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_core.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_report.swc-link-report=E:workspaceYLZCBP/flex-src/Main_report.xml-theme=D:flexsdks4.0.0/frameworks/themes/Halo/halo.swcfcsh fcsh:Assigned 1 as the compile target idfcsh Loading configura

7、tion file D:flexsdks4.0.0frameworksflex-config.xmlfcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerentitySysfunction.as(9):col:21 Warning:variable“TYPE_FOLDER”没有类型声明。fcshfcshpublic static var TYPE_FOLDER=0;/节点fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerentitySysfunction.as(10):col:21 Warning:

8、variable“TYPE_LEAF”没有类型声明。fcshfcshpublic static var TYPE_LEAF=1;/叶子fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerentitySysfunction.as(11):col:21 Warning:variable“TYPE_BUTTON”没有类型声明。fcshfcshpublic static var TYPE_BUTTON=2;/按钮fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(11):col:21 War

9、ning:variable“SERVICE_CURRENTUSER”没有类型声明。fcshfcshpublic static var SERVICE_CURRENTUSER=loadCurrentUser;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(12):col:21 Warning:variable“SERVICE_LOGIN”没有类型声明。fcshfcshpublic static var SERVICE_LOGIN=syslogin;fcsh E:workspaceYLZCBPflex-srccomylzinfoc

10、ommonsGlobals.as(13):col:21 Warning:variable“SERVICE_LOGOUT”没有类型声明。fcshfcshpublic static var SERVICE_LOGOUT=syslogout;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(15):col:21 Warning:variable“SERVICE_MENU”没有类型声明。fcshfcshpublic static var SERVICE_MENU=sysfunction;fcsh E:workspaceYLZCBPfle

11、x-srccomylzinfocommonsGlobals.as(16):col:21 Warning:variable“SERVICE_SYSCODE”没有类型声明。fcshfcshpublic static var SERVICE_SYSCODE=syscode;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(21):col:24 Warning:variable“SERVICE_SYSFUNCTIONQUERY”没有类型声明。fcshfcshpublic static var SERVICE_SYSFUNCTIONQUE

12、RY=sysfunctionquery;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(23):col:21 Warning:variable“SERVICE_REPORTS”没有类型声明。fcshfcshpublic static var SERVICE_REPORTS=loadStatisticalReports;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(24):col:21 Warning:variable“SERVICE_REPORTS_STAT

13、ISTICAL”没有类型声明。fcshfcshpublic static var SERVICE_REPORTS_STATISTICAL=setStatisticalReports;fcsh E:workspaceYLZCBPflex-srccomylzinfocommonsGlobals.as(27):col:21 Warning:variable“SERVICE_LOCALDB”没有类型声明。fcshfcshpublic static var SERVICE_LOCALDB=localDBService;fcsh E:workspaceYLZCBPflex-srccomylzinfosys

14、managerSystemUtil.as(26):col:30 Warning:returnvalue for function“init”没有类型声明。fcshfcshpublic static function init()fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(74):col:39 Warning:returnvalue for function“reloadSyscode”没有类型声明。fcshfcshpublic static function reloadSyscode()fcsh E:work

15、spaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(79):col:11 Warning:variable“datas”没有类型声明。fcshfcshvar datas=res.getArrayDatas();fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(97):col:8 Warning:variable“params”没有类型声明。fcshfcshvar params=new Object();fcsh E:workspaceYLZCBPflex-srcc

16、omylzinfosysmanagerSystemUtil.as(109):col:12 Warning:variable“i”没有类型声明。fcshfcshfor(var i=0;irows.length;i+)fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(120):col:52 Warning:returnvalue for function“onLoadFunctionSuccess”没有类型声明。fcshfcshfunction onLoadFunctionSuccess(res:ResponseEnti

17、ty)fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(122):col:10 Warning:variable“rows”没有类型声明。fcshfcshvar rows=res.datas;fcsh E:workspaceYLZCBPflex-srccomylzinfosysmanagerSystemUtil.as(151):col:8 Warning:variable“params”没有类型声明。fcshfcshvar params=new Object();fcsh E:workspaceYLZCBPflex-

18、srccomylzinfosysmanagerSystemUtil.as(221):col:50 Warning:returnvalue for function“onLoadReportSuccess”没有类型声明。fcshfcshfunction onLoadReportSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(26):Warning:ewZ文_applicationhas been deprecated since 4.0.Please use FlexGlo

19、bals.topLevelApplication.fcshvar window:SysroleGrantWindow=SysroleGrantWindow(PopUpManager.createPopUp(Application.application as DisplayObject,SysroleGrantWindow,true);fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(28):Warning:return value forfunction“doCloseWindow”没有类型声明。fcshfunction d

20、oCloseWindow()fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(40):Warning:return value forfunction“close”没有类型声明。fcshpublic function close()fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(46):Warning:return value forfunction“onLoadFunctionSuccess”没有类型声明。fcshprivatefunction onLoa

21、dFunctionSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(60):Warning:return value forfunction“initFunctiontree”没有类型声明。fcshpublic function initFunctiontree()fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(72):Warning:return value forfunction“init”没有类型声

22、明。fcshprivate function init()fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(77):Warning:return value forfunction“onSaveFunctionSuccess”没有类型声明。fcshprivate function onSaveFunctionSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(80):Warning:return value

23、forfunction“save”没有类型声明。fcsh明。fcsh明。fcshfcshfor(var i=0;ipartfunctions.length;i+)for(var i=0;ipartfunctions.length;i+)fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(92):Warning:变量定义重复。fcsh E:workspaceYLZCBPflex-srcviewsSysorgGrantWindow.mxml(40):Warning:ewZ文_applicationhas been deprecate

24、d since 4.0.Please use FlexGlobals.topLevelApplication.fcshvar window:SysorgGrantWindow=SysorgGrantWindow(PopUpManager.createPopUp(Application.application as DisplayObject,SysorgGrantWindow,true);fcsh E:workspaceYLZCBPflex-srcviewsSysorgGrantWindow.mxml(42):Warning:return value forfunction“doCloseWi

25、ndow”没有类型声明。fcshfunction doCloseWindow()fcsh E:workspaceYLZCBPflex-srcviewsSysorgGrantWindow.mxml(62):Warning:return value forfunction“grantOrg”没有类型声明。fcshprivate function grantOrg()for(var i=0;ifunctions.length;i+)fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(92):Warning:variable“i”没有类

26、型声private function save()fcsh E:workspaceYLZCBPflex-srcviewsSysroleGrantWindow.mxml(86):Warning:variable“i”没有类型声fcsh E:workspaceYLZCBPflex-srcviewsSysorgGrantWindow.mxml(70):Warning:variable“i”没有类型声明。fcshfor(var i=0;iitems.length;i+)fcsh E:workspaceYLZCBPflex-srcviewsSysreportGrantWindow.mxml(34):Wa

27、rning:return value forfunction“doCloseWindow”没有类型声明。fcshfunction doCloseWindow()fcsh E:workspaceYLZCBPflex-srcviewsSysreportGrantWindow.mxml(46):Warning:return value forfunction“close”没有类型声明。fcshpublic function close()fcsh E:workspaceYLZCBPflex-srcviewsSysreportGrantWindow.mxml(52):Warning:return va

28、lue forfunction“onLoadReportSuccess”没有类型声明。fcshprivatefunction onLoadReportSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcviewsSysreportGrantWindow.mxml(66):Warning:return value forfunction“initReportList”没有类型声明。fcshpublic function initReportList()fcsh E:workspaceYLZCBPflex-srcviewsSysrepo

29、rtGrantWindow.mxml(78):Warning:return value forfunction“init”没有类型声明。fcshprivate function init()fcsh E:workspaceYLZCBPflex-srcviewsSysreportGrantWindow.mxml(83):Warning:return value forfunction“onSaveReportSuccess”没有类型声明。fcshprivate function onSaveReportSuccess(res:ResponseEntity)fcsh E:workspaceYLZC

30、BPflex-srcviewsSysreportGrantWindow.mxml(86):Warning:return value forfunction“save”没有类型声明。fcshprivate function save()fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(46):Warning:variable“lastRollOverIndex”没有类型声明。fcshprivate var lastRollOverIndex;fcsh E:workspaceYLZCBPflex-srcmodules

31、sysmanagerSysorgManager.mxml(48):Warning:variable“state”没有类型声明。fcshprivate var state=default;fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(53):Warning:returnvalue for function“result”没有类型声明。fcshfunction result(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSyso

32、rgManager.mxml(57):Warning:variable“datas”没有类型声明。fcshvar datas=res.getArrayDatas();fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(120):Warning:returnvalue for function“yesFunction”没有类型声明。fcshfunction yesFunction()fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(13

33、4):Warning:returnvalue for function“onDeleteSuccess”没有类型声明。fcshfunction onDeleteSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(157):Warning:returnvalue for function“doReset”没有类型声明。fcshprivate function doReset()fcsh E:workspaceYLZCBPflex-srcmodulessysmana

34、gerSysorgManager.mxml(167):Warning:returnvalue for function“doSave”没有类型声明。fcshprivate function doSave()fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(175):Warning:returnvalue for function“onAddSuccess”没有类型声明。fcshfunction onAddSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-s

35、rcmodulessysmanagerSysorgManager.mxml(202):Warning:returnvalue for function“onUpdateSuccess”没有类型声明。fcsh重复。fcshvar rs:RemoteService=new RemoteService(sysorgupdate);fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(225):Warning:returnvalue for function“initContentMenu”没有类型声明。fcshpublic

36、 function initContentMenu()fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(267):Warning:returnvalue for function“clickGrantorg”没有类型声明。fcshfunction clickGrantorg(event:Event)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(275):Warning:returnvalue for function“callb

37、ack”没有类型声明。fcshfunction callback()fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(298):Warning:returnvalue for function“clickGrant”没有类型声明。fcshfunction clickGrant(event:Event)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(331):Warning:returnvalue for function“clic

38、kReportGrant”没有类型声明。fcshfunction clickReportGrant(event:Event)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(369):Warning:returnvalue for function“onValidateSuccess”没有类型声明。fcshfunction onValidateSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManage

39、r.mxml(405):Warning:variable“i”没有类型声明。fcshfor(var i=0;iobj.length;i+)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(469):Warning:returnvalue for function“onLoadPRRolesSuccess”没有类型声明。fcshprivatefunction onLoadPRRolesSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcmodulessy

40、smanagerSysorgManager.mxml(498):Warning:Databinding will not be able to detect assignments to sysorg.fcshns1:YLZTree id=sysorgTreefcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(498):Warning:Databinding will not be able to detect assignments to parent.fcshns1:YLZTree id=sysorgTreef

41、csh D:flexsdks4.0.0frameworkslibsframework.swc$defaults.css(487):Warning:The stylefunction onUpdateSuccess(res:ResponseEntity)fcsh E:workspaceYLZCBPflex-srcmodulessysmanagerSysorgManager.mxml(211):Warning:变量定义dropShadowVisible is only supported by type mx.controls.List with the theme(s)spark.fcsh E:

42、workspaceYLZCBPflex-srcstyle.css(46):Warning:The CSS type selectormx.containers.ApplicationControlBar was not processed,because the type was not used in the application.fcsh mx|ApplicationControlBar fcsh E:workspaceYLZCBPflex-srcstyle.css(54):Warning:The CSS type selectormx.containers.Accordion was

43、not processed,because the type was not used in the application.fcsh mx|Accordion fcsh D:greensoftwaretomcat5.5.20webappsYLZCBPswf/modules/sysmanager/SysorgManager.swf(874872 bytes)fcsh(fcsh)fcsh Fix this warnings.Dude!BUILD SUCCESSFULTotal time:31 seconds第二次编译Buildfile:E:workspaceYLZCBPantbuild-fsch

44、.xmlecho E:workspaceYLZCBPecho C:Program Files(x86)Fcsh Server/fcsh.jarbuildfcsh:fcsh Send command:mxmlc E:workspaceYLZCBP/flex-src/modules/sysmanager/SysorgManager.mxml-output=D:greensoftwaretomcat5.5.20webappsYLZCBPswf/modules/sysmanager/SysorgManager.swf-load-config=D:flexsdks4.0.0/frameworks/fle

45、x-config.xml-source-path=E:workspaceYLZCBP/flex-src-library-path+=E:workspaceYLZCBP/flex-lib/YLZFlex.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_core.swc;E:workspaceYLZCBP/flex-lib/YLZFlex_report.swc-link-report=E:workspaceYLZCBP/flex-src/Main_report.xml-theme=D:flexsdks4.0.0/frameworks/themes/Halo/halo.

46、swcfcsh Loading configuration file D:flexsdks4.0.0frameworksflex-config.xmlfcsh Nothing has changed since the last compile.Skip.fcsh D:greensoftwaretomcat5.5.20webappsYLZCBPswf/modules/sysmanager/SysorgManager.swf(874872 bytes)fcsh(fcsh)fcsh Awesome!BUILD SUCCESSFULTotal time:2 seconds2.2.使用使用 YLZPluginYLZPlugin 右键菜单单独编译右键菜单单独编译第一次编译:第二次编译四推荐方案四推荐方案项目开发应该模块化开发,开发人员各施其职,负责自己的模块编译自己的模块。界面开发也能够从由单独的人员负责进行。第一次全部编译,之后的修改都使用YLZPlugin 的右键编译。最后在公布前使用全局的 FlexBuilder 编译。

展开阅读全文
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!