Может кто-нибудь помочь мне с ошибкой ниже от Ant? Я попытался добавить antlib. xml или antcontrib.properties по отдельности и вместе, но ничего не помогло.
BUILD FAILED
/home/apache/antScripts/build-deploy-WAR.xml:16: Problem: failed to create task or type list
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
Вот сборка. xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="WAR Deployment" basedir=".">
<taskdef resource="net/sf/antcontrib/antlib.xml" classpath="/tmp/ant-contrib/ant-contrib-1.0b3.jar"/>
<taskdef resource="net/sf/antcontrib/antcontrib.properties" classpath="/tmp/ant-contrib/ant-contrib-1.0b3.jar"/>
<target name="deploy" depends="app.status" if="app.notInstalled">
<deploy url="${name.app.url}" username="${name.app.user}" password="{name.app.password}" path="${name.app.context.path}"/>
</target>
<target name="deploy.war" depends="app.status" if="app.deployable">
<deploy url="${name.app.url}" username="${name.app.user}" password="{name.app.password}" update="${name.app.update}" path="${name.app.context.path}" war="${name.app.war.path}"/>
</target>
<target name="app.status">
<property name="running" value="${name.app.context.path}:running"/>
<property name="stopped" value="${name.app.context.path}:stopped"/>
<list url="${name.app.url}" outputproperty="ctx.status" username="${name.app.user}" password="{name.app.password}"/>
<condition property="app.running">
<contains string="${ctx.status}" substring="${running}"/>
</condition>
<condition property="app.stopped">
<contains string="${ctx.status}" substring="${stopped}"/>
</condition>
<condition property="app.notInstalled">
<and>
<isfalse value="${app.running}"/>
<isfalse value="${app.stopped}"/>
</and>
</condition>
<condition property="app.deployable">
<or>
<istrue value="${app.notInstalled}"/>
<and>
<istrue value="${app.running}"/>
<istrue value="${name.app.update}"/>
</and>
<and>
<istrue value="${app.stopped}"/>
<istrue value="${name.app.update}"/>
</and>
</or>
</condition>
<condition property="app.undeployable">
<or>
<istrue value="${app.running}"/>
<istrue value="${app.stopped}"/>
</or>
</condition>
</target>
</project>
У меня есть весь кот 4 обязательных файла jar.
catalina-ant
tomcat-coyote
tomcat-util
tomcat-juli
Tomcat Версия: 9.0.22.