Hi,

can anyone assist me in solving this following quite trivial problem?

Given a path A and the current directory B=. derermine B relative to A. This is needed for prefixes in zipfileset.

In the special case that I am after B is a subdirectory (of some level) of A. So gettig the relative path B-A means that A and B look like this:

A=<sting1>
B=<sting1><string2>

I wasted hours to figure out how this could be achieved... The regex stuff is too complicated because dirs may contain special chars like blanke, ., \, /, -, $ and even *.

How can I easily remove the prexix A from B? I bet it is a one-liner.

Are there low level string utilities like getting substrings, prefixes, etc?

Thanks in advance,

Georg-Johann


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to