--- Kevin Jackson <[EMAIL PROTECTED]> wrote: > Hi all, > > I've just got the props antlib working within my odd > usecase. > > I'm using mvn + antrun plugin and I've installed the > patched version > of ant and the props antlib. Then in a parent pom, > I've got the > complete <typedef> etc setup for the property helper > ie > <propertyhelper> > <stringops/> > </propertyhelper> > > I munge the property with a regexp (very nice Matt, > worked perfectly). > Finally in the child pom.xml I set the property > value that will be > munged. > > Issues I came across. > > 1- Without the ant-nodeps jar, the propertyhelper > task fails with a > ClassNotFoundException for ...Jdk14Regexp.Regexp > > I fixed this by installing this jar in my > ~/.m2/repository, and > altering the classpath for the typedef
Alternately you could use the ant-apache-oro jar, I guess. :) > > 2- Munging the property directly won't work. I had > to first copy the > child property into an intermediate property and > then perform the > regexp on that - I guess this has to do with the > mvn->ant mapping in > some way - and it's not much of a hassle when you > know the workaround > Ugh! You've just discovered one more example of client code that extends PropertyHelper, in the antrun plugin... I'd better drop a note over there to read up on our related threads to get their input and find out how hard it'll be for them to manage compatibility... :( > Anyway, for my use case of removing a hardcoded svn > repo URL in the > pom/profile when it's already available in the > <scm><connection> in > the pom, this antlib works perfectly. Glad to hear it. And ultimately I suppose it's a good thing we learn about the Maven thing sooner rather than later. -Matt > > Ta Matt, > Kev > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]