wt.ixb.handlers.netmarkets
Class OrgUpdater
java.lang.Object
wt.ixb.handlers.netmarkets.OrgUpdater
- All Implemented Interfaces:
- RemoteAccess
- public class OrgUpdater
- extends Object
- implements RemoteAccess
OrgUpdater is a command line utility that creates Organizations and Projects
from the XML or jar files specified by the following wt.properties entries
The usage is as follows.
java wt.ixb.handlers.netmarkets.OrgUpdater -target containerPath -basePath path[option] -input file1 ... fileN -recurse
-skipXml (optional) -skipJars (optional)
-parent This is the container path of the target container. Container paths have the following syntax.
path ::= path_element (path_element)*
path_element ::= '/' class_name '=' container_name
class_name ::= the fully qualified name of a container class
container_name :: = the name of a container instance
So if you wanted to update the Project TestProject residing in container testOrg, you would specify
the following in container path.
-parent /wt.inf.container.OrgContainer=testOrg/wt.projmgmt.admin.Project2=TestProject
-basePath All files are relative to the basePath. If no -basePath is set, the basePath is assumed to be
$(wt.home)/loadXMLFiles. If the basepath is . the files are assumed to be relative to the current
working directory.
-input A list of files or directories. If an input is a directory all XML, jar and zip files will be processed unless the xmlOnly or jarOnly arguments are specified
Note:
If you need to use input parameters that match the input flags, they must be pre-pended with KEYWORD_ARG
So if you want to have an organization named either -proj, -basePath, -input, or -recurse these would have to be
entered as KEYWORD_ARG-proj, KEYWORD_ARG-basePath, KEYWORD_ARG-input or KEYWORD_ARG-recurse respectively. This applies to
other container types as well. If you must have a container named -basePath then see below for how to proceed you
will need to specify it as KEYWORD_ARG-basePath. If you want a project named KEYWORD_ARG-basepath you will have to specify
it as KEYWORD_ARGKEYWORD_ARG-basePath.
This means that organization, files, and project names are somewhat restricted in that the following names
should be treated as reserved words if you intend to use this utility.
KEWORD_ARG-proj, KEYWORD_ARG-org, KEYWORD_ARG-basepath, KEYWORD_ARG-input, KEYWORD_ARG-recurse
If you never plan on using the OrgUpdate utility, there is no need to concern yourself with this restriction.
- Since:
- ProjectLink 6.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OrgUpdater
public OrgUpdater()
main
public static void main(String[] args)
updateOrg
public static Boolean updateOrg(String[] args)
throws WTException
- Throws:
WTException
doImport
private static void doImport(WTContainerRef target,
OrgUpdaterFileSet ofs)
throws WTException
- Throws:
WTException
doImport
private static void doImport(WTContainerRef target,
File f)
throws WTException
- Throws:
WTException
doImport
private static void doImport(WTContainerRef target,
String fileName,
InputStream in)
throws WTException
- Throws:
WTException