summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-01-14 14:16:48 +0100
committerDavid Tardon <dtardon@redhat.com>2015-01-14 17:43:26 +0100
commit021b71ed493e6b211bd02c1385082143a5fbb495 (patch)
tree5d338e291fd7a7ccbe1ff011421faee5639f06a4
parenta663c789dd19aa93daf69874982b50a2da393d42 (diff)
drop sources of unused FCFGSplit
Change-Id: I316d307cda526bc6cbd6ba87676aec309cd7345f
-rw-r--r--filter/source/config/tools/split/FCFGSplit.cfg128
-rw-r--r--filter/source/config/tools/split/FCFGSplit.java556
-rw-r--r--filter/source/config/tools/split/Manifest.mf1
-rw-r--r--filter/source/config/tools/split/Splitter.java298
-rw-r--r--filter/source/config/tools/split/SplitterData.java78
5 files changed, 0 insertions, 1061 deletions
diff --git a/filter/source/config/tools/split/FCFGSplit.cfg b/filter/source/config/tools/split/FCFGSplit.cfg
deleted file mode 100644
index 69d90adec6eb..000000000000
--- a/filter/source/config/tools/split/FCFGSplit.cfg
+++ /dev/null
@@ -1,128 +0,0 @@
-#
-# This file is part of the LibreOffice project.
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, You can obtain one at http://mozilla.org/MPL/2.0/.
-#
-# This file incorporates work covered by the following license notice:
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed
-# with this work for additional information regarding copyright
-# ownership. The ASF licenses this file to you under the Apache
-# License, Version 2.0 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.apache.org/licenses/LICENSE-2.0 .
-#
-
-#------------------------------------------------------
-# must be a system file name, which points to the
-# xcu file, should be analyzed and splitted
-#------------------------------------------------------
-xmlfile =o:/SRC680/src.m21/officecfg/registry/data/org/openoffice/Office/TypeDetection.xcu
-
-#------------------------------------------------------
-# specify the format of the specified "xmlfile"
-#------------------------------------------------------
-informat = 6.0
-
-#------------------------------------------------------
-# must be a system directory, which can be cleared completely
-# and will be used then to generate all results of this
-# program there - means to generate al xcu fragments
-#------------------------------------------------------
-outdir =c:/temp/split/fragments
-
-#------------------------------------------------------
-# specify the format of the generated xcu fragments
-# inside the "outdir"
-#------------------------------------------------------
-outformat = 6.Y
-
-#------------------------------------------------------
-# specify the text encoding, which must be used for
-# reading the "xmlfile"
-#------------------------------------------------------
-inencoding = UTF-8
-
-#------------------------------------------------------
-# specify the text encoding, which must be used for
-# writing the xcu fragments
-#------------------------------------------------------
-outencoding = UTF-8
-
-#------------------------------------------------------
-# The following defines specify system directories
-# which must be sub directories of "outdir".
-# Every of these sub dir willl be used to generate
-# groups of xcu fragments there.
-#------------------------------------------------------
-subdir_types = types
-subdir_filters = filters
-subdir_detectservices = detectservices
-subdir_frameloaders = frameloaders
-subdir_contenthandlers = contenthandlers
-
-#------------------------------------------------------
-# Enable/Disable grouping of filter fragments and using
-# of specialized sub directories.
-#------------------------------------------------------
-separate_filters_by_module = false
-
-#------------------------------------------------------
-# The following defines specify system directories
-# which must be sub directories of "outdir/subdir_filters".
-# Every of these sub dir willl be used to generate
-# groups of filter fragments there.
-# Note: These sub directories are used only if
-# "separate_filters_by_module" is set to true!
-#------------------------------------------------------
-subdir_module_swriter = swriter
-subdir_module_sweb = sweb
-subdir_module_sglobal = sglobal
-subdir_module_scalc = scalc
-subdir_module_sdraw = sdraw
-subdir_module_simpress = simpress
-subdir_module_smath = smath
-subdir_module_schart = schart
-subdir_module_others = others
-
-#------------------------------------------------------
-# Define the file extension, which is used for
-# every generated fragment inside "outdir".
-#------------------------------------------------------
-fragment_extension = .xcu
-
-#------------------------------------------------------
-# specify a debug level for generating debug output
-# on the console
-# The following levels exists:
-# 0 = no output
-# 1 = only errors/exceptions will be shown
-# 2 = errors/exceptions and warnings will be shown
-# 3 = additional to errors and warnings some global
-# information will be shown
-# 4 = additional to errors and warnings some global
-# and detailed information will be shown
-#------------------------------------------------------
-debug = 4
-
-#------------------------------------------------------
-# Enable/Disable creation of the new "COMBINED" filter flag
-# for 6.y versions. That means: every filter with set
-# "IMPORT" and "EXPORT" flag will get the new flag value
-# and lose the old ones.
-#------------------------------------------------------
-create_combine_filter_flag = false
-
-#------------------------------------------------------
-# Remove some obsolete filter flags for 6.y versions.
-#------------------------------------------------------
-remove_filter_flag_browserpreferred = true
-remove_filter_flag_preferred = false
-remove_filter_flag_3rdparty = false
-
-remove_graphic_filters = false
-remove_filter_uinames = false
-set_default_detector = false
diff --git a/filter/source/config/tools/split/FCFGSplit.java b/filter/source/config/tools/split/FCFGSplit.java
deleted file mode 100644
index a9803fa2a992..000000000000
--- a/filter/source/config/tools/split/FCFGSplit.java
+++ /dev/null
@@ -1,556 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package com.sun.star.filter.config.tools.split;
-
-
-
-import java.lang.*;
-import java.util.*;
-import java.io.*;
-import com.sun.star.filter.config.tools.utils.*;
-
-
-
-/**
- * Implements a simple command line tool, which can read a given xml
- * configuration file of the filter configuration, analyze it
- * and split it into different xml fragments.
- * All parameters of this process can be given by a configuration file.
- *
- *
- */
-public class FCFGSplit
-{
-
- // private const
-
- /** specify the command line parameter to set the debug level for this app. */
- private static final String CMD_DEBUG = "debug" ;
-
- /** specify the command line parameter to set a configuration file for this app. */
- private static final String CMD_CONFIG = "config";
-
- /** The following strings are used as property names of
- * the configuration file we need here.
- *
- * @seealso readCfg()
- */
-
- private static final String CFGKEY_XMLFILE = "xmlfile" ;
- private static final String CFGKEY_INFORMAT = "informat" ;
- private static final String CFGKEY_OUTFORMAT = "outformat" ;
- private static final String CFGKEY_INENCODING = "inencoding" ;
- private static final String CFGKEY_OUTENCODING = "outencoding" ;
- private static final String CFGKEY_OUTDIR = "outdir" ;
- private static final String CFGKEY_FRAGMENT_EXTENSION = "fragment_extension" ;
- private static final String CFGKEY_CREATE_COMBINE_FILTER_FLAG = "create_combine_filter_flag" ;
- private static final String CFGKEY_REMOVE_FILTER_FLAG_BROWSERPREFERRED = "remove_filter_flag_browserpreferred" ;
- private static final String CFGKEY_REMOVE_FILTER_FLAG_PREFERRED = "remove_filter_flag_preferred" ;
- private static final String CFGKEY_REMOVE_FILTER_FLAG_3RDPARTY = "remove_filter_flag_3rdparty" ;
- private static final String CFGKEY_REMOVE_FILTER_UINAMES = "remove_filter_uinames" ;
- private static final String CFGKEY_REMOVE_GRAPHIC_FILTERS = "remove_graphic_filters" ;
- private static final String CFGKEY_SET_DEFAULT_DETECTOR = "set_default_detector" ;
-
- private static final String CFGKEY_SUBDIR_TYPES = "subdir_types" ;
- private static final String CFGKEY_SUBDIR_FILTERS = "subdir_filters" ;
- private static final String CFGKEY_SUBDIR_DETECTSERVICES = "subdir_detectservices" ;
- private static final String CFGKEY_SUBDIR_FRAMELOADERS = "subdir_frameloaders" ;
- private static final String CFGKEY_SUBDIR_CONTENTHANDLERS = "subdir_contenthandlers" ;
-
- private static final String CFGKEY_SEPARATE_FILTERS_BY_MODULE = "separate_filters_by_module" ;
-
- private static final String CFGKEY_SUBDIR_MODULE_SWRITER = "subdir_module_swriter" ;
- private static final String CFGKEY_SUBDIR_MODULE_SWEB = "subdir_module_sweb" ;
- private static final String CFGKEY_SUBDIR_MODULE_SGLOBAL = "subdir_module_sglobal" ;
- private static final String CFGKEY_SUBDIR_MODULE_SCALC = "subdir_module_scalc" ;
- private static final String CFGKEY_SUBDIR_MODULE_SDRAW = "subdir_module_sdraw" ;
- private static final String CFGKEY_SUBDIR_MODULE_SIMPRESS = "subdir_module_simpress" ;
- private static final String CFGKEY_SUBDIR_MODULE_SMATH = "subdir_module_smath" ;
- private static final String CFGKEY_SUBDIR_MODULE_SCHART = "subdir_module_schart" ;
- private static final String CFGKEY_SUBDIR_MODULE_OTHERS = "subdir_module_others" ;
-
- /** The following strings are used as property default
- * values if a configuration key does not exist.
- * It must be a string value, because the class java.util.Properties
- * accept it as the only type. But of course the value must be
- * convertible to the right target type.
- *
- * @seealso readCfg()
- */
-
- private static final String DEFAULT_XMLFILE = ".//TypeDetection.xcu" ;
- private static final String DEFAULT_INFORMAT = "6.0" ;
- private static final String DEFAULT_OUTFORMAT = "6.Y" ;
- private static final String DEFAULT_INENCODING = "UTF-8" ;
- private static final String DEFAULT_OUTENCODING = "UTF-8" ;
- private static final String DEFAULT_OUTDIR = ".//temp" ;
- private static final String DEFAULT_FRAGMENT_EXTENSION = ".xcu" ;
- private static final String DEFAULT_CREATE_COMBINE_FILTER_FLAG = "false" ;
- private static final String DEFAULT_REMOVE_FILTER_FLAG_BROWSERPREFERRED = "false" ;
- private static final String DEFAULT_REMOVE_FILTER_FLAG_PREFERRED = "false" ;
- private static final String DEFAULT_REMOVE_FILTER_FLAG_3RDPARTY = "false" ;
- private static final String DEFAULT_REMOVE_FILTER_UINAMES = "false" ;
- private static final String DEFAULT_REMOVE_GRAPHIC_FILTERS = "false" ;
- private static final String DEFAULT_SET_DEFAULT_DETECTOR = "false" ;
-
- private static final String DEFAULT_SUBDIR_TYPES = "Types" ;
- private static final String DEFAULT_SUBDIR_FILTERS = "Filters" ;
- private static final String DEFAULT_SUBDIR_DETECTSERVICES = "DetectServices" ;
- private static final String DEFAULT_SUBDIR_FRAMELOADERS = "FrameLoaders" ;
- private static final String DEFAULT_SUBDIR_CONTENTHANDLERS = "ContentHandlers" ;
-
- private static final String DEFAULT_SEPARATE_FILTERS_BY_MODULE = "false" ;
-
- private static final String DEFAULT_SUBDIR_MODULE_SWRITER = "SWriter" ;
- private static final String DEFAULT_SUBDIR_MODULE_SWEB = "SWeb" ;
- private static final String DEFAULT_SUBDIR_MODULE_SGLOBAL = "SGlobal" ;
- private static final String DEFAULT_SUBDIR_MODULE_SCALC = "SCalc" ;
- private static final String DEFAULT_SUBDIR_MODULE_SDRAW = "SDraw" ;
- private static final String DEFAULT_SUBDIR_MODULE_SIMPRESS = "SImpress" ;
- private static final String DEFAULT_SUBDIR_MODULE_SMATH = "SMath" ;
- private static final String DEFAULT_SUBDIR_MODULE_SCHART = "SChart" ;
- private static final String DEFAULT_SUBDIR_MODULE_OTHERS = "Others" ;
-
-
- // private member
-
- /** contains the name of the reading xcu file. */
- private static String m_sXMLFile;
-
- /** specify the xml file format, which must be interpreted at reading time. */
- private static int m_nInFormat;
-
- /** specify the xml file format, which must be used
- * to generate all xcu fragments. */
- private static int m_nOutFormat;
-
- /** specify the file encoding for reading. */
- private static String m_sInEncoding;
-
- /** specify the file encoding for writing fragments. */
- private static String m_sOutEncoding;
-
- /** specify the target directory, where all results of this
- * process can be generated.
- * Note: May it will be cleared! */
- private static String m_sOutDir;
-
- /** can be used to generate some output on the console. */
- private static Logger m_aDebug;
-
- /** contains the file extension for all generated xml fragments. */
- private static String m_sFragmentExtension;
-
- /** specify the sub directory to generate type fragments.
- * Its meaned relative to m_sOutDir. */
- private static String m_sSubDirTypes;
-
- /** specify the sub directory to generate filter fragments.
- * Its meaned relative to m_sOutDir. */
- private static String m_sSubDirFilters;
-
- /** specify the sub directory to generate detect service fragments.
- * Its meaned relative to m_sOutDir. */
- private static String m_sSubDirDetectServices;
-
- /** specify the sub directory to generate frame loader fragments.
- * Its meaned relative to m_sOutDir. */
- private static String m_sSubDirFrameLoaders;
-
- /** specify the sub directory to generate content handler fragments.
- * Its meaned relative to m_sOutDir. */
- private static String m_sSubDirContentHandlers;
-
- /** enable/disable generating of filter groups - separated by
- * application modules. */
- private static boolean m_bSeparateFiltersByModule;
-
- /** specify the sub directory to generate filter groups
- * for the module writer. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSWriter;
-
- /** specify the sub directory to generate filter groups
- * for the module writer/web. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSWeb;
-
- /** specify the sub directory to generate filter groups
- * for the module writer/global. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSGlobal;
-
- /** specify the sub directory to generate filter groups
- * for the module calc. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSCalc;
-
- /** specify the sub directory to generate filter groups
- * for the module draw. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSDraw;
-
- /** specify the sub directory to generate filter groups
- * for the module impress. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSImpress;
-
- /** specify the sub directory to generate filter groups
- * for the module math. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSMath;
-
- /** specify the sub directory to generate filter groups
- * for the module chart. Will be used only,
- * if m_bSeparateFiltersByModule is set to TRUE.*/
- private static String m_sSubDirModuleSChart;
-
- /** specify the sub directory to generate filter groups
- * for unknown modules - e.g. the graphic filters.
- * Will be used only, if m_bSeparateFiltersByModule
- * is set to TRUE.*/
- private static String m_sSubDirModuleOthers;
-
- private static boolean m_bCreateCombineFilterFlag;
- private static boolean m_bRemoveFilterFlagBrowserPreferred;
- private static boolean m_bRemoveFilterFlagPreferred;
- private static boolean m_bRemoveFilterFlag3rdparty;
- private static boolean m_bRemoveFilterUINames;
- private static boolean m_bRemoveGraphicFilters;
- private static boolean m_bSetDefaultDetector;
-
-
- // main
-
- /** main.
- *
- * Analyze the command line arguments, load the configuration file,
- * fill a cache from the specified xml file and generate all
- * needed xml fragments inside the specified output directory.
- *
- * @param lArgs
- * contains the command line arguments.
- */
- public static void main(String[] lArgs)
- {
- long t_start = System.currentTimeMillis();
-
- // must be :-)
- FCFGSplit.printCopyright();
- // can be used as exit code
- int nErr = 0;
-
-
- // analyze command line parameter
- ConfigHelper aCmdLine = null;
- try
- {
- aCmdLine = new ConfigHelper("com/sun/star/filter/config/tools/split/FCFGSplit.cfg", lArgs);
- }
- catch(java.lang.Throwable exCmdLine)
- {
- exCmdLine.printStackTrace();
- FCFGSplit.printHelp();
- System.exit(--nErr);
- }
-
-
- // help requested?
- if (aCmdLine.isHelp())
- {
- FCFGSplit.printHelp();
- System.exit(--nErr);
- }
-
-
- // initialize an output channel for errors/warnings etc.
- int nLevel = aCmdLine.getInt(CMD_DEBUG, Logger.LEVEL_DETAILEDINFOS);
- m_aDebug = new Logger(nLevel);
- try
- {
- FCFGSplit.readCfg(aCmdLine);
- }
- catch(java.lang.Exception exCfgLoad)
- {
- m_aDebug.setException(exCfgLoad);
- System.exit(--nErr);
- }
-
-
- // check if the required resources exists
- java.io.File aXMLFile = new java.io.File(m_sXMLFile);
- if (!aXMLFile.exists() || !aXMLFile.isFile())
- {
- m_aDebug.setError("The specified xml file \""+aXMLFile.getPath()+"\" does not exist or seems not to be a simple file.");
- System.exit(--nErr);
- }
-
- java.io.File aOutDir = new java.io.File(m_sOutDir);
- if (!aOutDir.exists() || !aOutDir.isDirectory())
- {
- m_aDebug.setError("The specified directory \""+aOutDir.getPath()+"\" does not exist or seems not to be a directory.");
- System.exit(--nErr);
- }
-
- if (m_nInFormat == Cache.FORMAT_UNSUPPORTED)
- {
- m_aDebug.setError("The specified xml format for input is not supported.");
- System.exit(--nErr);
- }
-
- if (m_nOutFormat == Cache.FORMAT_UNSUPPORTED)
- {
- m_aDebug.setError("The specified xml format for output is not supported.");
- System.exit(--nErr);
- }
-
-
- // load the xml file
- m_aDebug.setGlobalInfo("loading xml file \""+aXMLFile.getPath()+"\" ...");
- long t_load_start = System.currentTimeMillis();
- Cache aCache = new Cache(m_aDebug);
- try
- {
- aCache.fromXML(aXMLFile, m_nInFormat);
- }
- catch(java.lang.Throwable exLoad)
- {
- m_aDebug.setException(exLoad);
- System.exit(--nErr);
- }
- long t_load_end = System.currentTimeMillis();
-
-
- // validate the content, fix some problems and convert it to the output format
- m_aDebug.setGlobalInfo("validate and transform to output format ...");
- long t_transform_start = System.currentTimeMillis();
- try
- {
- aCache.validate(m_nInFormat);
- if (
- (m_nInFormat == Cache.FORMAT_60) &&
- (m_nOutFormat == Cache.FORMAT_6Y)
- )
- {
- aCache.transform60to6Y(m_bCreateCombineFilterFlag ,
- m_bRemoveFilterFlagBrowserPreferred,
- m_bRemoveFilterFlagPreferred ,
- m_bRemoveFilterFlag3rdparty ,
- m_bRemoveFilterUINames ,
- m_bRemoveGraphicFilters ,
- m_bSetDefaultDetector );
- }
- aCache.validate(m_nOutFormat);
- }
- catch(java.lang.Throwable exTransform)
- {
- m_aDebug.setException(exTransform);
- System.exit(--nErr);
- }
- long t_transform_end = System.currentTimeMillis();
-
-
- // generate all xml fragments
- m_aDebug.setGlobalInfo("generate xml fragments into directory \""+aOutDir.getPath()+"\" ...");
- long t_split_start = System.currentTimeMillis();
- try
- {
- SplitterData aDataSet = new SplitterData();
- aDataSet.m_aDebug = m_aDebug ;
- aDataSet.m_aCache = aCache ;
- aDataSet.m_nFormat = m_nOutFormat ;
- aDataSet.m_sEncoding = m_sOutEncoding ;
- aDataSet.m_bSeparateFiltersByModule = m_bSeparateFiltersByModule;
- aDataSet.m_sFragmentExtension = m_sFragmentExtension ;
- aDataSet.m_aOutDir = aOutDir ;
-
- aDataSet.m_aFragmentDirTypes = new java.io.File(aOutDir, m_sSubDirTypes );
- aDataSet.m_aFragmentDirFilters = new java.io.File(aOutDir, m_sSubDirFilters );
- aDataSet.m_aFragmentDirDetectServices = new java.io.File(aOutDir, m_sSubDirDetectServices );
- aDataSet.m_aFragmentDirFrameLoaders = new java.io.File(aOutDir, m_sSubDirFrameLoaders );
- aDataSet.m_aFragmentDirContentHandlers = new java.io.File(aOutDir, m_sSubDirContentHandlers);
-
- if (m_bSeparateFiltersByModule)
- {
- aDataSet.m_aFragmentDirModuleSWriter = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSWriter );
- aDataSet.m_aFragmentDirModuleSWeb = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSWeb );
- aDataSet.m_aFragmentDirModuleSGlobal = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSGlobal );
- aDataSet.m_aFragmentDirModuleSCalc = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSCalc );
- aDataSet.m_aFragmentDirModuleSDraw = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSDraw );
- aDataSet.m_aFragmentDirModuleSImpress = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSImpress);
- aDataSet.m_aFragmentDirModuleSMath = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSMath );
- aDataSet.m_aFragmentDirModuleSChart = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleSChart );
- aDataSet.m_aFragmentDirModuleOthers = new java.io.File(aDataSet.m_aFragmentDirFilters, m_sSubDirModuleOthers );
- }
- else
- {
- aDataSet.m_aFragmentDirModuleSWriter = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSWeb = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSGlobal = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSCalc = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSDraw = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSImpress = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSMath = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleSChart = aDataSet.m_aFragmentDirFilters;
- aDataSet.m_aFragmentDirModuleOthers = aDataSet.m_aFragmentDirFilters;
- }
-
- Splitter aSplitter = new Splitter(aDataSet);
- aSplitter.split();
- }
- catch(java.lang.Throwable exSplit)
- {
- m_aDebug.setException(exSplit);
- System.exit(--nErr);
- }
- long t_split_end = System.currentTimeMillis();
-
-
- // generate some special views
- m_aDebug.setGlobalInfo("generate views and statistics ...");
- long t_statistics_start = System.currentTimeMillis();
- try
- {
- aCache.analyze();
- aCache.toHTML(aOutDir, m_nOutFormat, m_sOutEncoding);
- m_aDebug.setDetailedInfo(aCache.getStatistics());
- }
- catch(java.lang.Throwable exStatistics)
- {
- m_aDebug.setException(exStatistics);
- System.exit(--nErr);
- }
- long t_statistics_end = System.currentTimeMillis();
-
-
- // analyze some time stamps
- long t_end = System.currentTimeMillis();
-
- StringBuffer sTimes = new StringBuffer(100);
- sTimes.append("Needed times:\n" );
- sTimes.append("t [all]\t\t=\t" );
- sTimes.append(t_end-t_start );
- sTimes.append(" ms\n" );
- sTimes.append("t [load]\t=\t" );
- sTimes.append(t_load_end-t_load_start );
- sTimes.append(" ms\n" );
- sTimes.append("t [transform]\t=\t" );
- sTimes.append(t_transform_end-t_transform_start );
- sTimes.append(" ms\n" );
- sTimes.append("t [split]\t=\t" );
- sTimes.append(t_split_end-t_split_start );
- sTimes.append(" ms\n" );
- sTimes.append("t [statistics]\t=\t" );
- sTimes.append(t_statistics_end-t_statistics_start);
- sTimes.append(" ms\n" );
- m_aDebug.setDetailedInfo(sTimes.toString());
-
- // everything seems to be ok.
- // Return "OK" to calli.
- m_aDebug.setGlobalInfo("Finish.");
- System.exit(0);
- }
-
-
-
- /** read the configuration file.
- *
- * @param aCfg
- * contains the content of the
- * loaded configuration file.
- */
- private static void readCfg(java.util.Properties aCfg)
- {
- m_sXMLFile = aCfg.getProperty(CFGKEY_XMLFILE , DEFAULT_XMLFILE );
-
- m_sInEncoding = aCfg.getProperty(CFGKEY_INENCODING , DEFAULT_INENCODING );
- m_sOutEncoding = aCfg.getProperty(CFGKEY_OUTENCODING , DEFAULT_OUTENCODING );
- m_sOutDir = aCfg.getProperty(CFGKEY_OUTDIR , DEFAULT_OUTDIR );
- m_sFragmentExtension = aCfg.getProperty(CFGKEY_FRAGMENT_EXTENSION , DEFAULT_FRAGMENT_EXTENSION );
-
- m_sSubDirTypes = aCfg.getProperty(CFGKEY_SUBDIR_TYPES , DEFAULT_SUBDIR_TYPES );
- m_sSubDirFilters = aCfg.getProperty(CFGKEY_SUBDIR_FILTERS , DEFAULT_SUBDIR_FILTERS );
- m_sSubDirDetectServices = aCfg.getProperty(CFGKEY_SUBDIR_DETECTSERVICES , DEFAULT_SUBDIR_DETECTSERVICES );
- m_sSubDirFrameLoaders = aCfg.getProperty(CFGKEY_SUBDIR_FRAMELOADERS , DEFAULT_SUBDIR_FRAMELOADERS );
- m_sSubDirContentHandlers = aCfg.getProperty(CFGKEY_SUBDIR_CONTENTHANDLERS , DEFAULT_SUBDIR_CONTENTHANDLERS );
-
- m_sSubDirModuleSWriter = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SWRITER , DEFAULT_SUBDIR_MODULE_SWRITER );
- m_sSubDirModuleSWeb = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SWEB , DEFAULT_SUBDIR_MODULE_SWEB );
- m_sSubDirModuleSGlobal = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SGLOBAL , DEFAULT_SUBDIR_MODULE_SGLOBAL );
- m_sSubDirModuleSCalc = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SCALC , DEFAULT_SUBDIR_MODULE_SCALC );
- m_sSubDirModuleSDraw = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SDRAW , DEFAULT_SUBDIR_MODULE_SDRAW );
- m_sSubDirModuleSImpress = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SIMPRESS , DEFAULT_SUBDIR_MODULE_SIMPRESS );
- m_sSubDirModuleSMath = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SMATH , DEFAULT_SUBDIR_MODULE_SMATH );
- m_sSubDirModuleSChart = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_SCHART , DEFAULT_SUBDIR_MODULE_SCHART );
- m_sSubDirModuleOthers = aCfg.getProperty(CFGKEY_SUBDIR_MODULE_OTHERS , DEFAULT_SUBDIR_MODULE_OTHERS );
-
- m_bSeparateFiltersByModule = new java.lang.Boolean(aCfg.getProperty(CFGKEY_SEPARATE_FILTERS_BY_MODULE , DEFAULT_SEPARATE_FILTERS_BY_MODULE )).booleanValue();
- m_bCreateCombineFilterFlag = new java.lang.Boolean(aCfg.getProperty(CFGKEY_CREATE_COMBINE_FILTER_FLAG , DEFAULT_CREATE_COMBINE_FILTER_FLAG )).booleanValue();
- m_bRemoveFilterFlagBrowserPreferred = new java.lang.Boolean(aCfg.getProperty(CFGKEY_REMOVE_FILTER_FLAG_BROWSERPREFERRED, DEFAULT_REMOVE_FILTER_FLAG_BROWSERPREFERRED)).booleanValue();
- m_bRemoveFilterFlagPreferred = new java.lang.Boolean(aCfg.getProperty(CFGKEY_REMOVE_FILTER_FLAG_PREFERRED , DEFAULT_REMOVE_FILTER_FLAG_PREFERRED )).booleanValue();
- m_bRemoveFilterFlag3rdparty = new java.lang.Boolean(aCfg.getProperty(CFGKEY_REMOVE_FILTER_FLAG_3RDPARTY , DEFAULT_REMOVE_FILTER_FLAG_3RDPARTY )).booleanValue();
- m_bRemoveFilterUINames = new java.lang.Boolean(aCfg.getProperty(CFGKEY_REMOVE_FILTER_UINAMES , DEFAULT_REMOVE_FILTER_UINAMES )).booleanValue();
- m_bRemoveGraphicFilters = new java.lang.Boolean(aCfg.getProperty(CFGKEY_REMOVE_GRAPHIC_FILTERS , DEFAULT_REMOVE_GRAPHIC_FILTERS )).booleanValue();
- m_bSetDefaultDetector = new java.lang.Boolean(aCfg.getProperty(CFGKEY_SET_DEFAULT_DETECTOR , DEFAULT_SET_DEFAULT_DETECTOR )).booleanValue();
-
- String sFormat = aCfg.getProperty(CFGKEY_INFORMAT, DEFAULT_INFORMAT);
- m_nInFormat = Cache.mapFormatString2Format(sFormat);
-
- sFormat = aCfg.getProperty(CFGKEY_OUTFORMAT, DEFAULT_OUTFORMAT);
- m_nOutFormat = Cache.mapFormatString2Format(sFormat);
- }
-
-
-
- /** prints out a copyright message on stdout.
- */
- private static void printCopyright()
- {
- StringBuffer sOut = new StringBuffer(256);
- sOut.append("FCFGSplit\n");
- sOut.append("Copyright: 2000 by Sun Microsystems, Inc.\n");
- sOut.append("All Rights Reserved.\n");
- System.out.println(sOut.toString());
- }
-
-
-
- /** prints out a help message on stdout.
- */
- private static void printHelp()
- {
- StringBuffer sOut = new StringBuffer(1000);
- sOut.append("_______________________________________________________________________________\n\n" );
- sOut.append("usage: FCFGSplit "+CMD_CONFIG+"=<file name> "+CMD_DEBUG+"=<level>\n" );
- sOut.append("parameters:\n" );
- sOut.append("\t-help\n" );
- sOut.append("\t\tshow this little help.\n\n" );
- sOut.append("\t"+CMD_CONFIG+"=<file name>\n" );
- sOut.append("\t\tspecify the configuration file.\n\n" );
- sOut.append("\t"+CMD_DEBUG+"=<level>\n" );
- sOut.append("\t\tprints out some debug messages.\n" );
- sOut.append("\t\tlevel=[0..4]\n" );
- sOut.append("\t\t0 => no debug messages\n" );
- sOut.append("\t\t1 => print out errors only\n" );
- sOut.append("\t\t2 => print out errors & warnings\n" );
- sOut.append("\t\t3 => print out some global actions (e.g. load file ...)\n" );
- sOut.append("\t\t4 => print out more detailed actions (e.g. load item nr. xxx of file.)\n\n" );
- System.out.println(sOut.toString());
- }
-}
diff --git a/filter/source/config/tools/split/Manifest.mf b/filter/source/config/tools/split/Manifest.mf
deleted file mode 100644
index 4d0d20ed59cc..000000000000
--- a/filter/source/config/tools/split/Manifest.mf
+++ /dev/null
@@ -1 +0,0 @@
-Main-Class: com.sun.star.filter.config.tools.split.FCFGSplit
diff --git a/filter/source/config/tools/split/Splitter.java b/filter/source/config/tools/split/Splitter.java
deleted file mode 100644
index 5be4bfab7b5a..000000000000
--- a/filter/source/config/tools/split/Splitter.java
+++ /dev/null
@@ -1,298 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package com.sun.star.filter.config.tools.split;
-
-
-
-import java.lang.*;
-import java.util.*;
-import java.io.*;
-import com.sun.star.filter.config.tools.utils.*;
-
-
-
-/**
- * Can split one xml file into its different xml fragments.
- *
- *
- */
-public class Splitter
-{
-
- // member
-
- /** contains all real member of this instance.
- * That make it easy to initialize an instance
- * of this class inside a multi-threaded environment. */
- private SplitterData m_aDataSet;
-
-
- // interface
-
- /** initialize a new instance of this class with all
- * needed resources.
- *
- * @param aDataSet
- * contains all needed parameters for this instance
- * as a complete set, which can be filled outside.
- */
- public Splitter(SplitterData aDataSet)
- {
- m_aDataSet = aDataSet;
- }
-
-
- // interface
-
- /** generate xml fragments for all cache items.
- *
- * @throw [java.lang.Exception]
- * if anything will fail inside during
- * this operation runs.
- */
- public synchronized void split()
- throws java.lang.Exception
- {
- createDirectoryStructures();
-
- // use some statistic values to check if all cache items
- // will be transformed really.
- int nTypes = m_aDataSet.m_aCache.getItemCount(Cache.E_TYPE );
- int nFilters = m_aDataSet.m_aCache.getItemCount(Cache.E_FILTER );
- int nDetectServices = m_aDataSet.m_aCache.getItemCount(Cache.E_DETECTSERVICE );
- int nFrameLoaders = m_aDataSet.m_aCache.getItemCount(Cache.E_FRAMELOADER );
- int nContentHandlers = m_aDataSet.m_aCache.getItemCount(Cache.E_CONTENTHANDLER);
-
- // generate all type fragments
- m_aDataSet.m_aDebug.setGlobalInfo("generate type fragments ...");
- java.util.ArrayList lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_TYPE);
- java.util.Enumeration it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_TYPE, (String)it.nextElement(), m_aDataSet.m_aFragmentDirTypes);
- nTypes -= lNames.size();
-
- // generate filter fragments for the writer module
- m_aDataSet.m_aDebug.setGlobalInfo("generate filter fragments ...");
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module writer ...");
- java.util.HashMap rRequestedProps = new java.util.HashMap();
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.text.TextDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSWriter);
- nFilters -= lNames.size();
-
- // generate filter fragments for the writer/web module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module writer/web ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.text.WebDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSWeb);
- nFilters -= lNames.size();
-
- // generate filter fragments for the writer/global module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module writer/global ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.text.GlobalDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSGlobal);
- nFilters -= lNames.size();
-
- // generate filter fragments for the calc module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module calc ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.sheet.SpreadsheetDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSCalc);
- nFilters -= lNames.size();
-
- // generate filter fragments for the draw module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module draw ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.drawing.DrawingDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSDraw);
- nFilters -= lNames.size();
-
- // generate filter fragments for the impress module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module impress ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.presentation.PresentationDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSImpress);
- nFilters -= lNames.size();
-
- // generate filter fragments for the chart module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module chart ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.chart2.ChartDocument");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSChart);
- nFilters -= lNames.size();
-
- // generate filter fragments for the math module
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor module math ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "com.sun.star.formula.FormulaProperties");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleSMath);
- nFilters -= lNames.size();
-
- // generate fragments for 3rdParty or unspecified (may graphics) filters!
- m_aDataSet.m_aDebug.setGlobalInfo("\tfor unknown modules ...");
- rRequestedProps.put(Cache.PROPNAME_DOCUMENTSERVICE, "");
- lNames = m_aDataSet.m_aCache.getMatchedItemNames(Cache.E_FILTER, rRequestedProps);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FILTER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirModuleOthers);
- nFilters -= lNames.size();
-
- // generate all detect service fragments
- m_aDataSet.m_aDebug.setGlobalInfo("generate detect service fragments ...");
- lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_DETECTSERVICE);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_DETECTSERVICE, (String)it.nextElement(), m_aDataSet.m_aFragmentDirDetectServices);
- nDetectServices -= lNames.size();
-
- // generate all frame loader fragments
- m_aDataSet.m_aDebug.setGlobalInfo("generate frame loader fragments ...");
- lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_FRAMELOADER);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_FRAMELOADER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirFrameLoaders);
- nFrameLoaders -= lNames.size();
-
- // generate all content handler fragments
- m_aDataSet.m_aDebug.setGlobalInfo("generate content handler fragments ...");
- lNames = m_aDataSet.m_aCache.getItemNames(Cache.E_CONTENTHANDLER);
- it = lNames.elements();
- while(it.hasMoreElements())
- generateXMLFragment(Cache.E_CONTENTHANDLER, (String)it.nextElement(), m_aDataSet.m_aFragmentDirContentHandlers);
- nContentHandlers -= lNames.size();
-
- // check if all cache items was handled
- if (
- (nTypes != 0) ||
- (nFilters != 0) ||
- (nDetectServices != 0) ||
- (nFrameLoaders != 0) ||
- (nContentHandlers != 0)
- )
- {
- StringBuffer sStatistic = new StringBuffer(256);
- sStatistic.append("some cache items seems to be not transformed:\n");
- sStatistic.append(nTypes +" unhandled types\n" );
- sStatistic.append(nFilters +" unhandled filters\n" );
- sStatistic.append(nDetectServices +" unhandled detect services\n");
- sStatistic.append(nFrameLoaders +" unhandled frame loader\n" );
- sStatistic.append(nContentHandlers+" unhandled content handler\n");
- throw new java.lang.Exception(sStatistic.toString());
- }
- }
-
-
-
- /** generate a xml fragment file from the specified cache item.
- *
- * @param eItemType
- * specify, which sub container of the cache must be used
- * to locate the right item.
- *
- * @param sItemName
- * the name of the cache item inside the specified sub container.
- *
- * @param aOutDir
- * output directory.
- *
- * @throw [java.lang.Exception]
- * if the fragment file already exists or could not be created
- * successfully.
- */
- private void generateXMLFragment(int eItemType,
- String sItemName,
- java.io.File aOutDir )
- throws java.lang.Exception
- {
- String sFileName = FileHelper.convertName2FileName(sItemName);
- String sXML = m_aDataSet.m_aCache.getItemAsXML(eItemType, sItemName, m_aDataSet.m_nFormat);
- java.io.File aFile = new java.io.File(aOutDir, sFileName+m_aDataSet.m_sFragmentExtension);
-
- if (aFile.exists())
- throw new java.lang.Exception("fragment["+eItemType+", \""+sItemName+"\"] file named \""+aFile.getPath()+"\" already exists.");
-
- java.io.FileOutputStream aStream = new java.io.FileOutputStream(aFile);
- java.io.OutputStreamWriter aWriter = new java.io.OutputStreamWriter(aStream, m_aDataSet.m_sEncoding);
- aWriter.write(sXML, 0, sXML.length());
- aWriter.flush();
- aWriter.close();
-
- m_aDataSet.m_aDebug.setDetailedInfo("fragment["+eItemType+", \""+sItemName+"\"] => \""+aFile.getPath()+"\" ... OK");
- }
-
-
-
- /** create all needed directory structures.
- *
- * First it try to clear old structures and
- * create new ones afterwards.
- *
- * @throw [java.lang.Exception]
- * if some of the needed structures
- * could not be created successfully.
- */
- private void createDirectoryStructures()
- throws java.lang.Exception
- {
- m_aDataSet.m_aDebug.setGlobalInfo("create needed directory structures ...");
-
- // delete simple files only; no directories!
- // Because this tool may run inside
- // a cvs environment its not a godd idea to do so.
- boolean bFilesOnly = false;
- FileHelper.makeDirectoryEmpty(m_aDataSet.m_aOutDir, bFilesOnly);
-
- if (
- (!m_aDataSet.m_aFragmentDirTypes.exists() && !m_aDataSet.m_aFragmentDirTypes.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirFilters.exists() && !m_aDataSet.m_aFragmentDirFilters.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirDetectServices.exists() && !m_aDataSet.m_aFragmentDirDetectServices.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirFrameLoaders.exists() && !m_aDataSet.m_aFragmentDirFrameLoaders.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirContentHandlers.exists() && !m_aDataSet.m_aFragmentDirContentHandlers.mkdir()) ||
- (!m_aDataSet.m_aFragmentDirModuleSWriter.exists() && !m_aDataSet.m_aFragmentDirModuleSWriter.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSWeb.exists() && !m_aDataSet.m_aFragmentDirModuleSWeb.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSGlobal.exists() && !m_aDataSet.m_aFragmentDirModuleSGlobal.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSCalc.exists() && !m_aDataSet.m_aFragmentDirModuleSCalc.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSDraw.exists() && !m_aDataSet.m_aFragmentDirModuleSDraw.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSImpress.exists() && !m_aDataSet.m_aFragmentDirModuleSImpress.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSMath.exists() && !m_aDataSet.m_aFragmentDirModuleSMath.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleSChart.exists() && !m_aDataSet.m_aFragmentDirModuleSChart.mkdir() ) ||
- (!m_aDataSet.m_aFragmentDirModuleOthers.exists() && !m_aDataSet.m_aFragmentDirModuleOthers.mkdir() )
- )
- {
- throw new java.lang.Exception("some directory structures does not exists and could not be created successfully.");
- }
- }
-}
diff --git a/filter/source/config/tools/split/SplitterData.java b/filter/source/config/tools/split/SplitterData.java
deleted file mode 100644
index 7160c125d770..000000000000
--- a/filter/source/config/tools/split/SplitterData.java
+++ /dev/null
@@ -1,78 +0,0 @@
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-package com.sun.star.filter.config.tools.split;
-
-
-
-import java.lang.*;
-import java.io.*;
-import com.sun.star.filter.config.tools.utils.*;
-
-
-
-/**
- * Data container for class Splitter.
- *
- *
- */
-public class SplitterData
-{
- /** can be used to generate some debug output. */
- public Logger m_aDebug;
-
- /** contains all configuration structures, for which the xml
- fragments should be generated. */
- public Cache m_aCache;
-
- /** specify the output xml format. */
- public int m_nFormat;
-
- /** specify the encoding for the output xml files. */
- public String m_sEncoding;
-
- /** directory to generate some generic views. */
- public java.io.File m_aOutDir;
-
- /** directories to generate all xml fragments there.
- * Must be relative to "m_aOutDir"! */
- public java.io.File m_aFragmentDirTypes;
- public java.io.File m_aFragmentDirFilters;
- public java.io.File m_aFragmentDirDetectServices;
- public java.io.File m_aFragmentDirFrameLoaders;
- public java.io.File m_aFragmentDirContentHandlers;
-
- /** enable/disable grouping of filters by its application modules. */
- public boolean m_bSeparateFiltersByModule;
-
- /** directories to group all filter fragments ... if requested.
- * Must be relative to "m_aOutDir/m_aFragmentDirFilters" and
- * will be used only, if "m_bSeparateFiltersByModule" is set to true. */
- public java.io.File m_aFragmentDirModuleSWriter;
- public java.io.File m_aFragmentDirModuleSWeb;
- public java.io.File m_aFragmentDirModuleSGlobal;
- public java.io.File m_aFragmentDirModuleSCalc;
- public java.io.File m_aFragmentDirModuleSDraw;
- public java.io.File m_aFragmentDirModuleSImpress;
- public java.io.File m_aFragmentDirModuleSMath;
- public java.io.File m_aFragmentDirModuleSChart;
- public java.io.File m_aFragmentDirModuleOthers;
-
- /** file extension for generated xml fragments. */
- public String m_sFragmentExtension;
-}