2009-12-14 4 views
0

기본 Ant 스크립트를 사용하여 Flex 응용 프로그램을 Ant로 옮긴 후 mxmlc가 "file"속성을 지원하지 않습니다. 나는 docos를 훑어 보았고, 그것은 내 코드가 옳았다 고 생각한다.Flex-Ant : mxmlc에서 "file"속성을 지원하지 않습니다.

<!-- load previously defined configuration properties file --> 
<property file="build.properties" /> 

<!-- points to our flexTasks.jar we copied to the libs folder to distribute with the project --> 
<taskdef resource="flexTasks.tasks" classpath="${basedir}/libs/flexTasks.jar"/> 

<!-- delete and recreate the DEPLOY dir --> 
<target name="init"> 
    <delete dir="${DEPLOY_DIR}" /> 
    <mkdir dir="${DEPLOY_DIR}" />  
</target> 

<!-- Build and output the Main.swf--> 
<target name="compile flex project" depends="init"> 
    <mxmlc file="${SRC_DIR}/DNASupport.mxml" 
     actionscript-file-encoding="UTF-8" 
     keep-generated-actionscript="false" 
     incremental="true" 
     optimize="true" 
     output="${DEPLOY_DIR}/Main.swf"> 
     <license product="flexbuilder3" serial-number="137740016118223699076222" /> 
     <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" /> 
     <source-path path-element="${app_root_dir}/src" /> 
     <source-path path-element="${FLEX_HOME}/frameworks" /> 
     <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> 
     <source-path path-element="${FLEX_HOME}/frameworks"/> 
     <compiler.debug>false</compiler.debug>   
    </mxmlc> 
</target> 

+0

당신이 당신의 빌드 파일을 게시 할 수 있습니다 파일을

<taskdef resource="flexTasks.tasks" /> ... <target name="compile"> <mxmlc file="Main.mxml" debug="true" output="main.swf"> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" /> <source-path path-element="${FLEX_HOME}/frameworks" /> <source-path path-element="${src}" /> </mxmlc> </target> 

희망을 구축입니까? mxmlc는 컴파일 할 파일을 알기 위해 파일 속성을 사용한다고 가정합니다. –

+0

아, 미안 메이트는 내가 그걸 가지고 있다고 생각했지만, 그게 나타나지 않았다. 여기에 OK – Doz

+0

$ {SRC_DIR}이 (가) 공백이있는 경로를 해결합니까? (즉, "/ documents and settings /"는 mxmlc –

답변

1

당신은 플렉스 개미 작업을 사용하고 있습니까?

이 내 "전형적인"의 일부가이

관련 문제