|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.upgrade.gmm.GatherMetaModel
Collect XML introspection information reports for all Persistables and bundle them into a single jar file named with the prefix "MetaModel". The suffix of the jar file name will be a representation of the version number. Add an index file named MetaModelIndex.xml to the jar.
java com.ptc.windchill.upgrade.gmm.GatherMetaModelor, if the GatherMetaModel.bat file exists:
GatherMetaModelWindchill versions prior to 7.0 need to obtain the GatherMetaModel class and all the required supporting classes from a gatherMetaModelTools.jar created by a 7.0 installation or later.
Field Summary | |
static String |
CLASS_INFO_REF_ELEM
|
static String |
CLASS_INFO_REF_LINK_ATTRIB
|
private static int |
ERROR_CANCELED_OUT
|
private static String |
errorStack_
|
static String |
INDEX_LINK_ATTRIB
|
static String |
INDEX_LINK_VALUE
|
static String |
INDEX_ROOT_ELEM
|
private static File |
IndexFile_
|
static String |
JAR_FILE_INDEX_NAME
|
private static String |
JAR_FILE_PREFIX
|
private static String |
R40_INTERFACE
|
private static String |
R50_INTERFACE
|
private static ReleaseId[] |
releaseIds_
|
private static int |
SUCCESS
|
private static File |
tempDir_
|
private static WTProperties |
wtProperties_
|
Constructor Summary | |
GatherMetaModel()
|
Method Summary | |
private static void |
addFilesToJarAndCleanUp()
Collects all the names of the introspection report XML files located in the tempDir_ with the extension ".xml". |
private static void |
cleanUp(File[] to_be_deleted)
The contents of the tempDir_ need to be deleted, before the directory can be deleted. |
private static void |
createIndexList(File[] list_of_files)
Creates a file named MetaModelIndex.xml for the jar. |
private static void |
createTempDirectory()
Creating a temporary directory to store all the introspection report XML files. |
private static void |
createXmlClassIiGenerator(String to_be_processed)
Creates the introspection report XML file for the class name that is passed in. |
private static void |
gatherMetaDataIntoFiles()
Gathering all the descendants of wt.fc.Persistable and creating the introspection report XML files. |
private static PrepToolVersionVerifier |
getAppropriateInterfaceImplementation()
Looking for the class wt.util.version.WindchillVersion prior to determining which class to load. |
private static File |
getTempDirectory()
The temporary directory holding the introspection report XML files. |
private static WTProperties |
getWTProperties()
If the method loadWTProperties() was successful, the wtProperties variable will be set. |
private static void |
loadWTProperties()
Load the wt.properties, to retrieve the values of the variables located in the file. |
static void |
main(String[] args)
Command-line entry point. |
private static void |
writeDocumentToStream(Document document,
OutputStream output_stream)
Writing out the document to the stream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static File IndexFile_
private static File tempDir_
private static String errorStack_
private static ReleaseId[] releaseIds_
private static WTProperties wtProperties_
private static final int ERROR_CANCELED_OUT
private static final int SUCCESS
private static final String R50_INTERFACE
private static final String R40_INTERFACE
private static final String JAR_FILE_PREFIX
public static final String JAR_FILE_INDEX_NAME
public static final String INDEX_ROOT_ELEM
public static final String INDEX_LINK_ATTRIB
public static final String INDEX_LINK_VALUE
public static final String CLASS_INFO_REF_ELEM
public static final String CLASS_INFO_REF_LINK_ATTRIB
Constructor Detail |
public GatherMetaModel()
Method Detail |
private static void loadWTProperties() throws IOException
IOException
private static WTProperties getWTProperties()
private static void createTempDirectory() throws IOException
IOException
- - will be thrown from main(String[] args)private static File getTempDirectory()
private static void gatherMetaDataIntoFiles() throws WTException
WTException
private static void createXmlClassIiGenerator(String to_be_processed) throws WTException
to_be_processed
- String - The class for which an introspection report XML file needs to be created
WTException
private static void addFilesToJarAndCleanUp() throws IOException, WTException
WTException
IOException
private static void createIndexList(File[] list_of_files) throws IOException, WTException
WTException
IOException
private static void writeDocumentToStream(Document document, OutputStream output_stream) throws IOException
IOException
private static void cleanUp(File[] to_be_deleted)
private static PrepToolVersionVerifier getAppropriateInterfaceImplementation() throws WTException
WTException
public static void main(String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |