我编写了一个 Java Web 应用程序(部署在 glassfish 服务器上)以部署到 Tomcat 服务器上。我将项目文件与 build.xml 一起复制到 linux 系统并尝试
[packwolf src]$ ant
Buildfile: build.xml
BUILD FAILED
/home/packwolf/Application/src/build.xml:12: The following error occurred while executing this line:
/home/packwolf/Application/src/nbproject/build-impl.xml:22: Class org.apache.tools.ant.taskdefs.condition.Not doesn't support the nested "antversion" element.
Web 应用程序应该是可移植的,但事实并非如此。有什么想法可以解决这个问题吗?