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

Discussion in 'Java' started by Kit, Aug 10, 2011.

  1. Kit

    Kit Guest

    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" ?
    Kit, Aug 10, 2011
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Arnold Peters
    Replies:
    0
    Views:
    564
    Arnold Peters
    Jan 5, 2005
  2. muttley
    Replies:
    0
    Views:
    2,714
    muttley
    Oct 20, 2005
  3. thebad1
    Replies:
    3
    Views:
    1,675
    thebad1
    Feb 2, 2007
  4. V Green
    Replies:
    0
    Views:
    839
    V Green
    Feb 5, 2008
  5. PA Bear [MS MVP]
    Replies:
    0
    Views:
    951
    PA Bear [MS MVP]
    Feb 5, 2008
Loading...

Share This Page