Hi, I have a classpath, something like:
myproject/classes;myproject/lib/somecrab.zip;myproject/lib/somelib1.jar;myproject/lib/somelib2.jar;myproject/lib/somelib3.jar;
Now I would like to clean up this classpath and throw away somethings which I don't want anymore. Hence in this case the classpath should look something like
myproject/classes;myproject/lib/somelib1.jar;myproject/lib/somelib3.jar;
How can I do that with a regular expression? I want to do it with an ant-Script, e.g.
<pathconvert property="new.classpath" pathsep=";">
<path refid="old.classpath" />
<chainedmapper>
<regexpmapper from="(.*).jar" to="\1.jar" />
</chainedmapper>
</pathconvert>
How do I need to adapt the regexp? Thanks a lot!