Package com.xmlmind.w2x.processor
Class Start
- java.lang.Object
-
- com.xmlmind.w2x.processor.Start
-
public class Start extends Object
Starts thew2xcommand-line tool, taking into account possible plugins.For this,
Startclass scans the directories specifed in system property or environment variableW2X_PLUGIN_PATH, searching for.jarfiles (containing customProcessStepcode or some support code) and for.w2x_pluginfiles (containing plugin specifications).
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStart()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ObjectcreateApp(ClassLoader classLoader, String appClassName, File installDir)protected ClassLoadercreateClassLoader()protected voiddoStart(ClassLoader classLoader, String appClassName, File installDir, String[] args)static FilefindInstallDir()Search theCLASSPATHforw2x.jarorw2x_all.jarorw2x_app.jarto determine the location of the installation directory of XMLmind Word To XML.protected URL[]getClassPath()protected String[]getErrors()protected URL[]getJars()protected URL[]getPlugins()static voidmain(String[] args)protected static voidprependClasspath(List<URL> jarList)protected voidrunApp(Object app, String[] args)static voidscanPluginDir(File dir, List<URL> jarList, List<URL> pluginList, List<String> errorList)static voidscanPluginDirs(File installDir, List<URL> jarList, List<URL> pluginList, List<String> errorList)protected voidstart(String appClassName, String[] args)
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
doStart
protected void doStart(ClassLoader classLoader, String appClassName, File installDir, String[] args)
-
createClassLoader
protected ClassLoader createClassLoader()
-
getClassPath
protected URL[] getClassPath()
-
getJars
protected URL[] getJars()
-
createApp
protected Object createApp(ClassLoader classLoader, String appClassName, File installDir) throws Exception
- Throws:
Exception
-
getPlugins
protected URL[] getPlugins()
-
getErrors
protected String[] getErrors()
-
findInstallDir
public static File findInstallDir()
Search theCLASSPATHforw2x.jarorw2x_all.jarorw2x_app.jarto determine the location of the installation directory of XMLmind Word To XML.- Returns:
- installation directory if found;
nullotherwise
-
scanPluginDirs
public static final void scanPluginDirs(File installDir, List<URL> jarList, List<URL> pluginList, List<String> errorList)
-
-