You can subscribe to this list here.
2003 |
Jan
|
Feb
(14) |
Mar
(107) |
Apr
(211) |
May
(93) |
Jun
(158) |
Jul
(159) |
Aug
(368) |
Sep
(188) |
Oct
(151) |
Nov
(115) |
Dec
(98) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(25) |
Feb
|
Mar
(33) |
Apr
(28) |
May
(116) |
Jun
(2) |
Jul
(117) |
Aug
(19) |
Sep
(9) |
Oct
(2) |
Nov
|
Dec
(4) |
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(9) |
Dec
|
2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(267) |
Sep
|
Oct
|
Nov
(6) |
Dec
(512) |
2008 |
Jan
(187) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: bruce m. <tr...@us...> - 2004-07-23 22:24:23
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8089/modules/core/src/com/babeldoc/core/journal Added Files: package.html Log Message: Added and updated the package.html files. --- NEW FILE: package.html --- <body> <h2>Introduction</h2> <STRONG>Babeldoc</STRONG> can log all operations to a journal. This journal has all the information that will allow a user to trace and possible recreate operations. The fundamental context object for journalling is the JournalTicket. This ticket is passed around from operation to operation tracks itself. <h2>JournalFactory</h2> The singleton JournalFactory provides the entry point to finding the IJournalFactory implementation. This is configured from the journal/config.properties configuration. <h2>IJournal and Journal</h2> The <code>Journal</code> class is the primary interface into the journal. The <code>Journal</code> class is abstract and the actual implementation needs to be made by the implementation provided by the JournalFactory. The <code>Journal</code> class has lots of functionality and it only relies on implementing classes to provide limited functionality. The operations that are permitted are encapsulated in the <code>JournalOperation</code> class. <h2>Default journal Implementation</h2> The default journal implementation is based on files and directories in a filesystem. This has the advantage of being relatively fast but slow to query. <h2>Querying the journal</h2> A journal that does not support querying is not very useful. The Journal classes support a limited set of query functionality. All journal queries start with the <CODE>JournalQuery</CODE> class. This encapsulates the query information and also provides some information about how the results get processed. The results of a query on the journal is one or more <code>QueryTicket</code> objects. </body> |
From: bruce m. <tr...@us...> - 2004-07-23 22:24:22
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8089/modules/core/src/com/babeldoc/core/config Added Files: package.html Log Message: Added and updated the package.html files. --- NEW FILE: package.html --- <body> <h2>Introduction</h2> <STRONG>Babeldoc</STRONG> relies on structured configuration properties and this package has all the interfaces and the services to handle this. The <code>ConfigService</code> class provides most of what most developers need, especially the <code>getString</code> method. <h2>Default Configuration Implementation</h2> The default configuration implementation is performed by the <code>LightConfiguration</code> classes. This basically loads the configurations out of property files obtained from the resource loader. This resource loader has the very useful function of merging propertie files together (overlaying) them so that changes in subsequent modules properties files overlay those in more fundamental modules (based on dependency order). This allows for the incremental configuration that is fundamental to <strong>Babeldoc</strong> <H2>Other configuration implementations</H2> The default configuration implementation can be overridden if a system property is found: <code>babel.config</code>. The value of this property is the fully qualified name of a class that is derived from the IConfigService interface. This new configuration method can allow for the storage of configuration properties in databases, LDAP or whereever. </body> |
From: bruce m. <tr...@us...> - 2004-07-23 22:12:59
|
Update of /cvsroot/babeldoc/babeldoc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5004 Modified Files: build.bat build.xml Log Message: Removed some annoyances... Index: build.xml =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/build.xml,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** build.xml 21 Jul 2004 23:02:35 -0000 1.18 --- build.xml 23 Jul 2004 22:12:50 -0000 1.19 *************** *** 186,190 **** name="build" depends="depends"> ! <echo message="${build.compiler}"/> <available file="./build" type="dir" property="setup.done"/> <fail message="Setup has not been run - run 'build setup' first" unless="setup.done"/> --- 186,190 ---- name="build" depends="depends"> ! <!--<echo message="${build.compiler}"/>--> <available file="./build" type="dir" property="setup.done"/> <fail message="Setup has not been run - run 'build setup' first" unless="setup.done"/> *************** *** 205,209 **** <fail message="Setup has not been run - run 'build setup' first" unless="setup.done"/> <moduleRunner target="deploy" modules="${babeldoc_modules}"/> ! </target> <!-- --- 205,210 ---- <fail message="Setup has not been run - run 'build setup' first" unless="setup.done"/> <moduleRunner target="deploy" modules="${babeldoc_modules}"/> ! </target> ! <!-- Index: build.bat =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/build.bat,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.bat 10 Jun 2003 15:56:34 -0000 1.2 --- build.bat 23 Jul 2004 22:12:50 -0000 1.3 *************** *** 19,23 **** for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i for %%i in ("%JALOPY_HOME%\lib\*.jar") do call "%JALOPY_HOME%\bin\lcp.bat" %%i ! echo %LOCALCLASSPATH% if "%JAVA_HOME%" == "" goto noJavaHome --- 19,23 ---- for %%i in ("%ANT_HOME%\lib\*.jar") do call "%ANT_HOME%\bin\lcp.bat" %%i for %%i in ("%JALOPY_HOME%\lib\*.jar") do call "%JALOPY_HOME%\bin\lcp.bat" %%i ! rem echo %LOCALCLASSPATH% if "%JAVA_HOME%" == "" goto noJavaHome |
From: bruce m. <tr...@us...> - 2004-07-23 03:32:18
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/bin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27843/modules/init/bin Modified Files: babeldoc babeldoc.bat Log Message: 1. javadoc work 2. bug fix: jvm configurations (-D etc) now getting to jvm 3. Testing adaptive classloader. Slower but supports reloading... Index: babeldoc.bat =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/bin/babeldoc.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** babeldoc.bat 8 Sep 2003 22:40:59 -0000 1.3 --- babeldoc.bat 23 Jul 2004 03:32:06 -0000 1.4 *************** *** 3,6 **** --- 3,13 ---- REM Copyright (c) 2001-2003 The Apache Software Foundation. All rights REM reserved. + REM + REM Copyright (c) 2002-2004 Babeldoc licensed under APL. + REM + REM Run babeldoc. Needs the following environment variables to be set. + REM BABELDOC_HOME :- full path to the root of the Babeldoc directory + REM BABELDOC_USER :- optional paths to local configuration dirs or jars + REM BABELDOC_CONF :- optional configuration directives if exist "%HOME%\babeldocrc_pre.bat" call "%HOME%\babeldocrc_pre.bat" *************** *** 80,84 **** rem place overriding java settings in this variable ! set BABELDOC_DEFNS=-Xbootclasspath/p:%BABELDOC_BOOTCP% set BABELDOC_CFGPATH=%BABELDOC_USER%;%BABELDOC_HOME%;. --- 87,91 ---- rem place overriding java settings in this variable ! set BABELDOC_DEFNS=-Xbootclasspath/p:%BABELDOC_BOOTCP%; %BABELDOC_CONF% set BABELDOC_CFGPATH=%BABELDOC_USER%;%BABELDOC_HOME%;. *************** *** 112,114 **** :mainEnd ! if exist "%HOME%\babeldocrc_post.bat" call "%HOME%\babeldocrc_post.bat" \ No newline at end of file --- 119,121 ---- :mainEnd ! if exist "%HOME%\babeldocrc_post.bat" call "%HOME%\babeldocrc_post.bat" Index: babeldoc =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/bin/babeldoc,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** babeldoc 8 Sep 2003 22:40:59 -0000 1.2 --- babeldoc 23 Jul 2004 03:32:06 -0000 1.3 *************** *** 4,7 **** --- 4,13 ---- # reserved. + # Run this script with the following environment variables set: + # + # BABELDOC_HOME :- full path to the root of your Babeldoc directory + # BABELDOC_USER :- paths to your configuration directory + # BABELDOC_CONF :- optional configuration directives. + # load system-wide babeldoc configuration if [ -f "/etc/babeldoc.conf" ] ; then *************** *** 116,120 **** fi ! BABELDOC_DEFNS="-Xbootclasspath/p:$BABELDOC_BOOTCP -Dbabeldoc.user=$BABELCONFIG_PATH -Dbabeldoc.cp=${CLASSPATH}" if [ -n "$CYGHOME" ]; then --- 122,126 ---- fi ! BABELDOC_DEFNS="-Xbootclasspath/p:$BABELDOC_BOOTCP -Dbabeldoc.user=$BABELCONFIG_PATH -Dbabeldoc.cp=${CLASSPATH} $BABELDOC_CONF" if [ -n "$CYGHOME" ]; then |
From: bruce m. <tr...@us...> - 2004-07-23 03:32:18
|
Update of /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27843/modules/init/src/com/babeldoc/init Modified Files: AdaptiveClassLoader.java BabeldocClassloader.java Main.java Log Message: 1. javadoc work 2. bug fix: jvm configurations (-D etc) now getting to jvm 3. Testing adaptive classloader. Slower but supports reloading... Index: Main.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/Main.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Main.java 6 Dec 2003 23:43:40 -0000 1.7 --- Main.java 23 Jul 2004 03:32:06 -0000 1.8 *************** *** 80,85 **** /** ! * Main entry point for babeldoc using a custom class loader to avoid the very ! * large classpaths that can result. */ public class Main { --- 80,87 ---- /** ! * Initial entry point for Babeldoc using a custom class loader to avoid the very ! * large classpaths that need to set for reasonably sized Java applications. This ! * class loads all the library files in the %BABELDOC_HOME/lib directory into the ! * classpath. */ public class Main { *************** *** 100,106 **** /** ! * DOCUMENT ME! * ! * @param args */ public static void main(String[] args) { --- 102,110 ---- /** ! * The starting point for commandline Babeldoc. This then ! * checks the BABELDOC_HOME variable. Gets all the jar and ! * zip files. Proceed with this. * ! * @param args command line arguments. Set in script: babeldoc.sh/.bat */ public static void main(String[] args) { *************** *** 123,129 **** * Get the urls for all the jars and zips in the library directory * ! * @param home * ! * @return */ private static File[] getLibraryFiles(String home) { --- 127,133 ---- * Get the urls for all the jars and zips in the library directory * ! * @param home path to the $BABELDOC_HOME directory * ! * @return list of zips and jars from 'lib' subdirectory */ private static File[] getLibraryFiles(String home) { *************** *** 142,150 **** } }); ! return libs; } else { System.err.println("The directory: " + fileLib + ! " does not exist or is not a directory"); } --- 146,154 ---- } }); ! return libs; } else { System.err.println("The directory: " + fileLib + ! " does not exist or is not a directory. Babeldoc cannot find its library files and is quitting now."); } *************** *** 153,161 **** /** ! * Create a URLClassLoader and then use this with the urls to the libary ! * files to start babeldoc. * ! * @param files ! * @param args */ private static void runBabeldocMain(File[] files, String[] args) { --- 157,165 ---- /** ! * Create a ClassLoader with the list of jars and zips and add them to the ! * classpath. Then call into the CORE Main method. * ! * @param files all the zip and the jar files ! * @param args command line arguments */ private static void runBabeldocMain(File[] files, String[] args) { *************** *** 193,200 **** /** ! * Setup the classloader. * * @param inFiles files discovered in the lib directory ! * @return */ private static ClassLoader setupClassLoader(File[] inFiles) { --- 197,209 ---- /** ! * Setup the particular classloader. There are two: Adaptive ! * and URLClassLoader. Configure either one ! * with the library files. ! * <br/> ! * <strong>NOTE</strong> At the end of the method, this new ! * classloader is applied to the current thread. * * @param inFiles files discovered in the lib directory ! * @return the classloader with all the library files added. */ private static ClassLoader setupClassLoader(File[] inFiles) { Index: BabeldocClassloader.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/BabeldocClassloader.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BabeldocClassloader.java 11 Jun 2003 23:34:56 -0000 1.4 --- BabeldocClassloader.java 23 Jul 2004 03:32:06 -0000 1.5 *************** *** 72,76 **** /** * The babeldoc class loader is intended as a entry point for loading babeldoc ! * specific classes. */ public class BabeldocClassloader extends URLClassLoader { --- 72,76 ---- /** * The babeldoc class loader is intended as a entry point for loading babeldoc ! * specific classes. Overrides some of the restrictions in the URLClassLoader. */ public class BabeldocClassloader extends URLClassLoader { *************** *** 79,84 **** * classes/resource from. * ! * @param urls ! * @param parent */ public BabeldocClassloader(URL[] urls, ClassLoader parent) { --- 79,84 ---- * classes/resource from. * ! * @param urls library files to initialized the loader ! * @param parent the classloader that begat this new classloader. */ public BabeldocClassloader(URL[] urls, ClassLoader parent) { *************** *** 89,93 **** * Construct with a bunch of urls to load classes/resource from. * ! * @param urls */ public BabeldocClassloader(URL[] urls) { --- 89,93 ---- * Construct with a bunch of urls to load classes/resource from. * ! * @param urls library files to initialized the loader */ public BabeldocClassloader(URL[] urls) { *************** *** 98,102 **** * Add a url to this classloader * ! * @param url */ public void addURL(URL url) { --- 98,102 ---- * Add a url to this classloader * ! * @param url library files to add to the loader. */ public void addURL(URL url) { Index: AdaptiveClassLoader.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/init/src/com/babeldoc/init/AdaptiveClassLoader.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AdaptiveClassLoader.java 8 Sep 2003 22:40:59 -0000 1.1 --- AdaptiveClassLoader.java 23 Jul 2004 03:32:06 -0000 1.2 *************** *** 1,914 **** ! package com.babeldoc.init; ! ! /* ! * This class slightly modified to allow optional resolving classes from this classloader ! * before system/ parent class loader. ! */ ! ! ! /* ! * Copyright (c) 1997-1999 The Java Apache Project. All rights reserved. [...1799 lines suppressed...] ! } ! ! return resources.elements(); ! } ! ! /** ! * Return the last modified time for a class in the ! * ClassCache. ! * ! * @throws ClassNotFoundException if class is not found ! */ ! public long lastModified(String name) throws ClassNotFoundException { ! ClassCacheEntry entry = (ClassCacheEntry) cache.get(name); ! if (entry == null) { ! throw new ClassNotFoundException("Could not find class: " + name); ! } else { ! return entry.lastModified; ! } ! } ! } |
From: bruce m. <tr...@us...> - 2004-07-21 23:16:56
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/module In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23107/modules/core/src/com/babeldoc/core/module Modified Files: package.html Log Message: fixed error in html Index: package.html =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/module/package.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** package.html 29 Aug 2003 02:03:22 -0000 1.1 --- package.html 21 Jul 2004 23:16:48 -0000 1.2 *************** *** 1,4 **** <body> ! <h2>Introduction<h2> Babeldoc has a modular build and module runtime arrangement. This package and the set of classes in it describe the modular runtime environment. --- 1,4 ---- <body> ! <h2>Introduction</h2> Babeldoc has a modular build and module runtime arrangement. This package and the set of classes in it describe the modular runtime environment. *************** *** 9,11 **** This has a single line in it that is the name of the concrete implementation of the BabeldocModule class that describes that module. This module definition class gives ! the formal name of the module as well as any modules that this module depends on. \ No newline at end of file --- 9,11 ---- This has a single line in it that is the name of the concrete implementation of the BabeldocModule class that describes that module. This module definition class gives ! the formal name of the module as well as any modules that this module depends on. |
From: bruce m. <tr...@us...> - 2004-07-21 23:13:54
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22638/modules/core/src/com/babeldoc/core/pipeline/stage Modified Files: XslTransformPipelineStage.java Log Message: Fix to a resouceloading algorithm bug. This bug stopped file resources being loaded with a relative path when the current directory is *NOT* the sames as the BABELDOC_USER environement variable. with a wrinkle for xsl pipline stage Index: XslTransformPipelineStage.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/XslTransformPipelineStage.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** XslTransformPipelineStage.java 28 May 2004 10:31:10 -0000 1.20 --- XslTransformPipelineStage.java 21 Jul 2004 23:13:46 -0000 1.21 *************** *** 179,183 **** if ("file".equals(protocol)) { ! transformer = getCachedFileTransformer(xslfile); } else { InputStream is; --- 179,183 ---- if ("file".equals(protocol)) { ! transformer = getCachedFileTransformer(url.getPath()); } else { InputStream is; |
From: bruce m. <tr...@us...> - 2004-07-21 23:07:25
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21179/modules/scanner Modified Files: build.properties Log Message: added dependency to the gui module - this needs to be fixed. This code should be migrated to the *scanner* module.?? Index: build.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/build.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** build.properties 21 May 2003 01:49:46 -0000 1.3 --- build.properties 21 Jul 2004 23:07:07 -0000 1.4 *************** *** 1,4 **** Module=scanner ! Depends=sql Jarfile=babeldoc-scanner.jar ModuleClass=com.babeldoc.scanner.module.ScannerModule --- 1,4 ---- Module=scanner ! Depends=sql gui Jarfile=babeldoc-scanner.jar ModuleClass=com.babeldoc.scanner.module.ScannerModule |
From: bruce m. <tr...@us...> - 2004-07-21 23:06:01
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20967/modules/core/src/com/babeldoc/core Modified Files: ResourceLoader.java Log Message: Fix to a resouceloading algorithm bug. This bug stopped file resources being loaded with a relative path when the current directory is *NOT* the sames as the BABELDOC_USER environement variable. Index: ResourceLoader.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/ResourceLoader.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** ResourceLoader.java 17 Sep 2003 16:40:44 -0000 1.9 --- ResourceLoader.java 21 Jul 2004 23:05:50 -0000 1.10 *************** *** 296,301 **** } ! //LogService.getInstance().logDebug("[getUrl] url: "+url+" for name: "+name); ! //System.out.println("url: "+url); return url; } --- 296,301 ---- } ! LogService.getInstance().logDebug("[getUrl] url: "+url+" for name: "+name); ! // System.out.println("url: "+url); return url; } |
From: bruce m. <tr...@us...> - 2004-07-21 23:02:43
|
Update of /cvsroot/babeldoc/babeldoc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20362 Modified Files: build.xml Log Message: added property that allows paths to external modules to be passed to the module finder. Index: build.xml =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/build.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** build.xml 6 Dec 2003 00:04:56 -0000 1.17 --- build.xml 21 Jul 2004 23:02:35 -0000 1.18 *************** *** 10,18 **** <property file="build.properties"/> ! <!-- Load the local customizations --> ! <property file="local.properties"/> <!-- Set the base directory of the overall build --> ! <property name="base_dir" value="${basedir}"/> <!-- --- 10,18 ---- <property file="build.properties"/> ! <!-- Load the local customizations --> ! <property file="local.properties"/> <!-- Set the base directory of the overall build --> ! <property name="base_dir" value="${basedir}"/> <!-- *************** *** 119,123 **** <modulefinder ! moduleSearchPath="${modules}" modulesProperty="babeldoc_modules" subdirectories="src build config" --- 119,123 ---- <modulefinder ! moduleSearchPath="${modules} ${extra.modules}" modulesProperty="babeldoc_modules" subdirectories="src build config" |
From: bruce m. <tr...@us...> - 2004-07-21 04:10:20
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7682/modules/core/src/com/babeldoc/core/pipeline/feeder Modified Files: FeederConfigInfo.java FeederFactory.java Log Message: reformatting Index: FeederConfigInfo.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/FeederConfigInfo.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FeederConfigInfo.java 12 Aug 2003 23:44:44 -0000 1.1 --- FeederConfigInfo.java 21 Jul 2004 04:10:10 -0000 1.2 *************** *** 1,96 **** ! /* ==================================================================== ! * The Apache Software License, Version 1.1 ! * ! * Copyright (c) 2000 The Apache Software Foundation. All rights ! * reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ ! * ! */ ! package com.babeldoc.core.pipeline.feeder; ! ! import com.babeldoc.core.option.ConfigInfo; ! ! import java.util.Collection; ! import java.util.ArrayList; ! ! /** ! * Setup the feeder configuration information ! */ ! public abstract class FeederConfigInfo ! extends ConfigInfo { ! ! /** ! * This method returns options that are general to all components (there arent any) ! * ! * @return comments ! */ ! public Collection getGeneralOptions() { ! return new ArrayList(); ! } ! ! /** ! * Return an xmlized version of the of the config info ! * ! * @return String of configuration information. ! */ ! public String toXml() { ! return ""; ! } ! } --- 1 ---- ! /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header$ * $DateTime$ * $Author$ * */ package com.babeldoc.core.pipeline.feeder; import com.babeldoc.core.option.ConfigInfo; import java.util.Collection; import java.util.ArrayList; /** * Setup the feeder configuration information */ public abstract class FeederConfigInfo extends ConfigInfo { /** * This method returns options that are general to all components (there arent any) * * @return comments */ public Collection getGeneralOptions() { return new ArrayList(); } /** * Return an xmlized version of the of the config info * * @return String of configuration information. */ public String toXml() { return ""; } } \ No newline at end of file Index: FeederFactory.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/FeederFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FeederFactory.java 12 Aug 2003 23:44:44 -0000 1.3 --- FeederFactory.java 21 Jul 2004 04:10:10 -0000 1.4 *************** *** 1,242 **** ! /* ==================================================================== ! * The Apache Software License, Version 1.1 ! * ! * Copyright (c) 2000 The Apache Software Foundation. All rights ! * reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $Author$ ! * ! */ ! package com.babeldoc.core.pipeline.feeder; ! ! import com.babeldoc.core.GeneralException; ! import com.babeldoc.core.LogService; ! import com.babeldoc.core.option.IConfigData; ! import com.babeldoc.core.option.ConfigData; ! import com.babeldoc.core.service.ServiceFactory; ! import com.babeldoc.core.service.ServiceException; ! ! import java.util.Collection; ! import java.util.Map; ! import java.util.HashMap; ! ! /** ! * The feeder factory provides an easy way to feed documents into the pipelines in ! * babeldoc. There exists a number of "feeders" which are implemented in a number of ! * generally useful ways. Each of the feeders have a name and are stored in the ! * feeder/config configuration file. Each feeder has to have a type associated with it. ! * There are two defined feeders in the system: sync & async. The sync feeder ! * synchronously feeds each document to the pipeline. The async feeder uses a multithread ! * queue with producer/collector pattern to separate the feedign from thr processing. ! * ! * Please look at the process methods which provide a number of generally useful and easy ! * methods of getting data into the system. ! * ! * @author bmcdonald ! * @version 1.1 ! */ ! public class FeederFactory { ! private static FeederFactory instance; ! ! /** List of feeders loaded by the factory */ ! private Map feeders; ! ! public static final String FEEDER_CONFIG = "feeder/config"; ! public static final String FEEDER_TYPE = "type"; ! public static final String SERVICE_FEEDER = "Feeder."; ! public static final String SYNC = "sync"; ! public static final String ASYNC = "async"; ! ! /** ! * Private constructor - this must be instantiated through the feeder factory ! * getInstance method ! */ ! private FeederFactory() { ! feeders = new HashMap(); ! } ! ! /** ! * Get the current instance of this singleton class. If there is not a current ! * implementation, create a new implementation. ! * ! * @return ! */ ! public static FeederFactory getInstance() { ! if(instance==null) { ! instance = new FeederFactory(); ! } ! return instance; ! } ! ! /** ! * Get the feeder with this name. If this feeder does not exist, then ! * create it. This is done by reading the feeder/config configuration file. ! * This file is arranged as follows: ! * ! * feeder-name.type=Synchonous|Asynchronous|etc ! * feeder-name.cfg-1=value-1 ! * ... ! * feeder-name.cfg-n=value-n ! * ! * @param name ! * @return ! * @throws ServiceException ! */ ! public IFeeder getFeeder(String name) ! throws GeneralException { ! // System.out.println("Getting feeder)"); ! IFeeder feeder = (IFeeder)feeders.get(name); ! if(feeder==null) { ! // System.out.println("Creating feeder)"); ! IConfigData feederConfig = ConfigData.getConfigData("root", FEEDER_CONFIG).getChild(name); ! if(feederConfig!=null) { ! // System.out.println("config data not null: "+feederConfig.toString()); ! String feederType = feederConfig.getValue(FEEDER_TYPE); ! ! feeder = (IFeeder)(ServiceFactory.getService(SERVICE_FEEDER+feederType)); ! feeder.initialize(feederConfig); ! } ! } ! return feeder; ! } ! ! /** ! * Feed the document according to the name of the feeder. This method takes a ! * feed document. ! * ! * @param name feeder name ! * @param feedDoc document to feed ! * @return ! * @throws GeneralException ! */ ! public Collection process(String name, FeedDocument feedDoc) ! throws GeneralException { ! return getFeeder(name).process(feedDoc); ! } ! ! /** ! * Feed the document according to the name of the feeder. This method takes ! * all the data to construct a full feed document ! * ! * @param name feeder name ! * @param pipelineName name of the pipeline ! * @param data array of bytes that is the document to process ! * @param attributes map of attributes ! * @param isBinary sets the isBinary flag on the document ! * @param noJournal allows for the journal to be turned on or off for this processing. ! * @return ! * @throws GeneralException ! */ ! public Collection process(String name, String pipelineName, byte[] data, Map attributes, ! boolean isBinary, boolean noJournal) ! throws GeneralException { ! return getFeeder(name).process( ! new FeedDocument(pipelineName, data, attributes, isBinary, noJournal)); ! } ! ! /** ! * Feed the document according to the name of the feeder. This method constructs ! * a feed document with the data BUT assumes that the data is NOT binary and ! * that the journalling is ENABLED. ! * ! * @param name feeder name ! * @param pipelineName name of the pipeline ! * @param data array of bytes that is the document to process ! * @param attributes map of attributes ! * @return ! * @throws GeneralException ! */ ! public Collection process(String name, String pipelineName, byte[] data, Map attributes) ! throws GeneralException { ! return getFeeder(name).process( ! new FeedDocument(pipelineName, data, attributes, false, false)); ! } ! ! /** ! * Feed the document according to the name of the feeder. This method constructs ! * a feed document with the data BUT assumes that the data is NOT binary and ! * that the journalling is ENABLED and NO attributes. ! * ! * @param name feeder name ! * @param pipelineName name of the pipeline ! * @param data array of bytes that is the document to process ! * @return ! * @throws GeneralException ! */ ! public Collection process(String name, String pipelineName, byte[] data) ! throws GeneralException { ! return getFeeder(name).process( ! new FeedDocument(pipelineName, data, new HashMap(), false, false)); ! } ! ! /** ! * Terminate the named feeder. This stops the feeder and then removes it from ! * the list of loaded feeders. This means that any subsequent references to ! * this feeder will result in a completely new implementation being created. ! * ! * @param name ! */ ! public void terminate(String name) { ! try { ! getFeeder(name).terminate(); ! feeders.remove(name); ! } catch (GeneralException e) { ! LogService.getInstance().logError(e); ! } ! } ! } --- 1 ---- ! /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header$ * $Author$ * */ package com.babeldoc.core.pipeline.feeder; import com.babeldoc.core.GeneralException; import com.babeldoc.core.LogService; import com.babeldoc.core.option.IConfigData; import com.babeldoc.core.option.ConfigData; import com.babeldoc.core.service.ServiceFactory; import com.babeldoc.core.service.ServiceException; import java.util.Collection; import java.util.Map; import java.util.HashMap; /** * The feeder factory provides an easy way to feed documents into the pipelines in * babeldoc. There exists a number of "feeders" which are implemented in a number of * generally useful ways. Each of the feeders have a name and are stored in the * feeder/config configuration file. Each feeder has to have a type associated with it. * There are two defined feeders in the system: sync & async. The sync feeder * synchronously feeds each document to the pipeline. The async feeder uses a multithread * queue with producer/collector pattern to separate the feedign from thr processing. * * Please look at the process methods which provide a number of generally useful and easy * methods of getting data into the system. * * @author bmcdonald * @version 1.1 */ public class FeederFactory { private static FeederFactory instance; /** List of feeders loaded by the factory */ private Map feeders; public static final String FEEDER_CONFIG = "feeder/config"; public static final String FEEDER_TYPE = "type"; public static final String SERVICE_FEEDER = "Feeder."; public static final String SYNC = "sync"; public static final String ASYNC = "async"; /** * Private constructor - this must be instantiated through the feeder factory * getInstance method */ private FeederFactory() { feeders = new HashMap(); } /** * Get the current instance of this singleton class. If there is not a current * implementation, create a new implementation. * * @return */ public static FeederFactory getInstance() { if (instance == null) { instance = new FeederFactory(); } return instance; } /** * Get the feeder with this name. If this feeder does not exist, then * create it. This is done by reading the feeder/config configuration file. * This file is arranged as follows: * * feeder-name.type=Synchonous|Asynchronous|etc * feeder-name.cfg-1=value-1 * ... * feeder-name.cfg-n=value-n * * @param name * @return * @throws ServiceException */ public IFeeder getFeeder(String name) throws GeneralException { // System.out.println("Getting feeder)"); IFeeder feeder = (IFeeder) feeders.get(name); if (feeder == null) { // System.out.println("Creating feeder)"); IConfigData feederConfig = ConfigData.getConfigData("root", FEEDER_CONFIG).getChild(name); if (feederConfig != null) { // System.out.println("config data not null: "+feederConfig.toString()); String feederType = feederConfig.getValue(FEEDER_TYPE); feeder = (IFeeder) (ServiceFactory .getService(SERVICE_FEEDER + feederType)); feeder.initialize(feederConfig); } } return feeder; } /** * Feed the document according to the name of the feeder. This method takes a * feed document. * * @param name feeder name * @param feedDoc document to feed * @return * @throws GeneralException */ public Collection process(String name, FeedDocument feedDoc) throws GeneralException { return getFeeder(name).process(feedDoc); } /** * Feed the document according to the name of the feeder. This method takes * all the data to construct a full feed document * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @param attributes map of attributes * @param isBinary sets the isBinary flag on the document * @param noJournal allows for the journal to be turned on or off for this processing. * @return * @throws GeneralException */ public Collection process( String name, String pipelineName, byte[] data, Map attributes, boolean isBinary, boolean noJournal) throws GeneralException { return getFeeder(name).process( new FeedDocument( pipelineName, data, attributes, isBinary, noJournal)); } /** * Feed the document according to the name of the feeder. This method constructs * a feed document with the data BUT assumes that the data is NOT binary and * that the journalling is ENABLED. * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @param attributes map of attributes * @return * @throws GeneralException */ public Collection process( String name, String pipelineName, byte[] data, Map attributes) throws GeneralException { return getFeeder(name).process( new FeedDocument(pipelineName, data, attributes, false, false)); } /** * Feed the document according to the name of the feeder. This method constructs * a feed document with the data BUT assumes that the data is NOT binary and * that the journalling is ENABLED and NO attributes. * * @param name feeder name * @param pipelineName name of the pipeline * @param data array of bytes that is the document to process * @return * @throws GeneralException */ public Collection process(String name, String pipelineName, byte[] data) throws GeneralException { return getFeeder(name).process( new FeedDocument(pipelineName, data, new HashMap(), false, false)); } /** * Terminate the named feeder. This stops the feeder and then removes it from * the list of loaded feeders. This means that any subsequent references to * this feeder will result in a completely new implementation being created. * * @param name */ public void terminate(String name) { try { getFeeder(name).terminate(); feeders.remove(name); } catch (GeneralException e) { LogService.getInstance().logError(e); } } } \ No newline at end of file |
From: bruce m. <tr...@us...> - 2004-07-21 04:08:57
|
Update of /cvsroot/babeldoc/babeldoc/support/src/com/babeldoc/bootstrap/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7558/support/src/com/babeldoc/bootstrap/ant Modified Files: ModuleFinder.java ModuleRunnerTask.java PathTrimmer.java Log Message: reformatting Index: ModuleFinder.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/support/src/com/babeldoc/bootstrap/ant/ModuleFinder.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ModuleFinder.java 29 Aug 2003 21:16:08 -0000 1.7 --- ModuleFinder.java 21 Jul 2004 04:08:48 -0000 1.8 *************** *** 1,24 **** ! /* ! * $Header$ ! * $DateTime$ * * ! * Babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ ! package com.babeldoc.bootstrap.ant; --- 1,68 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ ! package com.babeldoc.bootstrap.ant; Index: ModuleRunnerTask.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/support/src/com/babeldoc/bootstrap/ant/ModuleRunnerTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** ModuleRunnerTask.java 24 Jun 2003 03:27:13 -0000 1.1 --- ModuleRunnerTask.java 21 Jul 2004 04:08:48 -0000 1.2 *************** *** 1,22 **** ! /* ! * $Header$ ! * $DateTime$ * * ! * Babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.babeldoc.bootstrap.ant; --- 1,66 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ package com.babeldoc.bootstrap.ant; Index: PathTrimmer.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/support/src/com/babeldoc/bootstrap/ant/PathTrimmer.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PathTrimmer.java 24 Jun 2003 03:27:13 -0000 1.2 --- PathTrimmer.java 21 Jul 2004 04:08:48 -0000 1.3 *************** *** 1,22 **** ! /* ! * $Header$ ! * $DateTime$ * * ! * Babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.babeldoc.bootstrap.ant; --- 1,66 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ package com.babeldoc.bootstrap.ant; |
From: bruce m. <tr...@us...> - 2004-07-21 03:59:04
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/option In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6233/modules/core/src/com/babeldoc/core/option Modified Files: IConfigData.java IConfigDataContainer.java Log Message: reformatting Index: IConfigDataContainer.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/option/IConfigDataContainer.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** IConfigDataContainer.java 13 Sep 2003 03:33:43 -0000 1.1 --- IConfigDataContainer.java 21 Jul 2004 03:58:55 -0000 1.2 *************** *** 1,86 **** ! /* ==================================================================== ! * The Apache Software License, Version 1.1 ! * ! * Copyright (c) 2000 The Apache Software Foundation. All rights ! * reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ ! * ! */ ! package com.babeldoc.core.option; ! ! /** ! * Interface to classes that manage configuration data objects ! * ! * @author bmcdonald ! * @version 1.1 ! */ ! public interface IConfigDataContainer { ! /** ! * @return get the configuration data ! */ ! public IConfigData getConfigData(); ! ! /** ! * Set the configuration data for this object ! * ! * @param configData the configuration data ! */ ! public void setConfigData(IConfigData configData); ! } --- 1 ---- ! /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header$ * $DateTime$ * $Author$ * */ package com.babeldoc.core.option; /** * Interface to classes that manage configuration data objects * * @author bmcdonald * @version 1.1 */ public interface IConfigDataContainer { /** * @return get the configuration data */ public IConfigData getConfigData(); /** * Set the configuration data for this object * * @param configData the configuration data */ public void setConfigData(IConfigData configData); } \ No newline at end of file Index: IConfigData.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/option/IConfigData.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** IConfigData.java 13 Sep 2003 03:33:43 -0000 1.2 --- IConfigData.java 21 Jul 2004 03:58:55 -0000 1.3 *************** *** 1,142 **** ! /* ==================================================================== ! * The Apache Software License, Version 1.1 ! * ! * Copyright (c) 2000 The Apache Software Foundation. All rights ! * reserved. ! * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: ! * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. ! * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ ! * ! */ ! package com.babeldoc.core.option; ! ! import com.babeldoc.core.INamed; ! ! import java.io.Serializable; ! import java.util.Set; ! ! /** ! * Interface for the Configuration Data that is widely used throughout babeldoc. ! * This basically a tree structure. Each node is a IConfigData object. Each node ! * can also have a string value. ! * ! * @author bmcdonald ! * @version 1.1 ! * ! */ ! public interface IConfigData ! extends Serializable, INamed { ! ! /** ! * Return the number of children of this node ! * ! * @return number of childre or 0 if this is a leaf node ! */ ! public int getNumberChildren(); ! ! /** ! * Set the value of this node ! * ! * @param value string ! */ ! public void setValue(String value); ! ! /** ! * Get the value of this node ! * ! * @return value string ! */ ! public String getValue(); ! ! /** ! * getChild the named child - can return null of the child does not exist ! * ! * @param name ! * @return ! */ ! IConfigData getChild(String name); ! ! /** ! * Get the set of children names ! * ! * @return set of children names ! */ ! Set getChildrenNameSet(); ! ! /** ! * Add the child to the list of children ! * ! * @param configData ! */ ! void addChild(IConfigData configData); ! ! /** ! * remove the named child from the list of children of this ! * configuation data object ! * ! * @param configData child to remove ! */ ! void removeChild(IConfigData configData); ! /** ! * Get the value of the child object ! * ! * @param childName name of the child object ! * @return the value of the child object ! */ ! public String getValue(String childName); ! } --- 1 ---- ! /* ==================================================================== * The Apache Software License, Version 1.1 * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Apache" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact ap...@ap.... * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * * Portions of this software are based upon public domain software * originally written at the National Center for Supercomputing Applications, * University of Illinois, Urbana-Champaign. * ==================================================================== * * Babeldoc: The Universal Document Processor * * $Header$ * $DateTime$ * $Author$ * */ package com.babeldoc.core.option; import com.babeldoc.core.INamed; import java.io.Serializable; import java.util.Set; /** * Interface for the Configuration Data that is widely used throughout babeldoc. * This basically a tree structure. Each node is a IConfigData object. Each node * can also have a string value. * * @author bmcdonald * @version 1.1 * */ public interface IConfigData extends Serializable, INamed { /** * Return the number of children of this node * * @return number of childre or 0 if this is a leaf node */ public int getNumberChildren(); /** * Set the value of this node * * @param value string */ public void setValue(String value); /** * Get the value of this node * * @return value string */ public String getValue(); /** * getChild the named child - can return null of the child does not exist * * @param name * @return */ IConfigData getChild(String name); /** * Get the set of children names * * @return set of children names */ Set getChildrenNameSet(); /** * Add the child to the list of children * * @param configData */ void addChild(IConfigData configData); /** * remove the named child from the list of children of this * configuation data object * * @param configData child to remove */ void removeChild(IConfigData configData); /** * Get the value of the child object * * @param childName name of the child object * @return the value of the child object */ public String getValue(String childName); } \ No newline at end of file |
From: easter <ea...@fr...> - 2004-07-07 12:16:33
|
Thanks, this is exactly what I was looking for. Guess I should know better than to look in the examples, but I was having troubling generating the javadocs, and the main babeldoc web page gives a very nice, but (for me) useless personal photo album. Anyway, got the javadoc working now, so will try work out an example based on the docs in the API. Cheers Bill Harrelson wrote: >Sure, use the Router stage to test the result of step a and determine >whether step b or c should be the next step. > > > >From: easter <ea...@fr...> >To: bab...@li... >Subject: [Babeldoc-devel] How best to implement a conditional pipeline? >Date sent: Wed, 07 Jul 2004 10:21:08 +0200 > > > >>Hi all, >> >>I have no problem creating static pipelines etc, but now require to do >>something a little more realistic. >>Essentially, given 3 stages a,b and c, I need to route the pipeline >>depending on some value or attribute returned by pipeline a: >> >> b >> / >>a >> \ >> c >> >> >>For example, if a = language identifier, and b = french2english >>translator and c = italian2english translator, I could then throw either >>french or italian documents >>into the pipeline. Whether the document is routed to b or c depends on >>the results of the stage a. the end result being that the system will >>route the document into the correct succesive stage and will always >>produce an english translation. >> >>None of the examples seem to illustrate this kind of behaviour. >>Does anyone know if there is a way to implement this kind of routing >>dynamically? >>Any input welcomed. >> >>Thanks >>E >> >> >> >>------------------------------------------------------- >>This SF.Net email sponsored by Black Hat Briefings & Training. >>Attend Black Hat Briefings & Training, Las Vegas July 24-29 - >>digital self defense, top technical experts, no vendor pitches, >>unmatched networking opportunities. Visit www.blackhat.com >>_______________________________________________ >>Babeldoc-devel mailing list >>Bab...@li... >>https://lists.sourceforge.net/lists/listinfo/babeldoc-devel >> >> > > > |
From: Bill H. <Bil...@Ac...> - 2004-07-07 11:34:04
|
Sure, use the Router stage to test the result of step a and determine whether step b or c should be the next step. From: easter <ea...@fr...> To: bab...@li... Subject: [Babeldoc-devel] How best to implement a conditional pipeline? Date sent: Wed, 07 Jul 2004 10:21:08 +0200 > Hi all, > > I have no problem creating static pipelines etc, but now require to do > something a little more realistic. > Essentially, given 3 stages a,b and c, I need to route the pipeline > depending on some value or attribute returned by pipeline a: > > b > / > a > \ > c > > > For example, if a = language identifier, and b = french2english > translator and c = italian2english translator, I could then throw either > french or italian documents > into the pipeline. Whether the document is routed to b or c depends on > the results of the stage a. the end result being that the system will > route the document into the correct succesive stage and will always > produce an english translation. > > None of the examples seem to illustrate this kind of behaviour. > Does anyone know if there is a way to implement this kind of routing > dynamically? > Any input welcomed. > > Thanks > E > > > > ------------------------------------------------------- > This SF.Net email sponsored by Black Hat Briefings & Training. > Attend Black Hat Briefings & Training, Las Vegas July 24-29 - > digital self defense, top technical experts, no vendor pitches, > unmatched networking opportunities. Visit www.blackhat.com > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- William B. Harrelson President Accordare 13A Medford Street, Arlington, MA 02474 t:781-646-2241 f:781-646-2242 Bil...@Ac... |
From: easter <ea...@fr...> - 2004-07-07 08:19:46
|
Hi all, I have no problem creating static pipelines etc, but now require to do something a little more realistic. Essentially, given 3 stages a,b and c, I need to route the pipeline depending on some value or attribute returned by pipeline a: b / a \ c For example, if a = language identifier, and b = french2english translator and c = italian2english translator, I could then throw either french or italian documents into the pipeline. Whether the document is routed to b or c depends on the results of the stage a. the end result being that the system will route the document into the correct succesive stage and will always produce an english translation. None of the examples seem to illustrate this kind of behaviour. Does anyone know if there is a way to implement this kind of routing dynamically? Any input welcomed. Thanks E |
From: dominique p. <dom...@fr...> - 2004-07-05 12:12:55
|
Bonjour y a t il des utilisateurs fran=E7ais de babeldoc. Cordialement. |
From: Stefan K. <ste...@co...> - 2004-07-02 17:18:28
|
Hello, just want let you know, I have written an technical article about the new integration approach named "Enterprise Service Bus" (ESB). The "babeldoc" project is mentioned as an open-source framework togehter with the Quartz Enterprise Scheduler that can be used to build an ESB. Surprisingly, I have done this in a customer project ;-) The article will be published mid-july in the "iX" (http://www.heise.de/ix), a wide-spread technical magazine in german-speeking Europe. http://www.heise.de/ix/vorschau.shtml gives a little preview - and a good pratice in reading german. Cheers, Stefan |
From: Dejan K. <de...@us...> - 2004-07-02 15:25:23
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/dummy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26126/babeldoc/modules/core/src/com/babeldoc/core/journal/dummy Modified Files: DummyJournal.java Log Message: Index: DummyJournal.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/dummy/DummyJournal.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** DummyJournal.java 8 Sep 2003 22:49:29 -0000 1.2 --- DummyJournal.java 2 Jul 2004 15:25:14 -0000 1.3 *************** *** 97,101 **** public PipelineDocument getDocumentAtTicketStep(IJournalTicket ticket, int step) throws JournalException { ! return new PipelineDocument(null); } --- 97,101 ---- public PipelineDocument getDocumentAtTicketStep(IJournalTicket ticket, int step) throws JournalException { ! return new PipelineDocument(""); } |
From: Dejan K. <de...@us...> - 2004-07-02 14:57:25
|
Update of /cvsroot/babeldoc/babeldoc/modules/sql/config/service In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19086/babeldoc/modules/sql/config/service Modified Files: query.properties Log Message: Fixing bug with JndiDatasource Index: query.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/sql/config/service/query.properties,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** query.properties 15 Aug 2003 21:22:04 -0000 1.3 --- query.properties 2 Jul 2004 14:57:16 -0000 1.4 *************** *** 8,12 **** Resource.jdbc=com.babeldoc.sql.resource.SimpleJdbc ! Resource.jndi=com.babeldoc.resource.JndiDatasource Resource.pooled=com.babeldoc.sql.resource.PooledJdbc --- 8,12 ---- Resource.jdbc=com.babeldoc.sql.resource.SimpleJdbc ! #Resource.jndi=com.babeldoc.resource.JndiDatasource Resource.pooled=com.babeldoc.sql.resource.PooledJdbc |
From: Dejan K. <de...@us...> - 2004-07-02 14:57:25
|
Update of /cvsroot/babeldoc/babeldoc/modules/j2ee/config/service In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19086/babeldoc/modules/j2ee/config/service Added Files: query.properties Log Message: Fixing bug with JndiDatasource --- NEW FILE: query.properties --- Resource.jndi=com.babeldoc.j2ee.resource.JndiDatasource |
From: Dejan K. <de...@us...> - 2004-07-02 14:50:35
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16821/babeldoc/modules/core/src/com/babeldoc/core/pipeline Modified Files: PipelineDocument.java Log Message: Index: PipelineDocument.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/PipelineDocument.java,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** PipelineDocument.java 28 May 2004 10:31:15 -0000 1.20 --- PipelineDocument.java 2 Jul 2004 14:49:56 -0000 1.21 *************** *** 449,452 **** --- 449,453 ---- public String getContents() { try { + System.out.println("Using encoding " + this.getEncoding()); return new String(buffer, this.getEncoding()); } catch (UnsupportedEncodingException e) { |
From: Dejan K. <de...@us...> - 2004-07-02 14:50:34
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/excel In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16821/babeldoc/modules/conversion/src/com/babeldoc/conversion/excel Modified Files: ExcelConverter.java Log Message: Index: ExcelConverter.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/excel/ExcelConverter.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ExcelConverter.java 6 Jan 2004 14:25:02 -0000 1.3 --- ExcelConverter.java 2 Jul 2004 14:49:55 -0000 1.4 *************** *** 121,125 **** HSSFCell cell = null; HSSFDataFormat dataFormat = wb.createDataFormat(); ! Document document = DocumentHelper.createDocument(); DecimalFormat formatter; if (locale == null) { --- 121,125 ---- HSSFCell cell = null; HSSFDataFormat dataFormat = wb.createDataFormat(); ! Document document = DocumentHelper.createDocument(); DecimalFormat formatter; if (locale == null) { *************** *** 202,205 **** --- 202,207 ---- case HSSFCell.CELL_TYPE_STRING : cellElement.addAttribute("type", "String"); + System.out.println(cell.getEncoding()); + System.out.println(cell.getStringCellValue()); cellElement.addText(cell.getStringCellValue()); break; |
From: Dejan K. <de...@us...> - 2004-07-02 14:50:34
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16821/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage Modified Files: FtpWriterPipelineStage.java Log Message: Index: FtpWriterPipelineStage.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/stage/FtpWriterPipelineStage.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** FtpWriterPipelineStage.java 30 Sep 2003 13:46:21 -0000 1.7 --- FtpWriterPipelineStage.java 2 Jul 2004 14:49:55 -0000 1.8 *************** *** 125,129 **** options.add(new ConfigOption(FTP_FILENAME, IConfigOptionType.STRING, null, false, I18n.get("100029"))); ! return options; } --- 125,129 ---- options.add(new ConfigOption(FTP_FILENAME, IConfigOptionType.STRING, null, false, I18n.get("100029"))); ! return options; } *************** *** 156,160 **** ByteArrayInputStream bais = new ByteArrayInputStream(document.getBytes()); ! if (!ftp.storeFile(ftpFilename, bais)) { throw new Exception(I18n.get("100030")); --- 156,160 ---- ByteArrayInputStream bais = new ByteArrayInputStream(document.getBytes()); ! if (!ftp.storeFile(ftpFilename, bais)) { throw new Exception(I18n.get("100030")); *************** *** 166,169 **** --- 166,172 ---- throw new Exception(I18n.get("100032")); } + if (ftp.isConnected()) { + ftp.disconnect(); + } } |
From: Dejan K. <de...@us...> - 2004-07-02 14:50:21
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16821/babeldoc/modules/conversion/src/com/babeldoc/conversion Modified Files: ConversionHelper.java Log Message: Index: ConversionHelper.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/ConversionHelper.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ConversionHelper.java 28 May 2004 10:35:33 -0000 1.4 --- ConversionHelper.java 2 Jul 2004 14:49:55 -0000 1.5 *************** *** 93,98 **** render(document, stringWriter, encoding); try { ! return new PipelineDocument(pdoc, stringWriter.toString() ! .getBytes(encoding)); } catch (UnsupportedEncodingException e) { throw new ConversionException("Error rendering document", e); --- 93,100 ---- render(document, stringWriter, encoding); try { ! PipelineDocument pipelineDocument = ! new PipelineDocument(pdoc, stringWriter.toString().getBytes(encoding)); ! System.out.println(pipelineDocument.getContents()); ! return pipelineDocument; } catch (UnsupportedEncodingException e) { throw new ConversionException("Error rendering document", e); |