Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #6970

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

From Kit <wkfung.eric@gmail.com>
Newsgroups comp.lang.java.programmer
Subject [ANT] Load different jar files while depending on different project version
Date 2011-08-10 07:54 -0700
Organization http://groups.google.com
Message-ID <52c63a96-b013-4e58-81d7-5452e98222f4@x4g2000prd.googlegroups.com> (permalink)

Show all headers | View raw


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

Back to comp.lang.java.programmer | Previous | Next | Find similar


Thread

[ANT] Load different jar files while depending on different project version Kit <wkfung.eric@gmail.com> - 2011-08-10 07:54 -0700

csiph-web