ant 任务的 Netbeans 6.7 自定义变量

发布于 2024-08-03 14:09:22 字数 397 浏览 2 评论 0原文

我遇到了一个问题,几天都无法解决,请帮助我。

我想在 netbeans 中执行 ant 脚本。该脚本需要一个特殊的类路径,我自己制作的插件/模块将其放入“全局变量”中。可以使用 netbeans“管理变量”对话框显示该变量。所以它正在工作,我想然后

我尝试使用以下命令运行ant脚本:“run Target/advanced”并将属性设置为:enhanceClassPath=${MAG}(${MAG}包含特殊的classpah..)

不幸的是该脚本在属性“enhanceClassPath”中仍然包含值“${MAG}”,而不是变量值。

我在 eclipse 中有一个工作和模拟的示例,但对 netbeans 没有任何运气,我猜是主要问题是 netbeans 不支持变量..

greez Chris

I've got a problem which I couldn't solve for a few days, please help me.

I'd like to execute an ant-script within netbeans. the script needs a special classpath which a plugin/module made by myself puts into a "global-variable". The variable can be shown using the netbeans "Manage variables"-dialog. So it's working, I guess

Then I've tried to run the ant-script with: "run Target/advanced" and set the property to: enhanceClassPath=${MAG} (${MAG} contains the special classpah..)

Unfortunately the script contains in the property 'enhanceClassPath' still the value '${MAG}' instead the variable value..

I've got a working and simular example in eclipse, but hadn't any luck with netbeans, I guess the main problem is that netbeans doesn't support variables..

greez Chris

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

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

发布评论

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

评论(1

海拔太高太耀眼 2024-08-10 14:09:22

您可以通过 IDE 变量 MAG 在 Ant 脚本中使用 IDE 变量="http://wiki.netbeans.org/IDEVariables#section-IDEVariables-UIChanges" rel="nofollow noreferrer">${var.MAG}。不要将其分配给自定义属性 (enhanceClassPath)。

you can use your IDE variable MAG in your ant script via ${var.MAG}. don't assign it to a custom property (enhanceClassPath).

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