这些 ant 属性是在哪里定义的? (FlexBuilder/Eclipse)
在尝试为我的 Flex 项目构建 ant 脚本时,我遇到了一些默认情况下可用的属性,例如 ${DOCUMENTS} 和 ${PROJECT_FRAMEWORKS}。有谁知道这些变量是在哪里定义的,还有其他可能对我有用的变量吗?是否有默认创建的变量列表?
谢谢 J
In trying to build a ant script for my Flex project i've come across a couple of properties that seem to be available by default such as ${DOCUMENTS} and ${PROJECT_FRAMEWORKS}. Does anybody know where these variables are defined and are there any more that maybe useful to me? Is there a list of variables that are created by default?
Thanks
J
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 Eclipse 中,它们被称为“链接资源”,可以在“窗口(菜单)->”中找到。首选项->一般->工作区-> 然而,链接资源
PROJECT_FRAMEWORKS
是“特殊的”,因为它是由 FlexBuilder 插件基于每个项目提供的。 (FB-16815)In Eclipse they are called
Linked Resources
and can be found inWindow (menu) -> Preferences -> General -> Workspace -> Linked Resources
PROJECT_FRAMEWORKS
, however, is "special" in that it is provided by the FlexBuilder plugin on a per-project basis. (FB-16815)您有可以分享的示例脚本吗?
Ant 具有这些内置属性。最有可能的是,您所讨论的属性要么在构建脚本中定义,要么从外部属性文件加载,要么使用环境变量定义。您可以详细了解 Ant 中的属性文件,了解它们的使用方式。
通过我们的 Ant 构建脚本,每个开发人员都定义了一个 FLEX_HOME 环境变量,我们引用该变量,而不必在构建脚本中硬编码 SDK 位置。你可以这样做:
希望有帮助。
Do you have an example script you could share?
Ant has these built in properties. Most likely, the properties you're talking about are either defined in the build script, loaded from an external properties file, or defined using environment variables. You can learn more about property files in Ant to see how they're used.
With our Ant build script, each developer defined a FLEX_HOME environment variable, and we referenced that instead of having to hard code an SDK location in the build script. You can do that like this:
Hope that helps.