简体   繁体   English

筹建无法在Linux中工作与NetBeans项目

[英]build not working in linux with netbeans project

I have written a java web application(deployed on glassfish server) to deploy on to Tomcat server. 我已经编写了一个Java Web应用程序(部署在glassfish服务器上)以部署到Tomcat服务器上。 I copied the project file along with build.xml to a linux system and tried 我将项目文件以及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.

The web application is supposed to be portable, but it isn't. Web应用程序应该是可移植的,但事实并非如此。 Any ideas to fix this? 有任何解决办法吗?

You need to check your ant version. 您需要检查您的蚂蚁版本。 It might not be the same as on your other box. 它可能与您其他盒子上的不一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM