通过 ANT 任务编译时更改字体管理器的顺序,不可能吗?
我最近需要使用管理器编译器参数,因为该项目嵌入了 Open Type 字体,并且在编译时生成错误。 现在我需要在我的 ant 任务中使用相同的参数,但由于某种原因它不起作用。 我正在使用 Flex SDK 3.2。
该任务看起来像这样:
<mxmlc
file="${main.class}"
output="${swf.export}"
actionscript-file-encoding="${ENCODING}"
keep-generated-actionscript="false"
incremental="false"
show-actionscript-warnings="false"
debug="true"
>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks" />
<compiler.source-path path-element="${src.dir}" />
</mxmlc>
我尝试了不同的变体,从使用 manager 作为 mxmlc 的子元素,到使用它作为属性,并将其与前缀(fonts、compiler.fonts)结合起来。 我也尝试将它用作元素字体的子元素,但没有任何效果。
我考虑过使用 shell 任务来代替,但我不愿意。
我在 adobe 实验室上寻找与此相关的帮助,他们说他们支持除“help”和“version”之外的所有编译器参数。 而且似乎没有其他人遇到过这个问题。
现在我已经更改了sdk的frameworks目录中的flex-config.xml,它似乎可以解决问题,但我认为必须有一种方法可以在任务中做到这一点。
有谁知道我需要添加到任务中以使其工作的确切元素,而无需修改“flex-config.xml”?
I've recently had the need to use the managers compiler argument, because the project had an Open Type font embedded, and was generating errors at compilation. Now I need to use the same argument in my ant task, but for some reason it doesn't work. I'm using Flex SDK 3.2.
The task looks something like:
<mxmlc
file="${main.class}"
output="${swf.export}"
actionscript-file-encoding="${ENCODING}"
keep-generated-actionscript="false"
incremental="false"
show-actionscript-warnings="false"
debug="true"
>
<load-config filename="${FLEX_HOME}/frameworks/flex-config.xml" />
<source-path path-element="${FLEX_HOME}/frameworks" />
<compiler.source-path path-element="${src.dir}" />
</mxmlc>
I've tried different variations, from using manager as a child element of mxmlc, to using it as an attribute, and combining it with prefixes (fonts, compiler.fonts). I've also tried to use it as sub-element of the element fonts, but nothing worked.
I've considered using a shell task instead, but I'd rather not.
I've looked for help related to this on adobe labs, they say they support all compiler arguments except "help" and "version". And it also seems, no one else encountered this issue.
For now I've changed flex-config.xml in the frameworks directory of the sdk, and it seems to do the trick, but I'm thinking there's got to be a way to do this in the task.
Does anyone know the exact elements I need to add to the task to make it work, without having to modify "flex-config.xml"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信
文档无法让您真正弄清楚如何使用这些元素,这很烦人……一两个例子就会使 Adobe 的世界变得不同。
I believe it's
It's annoying that the documentation stops short of letting you actually figure out how to use the elements... an example or two would make a world of difference over at Adobe.