简体   繁体   中英

Ant Build: "Failed to create task, Cause: name is undefined"

I get this error when I try running an Ant Build:

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

I checked the Runtime JRE (Run in the same JRE as the workspace). It seems like it can't find the right jar, so I added it (com.ibm.adapter.command) in the Ant Home Entries, but it doesn't work anyway.

Here is the script (even if there shouldn't be problems in this because in another computers worka, I think the problem is only about RAD configuration)

<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>

Do you know how to fix this?

Install J2C Connector from IBM Installation Manager

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM