2012-08-08 41 views
0

我已经编写了一个java web应用程序(部署在Glassfish服务器上)以部署到Tomcat服务器上。我的build.xml沿项目文件复制到Linux系统,并试图使用netbeans项目在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应用程序应该是便携式的,但事实并非如此。任何想法来解决这个问题?

回答

0

你需要检查你的ant版本。它可能与您另一个盒子上的不一样。