Skip to main content

Problem:

  • Product Name: VisiBroker
  • Product Version: VBJ 7.0
  • Product Component: Ant Tasks
  • Platform/OS Version: All

Since the entire Ant implementation was removed from VisiBroker 7.0 installation, is there a workaround to achieve "idl2java" tasks using Ant build files?

Resolution:

Copy the following files/folder from VisiBroker 6.5 installation to VisiBroker 7.0 installation:

(executable) <VB65>\\bin\\ant --------> <VB70>\\bin\\
<VB65>\\bin\\ant.config --------> <VB70>\\bin\\
<VB65>\\lib\\anttasks.jar --------> <VB70>\\lib\\
(folder) <VB65>\\lib\\ant --------> <VB70>\\lib\\

Then use the code below as a guide for your build.xml configuration:

<target name="all">
     <idl2java root_dir="." strict="true" bind="true">
        <fileset dir="." includes="Bank.idl" />
     </idl2java>
</target>

Put a build.xml file under the bank_agent example and build using <ANT installation>\\bin\\ant.exe (Windows) or "ant" (UNIX) and test. Assuming that the "ant" command is included in your PATH variable.

 


#Security
#VisiBroker
#idl2java
#ANT