蚂蚁构建:"Failed to create task, Cause: name is undefined"
Ant Build: "Failed to create task, Cause: name is undefined"
当我尝试 运行 Ant 构建时出现此错误:
Problem: failed to create task or type http://com.ibm.adapter:createProject
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.
No types or tasks have been defined in this namespace yet
我检查了 运行time JRE(运行 在与工作区相同的 JRE 中)。
好像找不到合适的jar,所以我在Ant Home Entries中添加了它(com.ibm.adapter.command),但它仍然不起作用。
这是脚本(即使这不应该有问题,因为在另一台计算机上工作,我认为问题只与 RAD 配置有关)
<project default="CreateRigaVariazioneSostituzione" name="/EssigIntegrazione/RigaVariazioneSostituzione.xml" xmlns:adapter="http://com.ibm.adapter">
<property name="debug" value="true"/>
<property name="projCpy2Java" value="EssigIntegrazione"/>
<target name="CreateRigaVariazioneSostituzione">
<adapter:createProject projectName="${projCpy2Java}" projectType="Java" sourceFolder="/src"/>
....
</target>
</project>
你知道如何解决这个问题吗?
从 IBM Installation Manager 安装 J2C 连接器
当我尝试 运行 Ant 构建时出现此错误:
Problem: failed to create task or type http://com.ibm.adapter:createProject
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.
No types or tasks have been defined in this namespace yet
我检查了 运行time JRE(运行 在与工作区相同的 JRE 中)。 好像找不到合适的jar,所以我在Ant Home Entries中添加了它(com.ibm.adapter.command),但它仍然不起作用。
这是脚本(即使这不应该有问题,因为在另一台计算机上工作,我认为问题只与 RAD 配置有关)
<project default="CreateRigaVariazioneSostituzione" name="/EssigIntegrazione/RigaVariazioneSostituzione.xml" xmlns:adapter="http://com.ibm.adapter">
<property name="debug" value="true"/>
<property name="projCpy2Java" value="EssigIntegrazione"/>
<target name="CreateRigaVariazioneSostituzione">
<adapter:createProject projectName="${projCpy2Java}" projectType="Java" sourceFolder="/src"/>
....
</target>
</project>
你知道如何解决这个问题吗?
从 IBM Installation Manager 安装 J2C 连接器