在build.xml构建ant时报如下错误:
Buildfile: D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml
BUILD FAILED
D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml:13: Cannot find ../../../../shared/bin/wasce-common.xml imported from D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml
#jrules.home=D:/Program Files/IBM/WebSphereILOGJRules711
eclipse.home=${jrules.home}/eclipse
eclipse.workspace=../../data/evalworkspace
build.xml和wasce.xml的正确路径是:
wasce.xml------------D:\Program Files\IBM\WebSphereILOGJRules711\shared\bin
build.xml -------------D:\Program Files\IBM\WebSphereILOGJRules711\gettingstarted\miniloan-webapp\build.xml
解决方法: 改成绝对路径
ant:拷贝删除创建目录定义变量编译构建打包
本文详细介绍了如何解决在使用Ant进行构建时遇到的错误,该错误指出无法找到导入的wasce-common.xml文件。通过将路径更改为绝对路径的方法成功解决了问题,并提供了build.xml和wasce.xml文件的正确路径作为参考。
760

被折叠的 条评论
为什么被折叠?



