[ANT] Load different jar files while depending on different project version

K

Kit

Can anyone please help?

In the following classpath, the commonTools.jar is only defined in
"2.1.0.0", but not in "2.0.0.0", I have tried using <if>, which is not
supported by path:

<!-- Override these two to change obs version -->
<property name="project.jar.version" value="2.1.0.0" />

<path id="project-dep.classpath">
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/corbautil.jar"/>
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/idl-java.jar"/>
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/obs.jar"/>
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/securityServer.jar"/>
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/synapse.jar"/>
<pathelement location="${project.lib.dir}project/$
{project.jar.version}/commonTools.jar"/>
</path>

Do you know how to exclude this specific jar automatically when I
change the version value from "2.1.0.0" to "2.0.0.0" ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,528
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top