classpathref的ant脚本-build.xml中的工作目录错误
我有一个构建文件,其中包含以下任务classpathref的ant脚本-build.xml中的工作目录错误,ant,path,build.xml,Ant,Path,Build.xml,我有一个构建文件,其中包含以下任务 When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory. I have set the project basedir as basedir=".". All my other tasks in the build file are working as
When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory.
I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue.
Error:
**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.**
I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error.
Entry in property file:
build.tomcat.dir=C:/TomcatServer
Any help is appreciated.
Thanks,
//tomcat停止ant脚本
When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory.
I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue.
Error:
**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.**
I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error.
Entry in property file:
build.tomcat.dir=C:/TomcatServer
Any help is appreciated.
Thanks,
您的属性文件似乎已加载到“clean”目标中。如果您只是单独调用“tomcat stop”目标,则永远不会加载属性文件。您的其他目标正在发挥作用,因为它们依赖于“清洁”
When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory.
I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue.
Error:
**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.**
I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error.
Entry in property file:
build.tomcat.dir=C:/TomcatServer
Any help is appreciated.
Thanks,
尝试移动加载属性文件的行,使其成为根元素的直接子元素。i、 e.没有嵌套在目标中。您可以发布更多的构建文件吗?特别是tomcat停止目标和属性文件的导入。请在问题UpdateExcellent中查找文件内容。。。我知道我在做一些愚蠢的事情,但我猜不到。非常感谢你的帮助。还有一个澄清。。。当我运行任务tomcat start时,它已成功启动,但如果在此tomcat start目标之后还有任何其他目标,我看不到其他任务正在执行。在tomcat启动后如何运行其他任务?请注意我的说明,我需要。。。我在另一个targetr中依次调用deploy和tomcat stop,然后调用tomcat start,即在stop和start中使用fork=true。我不太确定可能是什么问题,或者您是如何调用这些目标的。针对这个问题发布一个新问题可能是个好主意。
When I run **tomcat-stop** task, instead of picking up the lib folder from tomcat server, it is trying to take my working directory.
I have set the project basedir as basedir=".". All my other tasks in the build file are working as expected but only in this scenario (tomcat-stop) I am finding an issue.
Error:
**C:\Dev\WebDev\XYZ\build.xml:103: C:\Dev\WebDev\XYZ\${build.tomcat.dir}\lib does not exist.**
I am using property file and everything from the property file is taken as expected. Also in the build.xml when I hover my mouse at the **classpathref="tomcat.class.path"**, it is showing all the files from tomcat lib but when I run the task I am getting the above error.
Entry in property file:
build.tomcat.dir=C:/TomcatServer
Any help is appreciated.
Thanks,