org.kuali.rice.krad.maintainablexml
Class ConvertMaintainableXML
java.lang.Object
org.kuali.rice.krad.maintainablexml.ConvertMaintainableXML
public class ConvertMaintainableXML
- extends Object
This is a command line utility class which upgrades the maintenance document xml stored in krns_maint_doc_t.doc_cntnt
to be able to still open and use any maintenance documents that were enroute at the time of an upgrade to Rice 2.0.
Instructions:
- Backup database.
- Add the conversion rules to the rules xml file -
..\rice\development-tools\src\main\resources\org\kuali\rice\devtools\krad\maintainablexml\MaintainableXMLUpgradeRules.xml
See comments in the xml file to setup the rules.
- Run this class.
- Enter the rice config file location that has the database connection properties. Only enter the location relative
to user.dir/kuali/main.
- Select Run mode. Mode 1 will do the xml upgrade and update the krns_maint_doc_t table with the new xml. Cannot
roll back after this has been done. Mode 2 will only print out the old xml and the new xml - this can be used
to test the rules xml setup.
- Select the range of document numbers to upgrade. Enter % on from range prompt to upgrade all.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertMaintainableXML
public ConvertMaintainableXML()
main
public static void main(String[] args)
getSettings
public static HashMap getSettings(String filePath)
throws Exception
- Parses settings file and put the properties in a map.
- Parameters:
filePath
- - the location of the settings file
- Returns:
- a HashMap populated with the settings
- Throws:
Exception
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.