"Actually you can't remove a property from a registered node type."
Interesting. If you remove all usages of that property and then update the custom_nodetypes.xml to remove it (bypassing the type registration API) are there any side-effects? To be honest, I'm not clear what happens during programmatic type registration other than updates to the respective XML files for namepsaces and custom types. S. -----Original Message----- From: Paco Avila [mailto:[EMAIL PROTECTED] Sent: 17 May 2007 08:36 To: [email protected] Subject: RE: Renaming node property El jue, 17-05-2007 a las 07:27 +0100, Shaun Barriball escribió: > We've found Node type modifications a little tricky to resolve. > > If you're changing a property name from X to Y then one solution is to: > > * export the affected workspace(s) to XML using exportsysview > * empty the workspace(s) > * update the types used by your JackRabbit install which can be > achieved by replacing the custom_nodetypes.xml file > * do a search and replace in your exported XML replacing X with Y. > * reimport. > > Another alternative could be to update your type so that X & Y > temporarily co-exist. Create a script to copy X values to Y, and then remove property X. > Modify your types to remove X. This would require some simple Java > code to be written. Actually you can't remove a property from a registered node type. -- Paco Avila <[EMAIL PROTECTED]>
