Asdocs 似乎无法找到嵌入的资产 [英] Asdocs seems unable to find embedded assets

查看:17
本文介绍了Asdocs 似乎无法找到嵌入的资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 flex sdk 3.2.0 从 .bat 文件运行 asdocs(我已经用 PROJECTROOT 替换了我的长项目根文件夹):

I'm running asdocs from a .bat file with flex sdk 3.2.0 (I have replaced my long project root folder with PROJECTROOT):

"C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0\bin\asdoc" -source-path . "C:\Program Files (x86)\Adobe\Flex Builder 3\sdks\3.2.0" "_PROJECTROOT_\Components\src" "C:\_PROJECTROOT_\assets" -doc-sources .
PAUSE"

不幸的是,我不断收到类似这样的错误:

Unforunately, I keep getting errors similar to this:

"_PROJECTROOT_\assets\styles.css(344): Error: Invalid Embed directive in stylesheet - can't resolve source 'Embed(source = "close_button.png")'.

downSkin: Embed(source="close_button.png");"

我真的不明白这是因为close_button.png"与styles.css在同一个文件夹中.当我从 flexbuilder 中构建项目时,它编译得很好并且不会抛出任何错误.

I really don't understand this as "close_button.png" is in the same folder as styles.css. When I build the project from within flexbuilder, it compiles it fine and does not throw any errors.

有人知道我做错了什么吗?

Does anyone know what I'm doing wrong?

推荐答案

我遇到了类似的问题,我在别处找到的答案指出在资产路径的开头放置一个斜杠.也就是说,而不是

I had a similar problem, and an answer I found elsewhere indicated to put a slash at the beginning of the asset path. That is, instead of

Embed(source="close_button.png")

而是

Embed(source="/close_button.png")

这篇关于Asdocs 似乎无法找到嵌入的资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆