diary       blog       guest

FDT에서 ANT를 이용한 여러 fla 파일 자동 컴파일

http://www.action-scripter.com/blog/trackback/1046

먼저 ANT용 build.xml을 만들고 아래 내용을 입력합니다.

<project default="test">
   <target name="test">
      <fdt.flashCompile file="${basedir}/module/main.fla" failonerror="false" />
      <fdt.flashCompile file="${basedir}/module/sub.fla" failonerror="false" />
  </target>
</project>


Syntax :
<fdt.flashCompile file="fla" timeout="t in ms " />


Arguments:
file
: the FLA to compile
timeout : the timeout(ms) for how long the tasks wait until it fails
failonerror : whether the ant should fail if flash outputs something. Default is "true".

여러개의 fla를 한번에 컴파일 할 때 유용하게 사용할 수 있습니다.

만약 컴파일 할 때 fdt.flashCompile 오류가 난다면 Eclipse의 External Tools에 Ant Build의 JRE 탭에 있는 Runtime JRE를 Run in the same JRE as the workspace로 선택한 후 실행하면 정상적으로 작동됩니다.

2007/07/31 15:57 2007/07/31 15:57
   1   ... 390  391  392  393  394  395  396  397  398   ... 1285    
ABOUT  |  WORKS  |  @seonggyu
COPYRIGHT ⓒ 2000 - 2010. ACTION-SCRIPTER.COM. ALL RIGHTS RESEVED.