I'd like to compute a relative path from a directory path to a file. My file names come from <ant:filescanner> and are absolute file names.
I've tried to use the pathTool like this :
<j:if test="${pathTool == null}">
<j:useBean var="pathTool" class="org.apache.maven.util.DVSLPathTool"/>
</j:if>
<j:set var="relPath" value="${pathTool.getRelativePath('c:/dir/','c:/dir/toto/tata')}" />
But it doesn't work : it returns ".."
Do you know what i'm doing wrong ? Is there another way to do this ?
Thanks,
Eric
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
