users@glassfish.java.net

Re: Best mailing list to start a Java EE configuration discussion?

From: Bobby Bissett <bbissett_at_gmail.com>
Date: Wed, 6 Jun 2012 17:06:02 -0400

On Wed, May 9, 2012 at 7:59 PM, Laird Nelson <ljnelson_at_gmail.com> wrote:
>
> The first thing that always comes up is binding their LDAP/Active Directory
> setup to our roles.  I am unaware of any tooling to assist with taking a
> black-box .ear or .war file and editing various deployment descriptors
> inside it.  I would be very excited to know of such tooling if it exists.
> [...]

When I was at Sun, I wrote a tool once that would take an archive
file, expand it along with recursively expanding any contained archive
file(s), iterate over all the files, and then run any XSLT
transformations you wanted on whatever files you specified (you'd just
make a list of what file name should be transformed by what style
sheet). Then it would zip everything back up again along with the
original manifests and all that.

It was written in Jython, so the user inputs (style sheet mapping)
were all plaintext. That could fix your problem, but if I could find a
copy of the app it still belongs to Sun, now Oracle. If anyone wants
to see if it can be shared, I can find someone to dig it up.

Cheers,
Bobby