0
我有一個flex項目,我需要用ant構建。到目前爲止,我有這個flex ant編譯css
<mxmlc file="${flex.src.dir}/MyFlexApp.mxml"
output="${flex.build.dir}/MyFlexApp.swf"
services="${conf.dir}/flex/services-config.xml"
locale="es_ES,en_US"
context-root="/${ant.project.name}"
allow-source-path-overlap="true"
keep-generated-actionscript="false">
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/>
<source-path path-element="${FLEX_HOME}/frameworks"/>
<source-path path-element="${flex.src.dir}/locales/{locale}" />
<compiler.include-libraries dir="${flex.lib.dir}" append="true">
<include name="*.swc" />
</compiler.include-libraries>
</mxmlc>
在這個項目中,我有兩個的.css(Dark.css和Light.css),這是自定義主題辦法樣式表並實現與該功能我添加編譯器選項如下
<buildCSSFiles>
<buildCSSFileEntry destPath="bin-debug" sourcePath="flex_src/assets/themes/Dark/Theme.css"/>
<buildCSSFileEntry destPath="bin-debug" sourcePath="flex_src/assets/themes/Light/Theme.css"/>
所以,我需要的是指示build.xml文件,還添加此編譯選項。有誰能幫我解決這個問題嗎?任何建議將非常感激。
謝謝!這有幫助... – GummDev 2015-03-10 16:10:02
如果這是你問題的正確答案,你應該將其標記爲已回答。 http://stackoverflow.com/help/someone-answers – Clintm 2015-03-10 17:20:43