org.openmdx.portal.utility
Class CodeUtility
java.lang.Object
org.openmdx.base.application.control.Manageable
org.openmdx.base.application.control.Application
org.openmdx.portal.utility.CodeUtility
- All Implemented Interfaces:
- ExceptionListener
public class CodeUtility
- extends org.openmdx.base.application.control.Application
- implements ExceptionListener
Command line utility which supports the management of openCRX code files:
- merge: merges locale separated code files (en_US, de_DE) to one merged file.
- split: splits a merged code file to locale separated files.
| Fields inherited from class org.openmdx.base.application.control.Application |
EXIT_CODE_FAILED, EXIT_CODE_OK |
| Methods inherited from class org.openmdx.base.application.control.Application |
exit, exit, getApp, getCmdLineFreeArgOptions, getCmdLineOptions, getExitCode, getHelpText, getName, getVersion, hasFailed, mergeCmdLineOptions, setExitCode |
| Methods inherited from class org.openmdx.base.application.control.Manageable |
getCmdLineArgs, getController, getRawArgs, setController |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodeUtility
public CodeUtility()
exceptionThrown
public void exceptionThrown(Exception exception)
- Specified by:
exceptionThrown in interface ExceptionListener
init
protected void init()
throws Exception
- Overrides:
init in class org.openmdx.base.application.control.Application
- Throws:
Exception
split
protected void split(List locale,
File sourceDir,
File targetDir)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
merge
protected void merge(List locale,
File sourceDir,
File targetDir)
throws org.openmdx.base.exception.ServiceException
- Throws:
org.openmdx.base.exception.ServiceException
run
protected void run()
throws Exception
- Overrides:
run in class org.openmdx.base.application.control.Application
- Throws:
Exception
release
protected void release()
throws Exception
- Overrides:
release in class org.openmdx.base.application.control.Application
- Throws:
Exception
main
public static void main(String[] args)
This software is published under the BSD license. Copyright © 2006-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.