Conditional Classpath
1 posts in topic
Flat View  Flat View

Posted By:   Alex_Tang
Posted On:   Tuesday, February 4, 2003 03:53 PM

Hi there folks,

This should hopefully be an easy one. I just can't figure out how to do it in The Ant Way .

If the java.version is less than 1.4, I would like a bunch of jars (xerces, xalan, etc) to be added to the classpath.

How would i do this?



Re: Conditional Classpath

Posted By:   Anonymous  
Posted On:   Wednesday, February 5, 2003 03:30 AM

Ant´s buildfile itself does something like this (lines near 335: "Check to see what optional dependencies are available"

A (not tested) try by me:

After reading the buildfile the way via Selectors seems to be the better way. But have no experience with selectors .... yet :-)
About | Sitemap | Contact