Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #6970
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!postnews.google.com!x4g2000prd.googlegroups.com!not-for-mail |
|---|---|
| From | Kit <wkfung.eric@gmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | [ANT] Load different jar files while depending on different project version |
| Date | Wed, 10 Aug 2011 07:54:01 -0700 (PDT) |
| Organization | http://groups.google.com |
| Lines | 26 |
| Message-ID | <52c63a96-b013-4e58-81d7-5452e98222f4@x4g2000prd.googlegroups.com> (permalink) |
| NNTP-Posting-Host | 116.49.40.132 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-Trace | posting.google.com 1312988042 9672 127.0.0.1 (10 Aug 2011 14:54:02 GMT) |
| X-Complaints-To | groups-abuse@google.com |
| NNTP-Posting-Date | Wed, 10 Aug 2011 14:54:02 +0000 (UTC) |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | x4g2000prd.googlegroups.com; posting-host=116.49.40.132; posting-account=tKmdJQoAAABrP9pDZm5ansX4HwB5kxwg |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-Header-Order | HNKRUAELSC |
| X-HTTP-UserAgent | Mozilla/5.0 (Windows NT 6.0) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30,gzip(gfe) |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:6970 |
Show key headers only | 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
[ANT] Load different jar files while depending on different project version Kit <wkfung.eric@gmail.com> - 2011-08-10 07:54 -0700
csiph-web