Flex、Ant 和 TeamCity

发布于 2024-07-17 17:23:31 字数 248 浏览 2 评论 0原文

有人使用 TeamCity 来构建 Flex 应用程序吗? 我们使用 .Net 作为我们的主站点代码和后端 Flex 数据调用,并且我们使用 Flex 作为我们的应用程序。 我有一个有效的 Ant 构建脚本,但无法让它与 TeamCity Ant Runner 一起运行。 我很好奇是否有人已经完成了这项工作,如果他们完成了,我是否可以看到您的构建脚本的示例?

由于某种原因,构建脚本不会为 Flex Ant 任务获取 FLEX_HOME 环境变量。

Is anyone using TeamCity for building their Flex apps? We're using .Net for our main site code and backend flex data calls and we use flex for our application. I have a working Ant build script, but I can't get it to run with the TeamCity Ant Runner. I'm curious if anyone has gotten this working and if they have, could I potentitially see a sample of your build script?

For some reason the build script won't pick up the FLEX_HOME environment variables for the Flex Ant Tasks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

余生再见 2024-07-24 17:23:31

我不明白为什么它不起作用。 只需在 Ant 脚本顶部声明 FLEX_HOME,并指向 TeamCity 计算机上的 sdk,例如:

<property name="FLEX_HOME" value="c:/adobe/flex/sdk/3.3"/>

I cannot see why it shouldn´t work. Just declare FLEX_HOME in the top of your Ant script, and point to the sdk on the TeamCity machine, like:

<property name="FLEX_HOME" value="c:/adobe/flex/sdk/3.3"/>
表情可笑 2024-07-24 17:23:31

在我之前从事的一个项目中,我们遇到了与您完全相同的情况,并且它可以工作。 我不记得做了什么特殊的事情来实现这一点,尽管我们可能必须在 TeamCity 配置中手动设置一些环境变量。 请查看 TeamCity 文档,了解如何设置这些以及如何使用

您也可以尝试使用基本的命令行运行器来查看是否有效。 在对 TeamCity 中的环境变量问题进行故障排除时,我发现让构建过程的一部分运行 DOS set 命令(对于 Linux 为 env),然后查看构建日志非常有用看看实际环境是什么样的。

On a previous project I worked on we had exactly the same situation as you and it can work. I can't remember doing anything special to get this going although we may have had to manually set some environment variables in the TeamCity config. Check out the TeamCity docs for how to set these and how to they are used

You might also try using the basic Command line runner to see if that works. When troubleshooting environment variable issues in TeamCity I have found it useful to have part of the build process run a DOS set command (env for Linux) and then look in the build logs to see what the actual environment is.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文