Code<?xml version="1.0" encoding="utf-8"?><projectname="Flex Ant Builder Sample Project"basedir="."><taskdefresource="flexTasks.tasks"classpath="D:/program files/Flex Builder 3/Flex Builder 3/sdks/flex_sdk_3/ant/lib/flextasks.jar"/><propertyname="FLEX_HOME"value="D:/program files/Flex Builder 3/Flex Builder 3/sdks/flex_sdk_3"/><propertyname="app_root"value="${basedir}"/><propertyname="deploy_dir"value="bin-debug"/><!--could change--><!--compiled mxml/as file name--><propertyname="filename"value="m_fangshou"/><!--compiled mxml/as file ext--><propertyname="fileext"value="mxml"/><!--third party swc--><!--<property name="third_party" value="d:/work/thirdparty/flexlib" />--><!--modular application's main application filename--><propertyname="mainapp"value=""/><!--output package direction,end with /--><propertyname="package"value="com/adobe/cairngorm/game/view/window/"/><propertyname="flashplayer"value="d:/eclipse/adobe/flex builder 2 plug-in/player/debug/saflashplayer.exe"/><propertyname="ie"value="c:\program files\internet explorer\iexplore.exe"/><!--compile a mxml/as file--><targetname="compile"depends="cleanCompile"><mxmlcfile="${app_root}/src/${package}${filename}.${fileext}"output="${deploy_dir}/${package}${filename}.swf"actionscript-file-encoding="utf-8"keep-generated-actionscript="false"warnings="false"incremental="true"><!--***** source file path *******--><compiler.source-pathpath-element="${basedir}/src"/><!--get default compiler options.--><load-configfilename="${FLEX_HOME}/frameworks/flex-config.xml"/><!--List of path elements that form the roots of ActionScript class hierarchies.--><source-pathpath-element="${FLEX_HOME}/frameworks"/><!--List of SWC files or directories that contain SWC files.--><compiler.library-pathdir="${FLEX_HOME}/frameworks"append="true"><includename="libs"/><includename="../bundles/{locale}"/></compiler.library-path><compiler.library-pathdir="src/assets/swc"append="true"><includename="chengchi.swc"/><includename="chengwai.swc"/></compiler.library-path><compiler.library-pathdir="libs"append="true"><includename="Cairngorm.swc"/></compiler.library-path><!--***** thirdparth swc *****--><compiler.include-librariesdir="libs"append="true"><includename="cairngorm.swc"/></compiler.include-libraries><!--set size of output swf file.
                  <default-size width="500" height="600" />
--></mxmlc><delete><!--Deletes cache file--><filesetdir="${app_root}/${package}"includes="${fileName}*.cache"defaultexcludes="false"/></delete></target><!--compile mxml file and Generate a Link Report for the embed module--><targetname="CompileAndGenerateLinkReport"><mxmlcfile="${app_root}/${package}${fileName}.${fileExt}"link-report="${app_root}/${package}${fileName}_LinkReport.xml"output="${DEPLOY_DIR}/${package}${fileName}.swf"actionscript-file-encoding="UTF-8"keep-generated-actionscript="false"incremental="true"><!--Get default compiler options.--><load-configfilename="${FLEX_HOME}/frameworks/flex-config.xml"/><!--List of path elements that form the roots of ActionScript class hierarchies.--><source-pathpath-element="${FLEX_HOME}/frameworks"/><source-pathpath-element="${app_root}"/><!--List of SWC files or directories that contain SWC files.--><compiler.library-pathdir="${FLEX_HOME}/frameworks"append="true"><includename="libs"/><includename="../bundles/{locale}"/></compiler.library-path><!--Set size of output SWF file.--><default-sizewidth="500"height="600"/></mxmlc><delete><!--Deletes cache file--><filesetdir="${app_root}/${package}"includes="${fileName}*.cache"defaultexcludes="false"/></delete></target><!--compile Modular mxml file with mainApp's Link Report--><targetname="CompileModuleWithLinkReport"><mxmlcfile="${app_root}/${package}${fileName}.${fileExt}"load-externs="${app_root}/${mainApp}_LinkReport.xml"output="${DEPLOY_DIR}/${package}${fileName}.swf"actionscript-file-encoding="UTF-8"keep-generated-actionscript="false"incremental="true"><!--Get default compiler options.--><load-configfilename="${FLEX_HOME}/frameworks/flex-config.xml"/><!--List of path elements that form the roots of ActionScript class hierarchies.--><source-pathpath-element="${FLEX_HOME}/frameworks"/><!--List of SWC files or directories that contain SWC files.--><compiler.library-pathdir="${FLEX_HOME}/frameworks"append="true"><includename="libs"/><includename="../bundles/{locale}"/></compiler.library-path><!--Set size of output SWF file.--><default-sizewidth="500"height="600"/></mxmlc><delete><!--Deletes cache file--><filesetdir="${app_root}/${package}"includes="${fileName}*.cache"defaultexcludes="false"/></delete></target><!--wrapper a swf with html express-installation template--><targetname="wrapper"depends="cleanWrapper"><html-wrappertitle="Actor's lines in web"width="100%"height="100%"application="flexApp"swf="${fileName}"version-major="9"version-minor="0"version-revision="0"history="true"template="express-installation"output="${DEPLOY_DIR}/${package}"/><movefile="${DEPLOY_DIR}/${package}index.html"tofile="${DEPLOY_DIR}/${fileName}.html"/><copytodir="${DEPLOY_DIR}/assets"><filesetdir="./assets"/></copy></target><!--clean preview previous compile file--><targetname="cleanCompile"><deletedir="${app_root}/${package}generated"/><delete><filesetdir="${deploy_dir}/${package}"includes="${fileName}*.swf"/></delete></target><!--clean preview previous wrapper file--><targetname="cleanWrapper"><delete><!--Deletes history.swf--><filesetdir="${DEPLOY_DIR}/${package}"includes="history.swf"defaultexcludes="false"/><!--Deletes playerProductInstall.swf--><filesetdir="${DEPLOY_DIR}/${package}"includes="playerProductInstall.swf"defaultexcludes="false"/><!--Deletes ${fileName}.html--><filesetdir="${DEPLOY_DIR}/${package}"includes="${fileName}*.html"defaultexcludes="false"/><!--Deletes history.htm--><filesetdir="${DEPLOY_DIR}/${package}"includes="$history.htm"defaultexcludes="false"/><!--Deletes history.js and AC_OETags.js--><filesetdir="${DEPLOY_DIR}/${package}"includes="*.js"defaultexcludes="false"/><!--Deletes all assets--><filesetdir="${DEPLOY_DIR}/assets"includes="*.*"/></delete></target><targetname="run"depends="compile"description="Compile and run it."><execexecutable="${FLASHPLAYER}"><argvalue="${deploy_dir}/${package}${fileName}.swf"/></exec></target><targetname="runie"depends="compile"description="Compile and run it."><execexecutable="${IE}"><argvalue="${basedir}\${deploy_dir}\${package}${fileName}.html"/></exec></target></project>

转载于:https://www.cnblogs.com/louischx/archive/2009/09/05/1560707.html

转载关于使用Ant打包Flex的一些脚本相关推荐

  1. 最重要的事情 一 、消息通信机制(1)ant 打包方法(2) system.out.println()用法 二、UML学习

    最重要的事情    一 .消息通信机制(1)ant 打包方法(2) system.out.println()用法      二.UML学习

  2. 使用ANT打包Android应用

    大家好,今天来分享一下如何使用ANT打包Android应用. 通常我们习惯用eclipse来开发Android程序,它会自动帮我们打包当前的应用程序.如果在Navigator视图下,我们可以看到以下几 ...

  3. 使用Ant打包Android应用具体解释——Ant使用解析

    上篇<使用Ant打包Android应用具体解释>描写叙述了使用Ant打包的流程,但非常多步骤并没有说明如此做的原因,本篇将从Ant方面来理解,下一篇从APK生成的流程来说明. APK包的生 ...

  4. ant的高级使用,ant命令详解,ant打包,ant编译后打包去掉jar文件

    在日常的项目开发中,我们可以经常性的需要打包测试,尤其是开发环境是windows,而实际环境则是linux. 这样的话,很多程序员要一会打一个包,一会打一个包,这些包可能会很大,实际上只有代码部分会变 ...

  5. Pyinstall打包多个python脚本,包含DLL文件

    平时写的py脚本在没有安装python环境下的电脑上没办法运行,这时就需要打个包,再加上看了tkinter,正好试一下怎么打包. 打包多个py脚本,并且还有要调用的第三方DLL文件,看了一些博主的方法 ...

  6. android ant打包

    2019独角兽企业重金招聘Python工程师标准>>> 系统变量: 新建: 键:ANT_HOME 值:E:\tools\apache-ant-1.8.4 编辑: 键:Path 值:% ...

  7. 转载:JAVA 操作 Ant API

    2019独角兽企业重金招聘Python工程师标准>>> Java调用Ant API用法  用法 API 调用 JAVA  Ant是Java程序员的一个好的工具,主要可以帮助程序员进行 ...

  8. 用Ant编译Flex项目的几点注意事项

    1. 往mxmlc中用define添加编译参数的时候特别要注意一点,字符串一定要包含在单引号''中. 下面的写法是无法通过的: <mxmlc ...><define name=&qu ...

  9. 使用Ant打包部署STAF插件

    打包部署STAF插件,简单来说,分为清理.初始化.编译.打包.部署.测试几个部分 1.清理    此处为删除文件及删除文件夹操作,使用ant中的delete标签来实现     2.初始化  由于STA ...

最新文章

  1. python第三方库有哪些常用的、请列举15个-不吹不擂,你想要的Python面试都在这里了【315+道题】...
  2. 类 property属性
  3. router linux命令,router os 常用命令详解
  4. python子类定制_在Python中实现可定制的Lexer类
  5. 你知道“拉黑”、“关注”、“点赞”、“转发”、“分享到朋友圈”等英语咋说吗?
  6. 【刷题】BZOJ 2194 快速傅立叶之二
  7. ie678,FF,chrome的css兼容性
  8. VIVADO时序约束及STA基础
  9. 攻击者滥用 Citrix NetScaler 设备 0day,发动DDoS放大攻击
  10. 无线信号拓展与覆盖的解决方案
  11. 智能优化算法:被囊群算法-附代码
  12. YYDS!完美抠图王冰冰!字节实习生开发的AI,4K60帧视频实时抠图
  13. 今天第一次做PIZZA,很成功.
  14. java雪崩_了解java架构之微服务架构—雪崩效应
  15. wnmp php7,wnmp windows 2012 r2+php7.0+nginx1.14安装
  16. RuntimeError: Output 0 of SelectBackward is a view and is being modified inplace.
  17. 随机动漫图片API接口
  18. MySQL中DML语言的插入语句、修改语句、删除语句(增删改)——笨蛋笔记4
  19. 数据透视表日期怎么选范围_透视范围
  20. 用python画苹果的logo_简单几步,100行代码用Python画一个蝙蝠侠的logo

热门文章

  1. Xenon构建MySQL高可用
  2. grafana 迁移
  3. 计算机系统结构简答题
  4. 【Oracle】DBMS_STATS.GATHER_TABLE_STATS
  5. 异常处理--“System.BadImageFormatException”类型的未经处理的异常在 DataTest.exe 中发生
  6. 解决matplotlib中文显示问题
  7. 将Kinect的v2.0 Motion存储到BVH文件中
  8. \ d效率低于[0-9]
  9. win11快捷键失效怎么办 windows11快捷键失效的解决方法
  10. java映射理解_Java反射的理解