ant 任务的 Netbeans 6.7 自定义变量
我遇到了一个问题,几天都无法解决,请帮助我。
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以通过 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).