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

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

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.

Ta Matt,
Kev

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to