对于if插件中的if和除名称空间,Intellij IDEA中的URI未注册错误 [英] URI not registered error in Intellij IDEA for if and unless namespaces in Ant plugin

查看:157
本文介绍了对于if插件中的if和除名称空间,Intellij IDEA中的URI未注册错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有Ant插件的IntelliJ IDEA。
我想在我的 build.xml 文件中使用条件任务,所以我将此代码添加到项目 root标签:

I'm using IntelliJ IDEA with Ant plugin. I want to use conditional tasks in my build.xml file, so I added this code to project root tag:

xmlns:if="ant:if" xmlns:unless="ant:unless"

但是Intellij IDEA显示URI not registered消息的错误。我该如何解决这个问题?

but Intellij IDEA shows error with "URI not registered" message. How can I fix this?

推荐答案

这是一个已知的错误,随时投票:

It's a known bug, feel free to vote:


  • IDEA-140837 Ant语法check无法识别xmlns:if =ant:if和xmlns:unless =ant:unless

  • IDEA-140837 Ant syntax check does not recognize xmlns:if="ant:if" and xmlns:unless="ant:unless"

这篇关于对于if插件中的if和除名称空间,Intellij IDEA中的URI未注册错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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