Thought to let you know how I handled it.
First, I wrote the path in a properties files a bit like this:
"foo"
classpath=@[EMAIL PROTECTED]:@[EMAIL PROTECTED]
Then, in build files I
1) Define a filter to replace @LD@ with proper library directory
as seen from the build file
2) Copy the the property template with filtering to another file "bar"
3) Load that file as a property file
<property file="bar"/>
4) Use that property as pathelement
<pathelement path="${classpath}"
This technique provides the flexibility I needed. The downside is that the
actual list file is somewhat ugly to look at.
//Mikko