org.sourcejammer.project.model
Class Conversion

java.lang.Object
  |
  +--org.sourcejammer.project.model.Conversion

public class Conversion
extends java.lang.Object


Nested Class Summary
static class Conversion.ConversionTypes
           
 
Field Summary
static java.lang.String ALL_ARCHIVES
           
private static java.io.PrintStream log
           
 
Constructor Summary
Conversion()
           
 
Method Summary
static void addHistoryType(java.io.File filesDirectory)
           
static void addParentIDs(java.io.File dir, java.lang.String projFileName, long parentID, java.lang.String level)
           
private static void convertAllTextFilesFor20(org.sourcejammer.project.view.Project proj, Archive arch, java.io.File sourceDir)
           
private static boolean convertAllXMLFilesFor20(java.io.File pathToArchRoot)
           
static void convertArchive(ArchiveInfoFS arch)
           
private static void convertOneArchiveTwoZero(java.lang.String archiveName, ArchiveGetter getter)
           
private static void convertTextFileFor20(FileNode ndFl, java.io.File sourceDir, org.sourcejammer.util.Spinner spin)
           
static void convertUsers()
           
static void main(java.lang.String[] args)
           
static void runConversion()
           
static void runConversionOneThree()
          Converts server from version 1.2 to version 1.3.
static void runConversionOneTwo()
           
static void runConversionTwoZero(java.lang.String archive)
           
private static void twoZeroLog(java.lang.String group, java.lang.String s)
           
private static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static java.io.PrintStream log

ALL_ARCHIVES

public static final java.lang.String ALL_ARCHIVES
See Also:
Constant Field Values
Constructor Detail

Conversion

public Conversion()
Method Detail

runConversion

public static void runConversion()
                          throws FileAccessException
FileAccessException

addParentIDs

public static void addParentIDs(java.io.File dir,
                                java.lang.String projFileName,
                                long parentID,
                                java.lang.String level)

runConversionOneTwo

public static void runConversionOneTwo()
                                throws FileAccessException,
                                       java.io.IOException
FileAccessException
java.io.IOException

convertUsers

public static void convertUsers()
                         throws java.io.IOException
java.io.IOException

convertArchive

public static void convertArchive(ArchiveInfoFS arch)
                           throws java.io.IOException,
                                  FileAccessException
java.io.IOException
FileAccessException

addHistoryType

public static void addHistoryType(java.io.File filesDirectory)

main

public static void main(java.lang.String[] args)

runConversionOneThree

public static void runConversionOneThree()
                                  throws FileAccessException,
                                         java.io.IOException,
                                         ProjectDoesNotExistException,
                                         FileAlreadyExistsException,
                                         SecurityException,
                                         TextFileException,
                                         org.xml.sax.SAXException,
                                         org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                         org.sourcejammer.util.SourceJammerVersionException,
                                         javax.xml.parsers.ParserConfigurationException
Converts server from version 1.2 to version 1.3. Just moves Label files to their new location inside of their parent projects.

FileAccessException
java.io.IOException
ProjectDoesNotExistException
FileAlreadyExistsException
SecurityException
TextFileException
org.xml.sax.SAXException
org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.util.SourceJammerVersionException
javax.xml.parsers.ParserConfigurationException

runConversionTwoZero

public static void runConversionTwoZero(java.lang.String archive)
                                 throws ProjectDoesNotExistException,
                                        SecurityException,
                                        FileAccessException,
                                        FileDoesNotExistException,
                                        NoSuchVersionException,
                                        java.io.IOException,
                                        org.sourcejammer.util.SourceJammerVersionException,
                                        javax.xml.transform.TransformerException,
                                        org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                        org.sourcejammer.project.NodeDoesNotExistException,
                                        javax.xml.parsers.ParserConfigurationException,
                                        org.xml.sax.SAXException,
                                        org.sourcejammer.project.NodeExistsException
ProjectDoesNotExistException
SecurityException
FileAccessException
FileDoesNotExistException
NoSuchVersionException
java.io.IOException
org.sourcejammer.util.SourceJammerVersionException
javax.xml.transform.TransformerException
org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.project.NodeDoesNotExistException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
org.sourcejammer.project.NodeExistsException

convertOneArchiveTwoZero

private static void convertOneArchiveTwoZero(java.lang.String archiveName,
                                             ArchiveGetter getter)
                                      throws FileAccessException,
                                             org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                             org.sourcejammer.util.SourceJammerVersionException,
                                             org.sourcejammer.project.NodeDoesNotExistException,
                                             javax.xml.parsers.ParserConfigurationException,
                                             java.io.IOException,
                                             org.xml.sax.SAXException,
                                             javax.xml.transform.TransformerException,
                                             SecurityException,
                                             ProjectDoesNotExistException,
                                             NoSuchVersionException,
                                             FileDoesNotExistException,
                                             org.sourcejammer.project.NodeExistsException
FileAccessException
org.sourcejammer.xml.XMLNodeDoesNotExistException
org.sourcejammer.util.SourceJammerVersionException
org.sourcejammer.project.NodeDoesNotExistException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.transform.TransformerException
SecurityException
ProjectDoesNotExistException
NoSuchVersionException
FileDoesNotExistException
org.sourcejammer.project.NodeExistsException

twoZeroLog

private static void twoZeroLog(java.lang.String group,
                               java.lang.String s)
                        throws java.io.IOException
java.io.IOException

convertAllXMLFilesFor20

private static boolean convertAllXMLFilesFor20(java.io.File pathToArchRoot)
                                        throws org.xml.sax.SAXException,
                                               SecurityException,
                                               javax.xml.parsers.ParserConfigurationException,
                                               java.io.IOException,
                                               org.sourcejammer.xml.XMLNodeDoesNotExistException,
                                               FileAccessException,
                                               org.sourcejammer.project.NodeDoesNotExistException,
                                               javax.xml.transform.TransformerException,
                                               org.sourcejammer.util.SourceJammerVersionException
org.xml.sax.SAXException
SecurityException
javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.sourcejammer.xml.XMLNodeDoesNotExistException
FileAccessException
org.sourcejammer.project.NodeDoesNotExistException
javax.xml.transform.TransformerException
org.sourcejammer.util.SourceJammerVersionException

convertAllTextFilesFor20

private static void convertAllTextFilesFor20(org.sourcejammer.project.view.Project proj,
                                             Archive arch,
                                             java.io.File sourceDir)
                                      throws ProjectDoesNotExistException,
                                             SecurityException,
                                             FileAccessException,
                                             FileDoesNotExistException,
                                             NoSuchVersionException,
                                             java.io.IOException,
                                             org.sourcejammer.project.NodeExistsException
ProjectDoesNotExistException
SecurityException
FileAccessException
FileDoesNotExistException
NoSuchVersionException
java.io.IOException
org.sourcejammer.project.NodeExistsException

convertTextFileFor20

private static void convertTextFileFor20(FileNode ndFl,
                                         java.io.File sourceDir,
                                         org.sourcejammer.util.Spinner spin)
                                  throws NoSuchVersionException,
                                         java.io.IOException,
                                         org.sourcejammer.project.NodeDoesNotExistException
NoSuchVersionException
java.io.IOException
org.sourcejammer.project.NodeDoesNotExistException

usage

private static void usage()


Copyright 2003 Soucejammer project.