For anyone who is interested, I wrote a java-based utility (command-line 
script, ant task, maven plugin, and Java API) that will undo what Pluto 
assembly does to portlets. This is so that portlets that were pluto-fied 
previously (and had their web.xml modified and portlet.tld added) can be 
cleaned up and redeployed to the same or a different version of Pluto used by a 
portal.

The project is here:
http://github.com/garysweaver/unplutofy

It assumes you have Git installed (to get the project from GitHub) and Maven 2 
and Java 1.5+ SDK installed (to build it).

As of today (2010/05/01), Unplutofy has only been tested with modifications 
made by Pluto 1.0.0-RC2 and Pluto 1.1.7, however it could easily be modified to 
support other versions of Pluto.

Many would typically not need such a utility since if you have the version of 
the portlet prior to pluto-fication (Pluto assembly) or can rebuild it, then 
you could just do run whatever you need to in order to run Pluto assembly on 
that war. However, this utility saves the process of having to clean up the 
web.xml, etc. by hand, if you ever get into the situation where you have a 
deployed portlet that you need to clean up so that it can be redeployed.

It is somewhat risky I suppose to remove all elements in the web.xml that look 
like those added by Pluto, but it assumes you have backups of existing portlets 
(since it is setup so that you can maintain the original and just create an 
un-pluto-fied version of it). Hopefully having this option will be of benefit 
to some.

Please let me know if anything looks wrong with it or if you have any 
suggestions. Sorry that it hasn't been tested with Pluto 2.x yet.

Thanks,
Gary

Reply via email to