Re: [ant] Determining relative paths resp. substring?

2009-01-17 Thread Georg-Johann Lay
Georg-Johann Lay schrieb: 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

[ant] Determining relative paths resp. substring?

2009-01-17 Thread Georg-Johann Lay
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 pa

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
Georg-Johann Lay schrieb: Ant proper really is not capable to perform things that look in C like >> char * prefix; >> char * path; >> char * suffix = path + strlen (prefix); or like >> String prefix; >> String path; >> String suffix = path.substring

Re: [ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
Scot P. Floess schrieb: I am enclosing my macrodef to compute a branch: description = "Compute the branch based upon a root dir, @{root}, and full path, @{full-path}. The branch represents the full path minus the root dir. Please note: if @{root} does not exist in @{full-path}

[ant] Determining relative paths resp. substring?

2009-01-16 Thread Georg-Johann Lay
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