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: <tr...@us...> - 2003-08-08 13:39:56
|
Update of /cvsroot/babeldoc/babeldoc/readme In directory sc8-pr-cvs1:/tmp/cvs-serv25907/readme Modified Files: CHANGES Log Message: Release 1.1.6-dev Index: CHANGES =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/readme/CHANGES,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** CHANGES 1 Aug 2003 01:49:30 -0000 1.23 --- CHANGES 8 Aug 2003 13:39:53 -0000 1.24 *************** *** 1,2 **** --- 1,243 ---- + 2003-08-08 9:34 triphop + + * New release! 1.1.6-dev + + 2003-08-07 21:25 triphop + + * modules/core/lib/docbook-xalan.jar: [no log message] + + 2003-08-07 21:19 triphop + + * modules/core/lib/docbook-xalan.jar: [no log message] + + 2003-08-07 21:17 triphop + + * modules/core/lib/docbook-xalan.jar: lets get this in for the + documentation! + + 2003-08-07 17:14 triphop + + * + modules/core/config/pipeline/documentation/documentation.properties, + readme/style.css: babeldoc documentation now has a css style + associated with it. + + 2003-08-07 17:12 triphop + + * modules/core/src/com/babeldoc/core/VariableProcessor.java: No + more velocity.log - now uses the same log4j category as babeldoc. + Additionally the global velocity macros are now found. + + 2003-08-07 17:09 triphop + + * modules/conversion/: config/i18n/messages.properties, + src/com/babeldoc/conversion/ConversionHelper.java, + src/com/babeldoc/conversion/excel/ExcelConversionClient.java, + src/com/babeldoc/conversion/flatfile/ConversionUnmarshaller.java, + src/com/babeldoc/conversion/flatfile/FlatFileConversionClient.java, + src/com/babeldoc/conversion/flatfile/digester/DigesterConversionUnmarshaller.java, + src/com/babeldoc/conversion/flatfile/digester/OutputDocument.java, + src/com/babeldoc/conversion/pipeline/stage/FlatToXmlPipelineStage.java, + src/com/babeldoc/conversion/pipeline/stage/XlsToXmlPipelineStage.java: + conversion code now can alter the output xml document + + 2003-08-07 17:06 triphop + + * readme/schema/conversion.xsd: added output document encoding. + + 2003-08-07 14:29 dejank + + * modules/core/src/com/babeldoc/core/BabeldocCommand.java: I guess + this will fix -v option problem + + 2003-08-07 04:46 dejank + + * modules/: + core/src/com/babeldoc/core/pipeline/command/PipelineCommand.java, + core/src/com/babeldoc/core/pipeline/command/PipelineFeeder.java, + scanner/src/com/babeldoc/scanner/Scanner.java, + scanner/src/com/babeldoc/scanner/rmi/RemoteScannerClient.java, + core/src/com/babeldoc/core/BabeldocCommand.java, + core/src/com/babeldoc/core/config/light/LightConfigCommand.java, + soap/src/com/babeldoc/soap/pipeline/command/SoapPipelineFeeder.java: + Implementing Holywood principle + + 2003-08-07 00:22 dglick02 + + * modules/soap/config/i18n/messages.properties: Added message 106 + to describe the responseDoc attribute + + 2003-08-07 00:21 dglick02 + + * + modules/soap/src/com/babeldoc/soap/pipeline/stage/SoapWriterPipelineStage.java: + The SOAP response is now returned if responseDoc is true in the + config.properties file. + + 2003-08-06 23:52 triphop + + * readme/babeldoc-logo.svg: [no log message] + + 2003-08-06 23:51 triphop + + * readme/babeldoc-logo.svg: Added the babeldoc logo as svg + + 2003-08-06 19:33 triphop + + * modules/core/: lib/versions, lib/xalan.jar, lib/xerces.jar, + lib/xml-apis.jar, + src/com/babeldoc/core/VelocityUtilityContext.java: Updated the + xalan and xerces jars. + + 2003-08-06 08:48 triphop + + * readme/userguide/chapter1.xml: updated some documentation - added + section on configuration. + + 2003-08-06 08:09 dejank + + * modules/scanner/src/com/babeldoc/scanner/: IScannerWorker.java, + Scanner.java, ScannerFactory.java, ScannerFactoryTest.java, + ScannerSchedule.java, ScannerWorker.java, ScannerWorkerConfig.java, + ScannerWorkerInfo.java, ScannerWorkerScheduler.java: Removing + unused imports... + + + 2003-08-05 23:23 triphop + + * modules/core/src/com/babeldoc/core/: + TieredConfigurationHelper.java, + pipeline/simple/SimplePipelineStageResolver.java: Changed the + ad-hoc configuration scanning code with the csv reader code. + + 2003-08-05 23:19 dglick02 + + * modules/scanner/src/com/babeldoc/scanner/Scanner.java: If '-h' + switch, display help screen and exit + + 2003-08-05 20:19 triphop + + * readme/userguide/: pipelinestages.xml, scanners.xml: removed the + pipeline and scanner documentation - they now get created out of + the documentation pipeline. + + 2003-08-05 20:18 triphop + + * modules/core/config/pipeline/: config.properties, + documentation/documentation.properties, + documentation/scanner2docbook.xsl, documentation/stage2docbook.xsl, + simple/documentation.properties: Updated the documentation pipeline + so that the pipeline and scanner documentation are created inline. + + 2003-08-05 20:12 triphop + + * + modules/conversion/src/com/babeldoc/conversion/pipeline/stage/XlsToXmlPipelineStage.java: + Fixed bug where info was returning a null for the options! + + 2003-08-05 19:54 triphop + + * modules/scanner/config/service/query.properties: Fixed bad + service name - external application + + 2003-08-05 19:49 triphop + + * modules/core/: config/i18n/messages.properties, + src/com/babeldoc/core/pipeline/PipelineDocument.java, + src/com/babeldoc/core/pipeline/stage/CallStagePipelineStage.java, + src/com/babeldoc/core/pipeline/stage/RouterPipelineStage.java: + Enhanced the callstage stage and added some comments to router + stage + + 2003-08-05 19:39 triphop + + * + modules/core/src/com/babeldoc/core/pipeline/command/PipelineCommand.java: + Should have been calling parent method. + + 2003-08-05 19:28 triphop + + * modules/core/: config/i18n/messages.properties, + src/com/babeldoc/core/pipeline/stage/XslTransformPipelineStage.java: + Now able to add arbitraty numbers of parameters to the XSL + transformer thereby making the whole thing more powerful (I hope) + + 2003-08-05 19:13 triphop + + * modules/core/: config/i18n/messages.properties, + config/service/query.properties, + src/com/babeldoc/core/config/light/LightConfigCommand.java, + src/com/babeldoc/core/config/light/LightConfigService.java: + LightConfig configuration tracing tool. + + 2003-08-05 10:55 dglick02 + + * modules/core/src/com/babeldoc/core/BabeldocCommand.java: Added + '-d' switch for dumping configuration files and contents + + 2003-08-04 19:57 triphop + + * modules/scanner/src/com/babeldoc/scanner/Scanner.java: update the + scanner due to interface change in the IFeeder class + + 2003-08-04 19:46 triphop + + * modules/core/: lib/commons-threadpool.jar, lib/concurrent.jar, + src/com/babeldoc/core/pipeline/feeder/AsynchronousFeeder.java, + src/com/babeldoc/core/pipeline/feeder/DiskQueue.java, + src/com/babeldoc/core/pipeline/feeder/DiskQueueTest.java, + src/com/babeldoc/core/pipeline/feeder/FeedDocument.java, + src/com/babeldoc/core/pipeline/feeder/FeederFactory.java, + src/com/babeldoc/core/pipeline/feeder/IFeeder.java, + src/com/babeldoc/core/pipeline/feeder/IFeederQueue.java, + src/com/babeldoc/core/pipeline/feeder/MemoryQueue.java, + src/com/babeldoc/core/pipeline/feeder/SynchronousFeeder.java, + src/com/babeldoc/core/pipeline/processor/ThreadPooledPipelineStageProcessor.java: + Removed the jakarta commons threadpool code - now uses the oswego + concurrent classes. + + 2003-08-04 19:41 triphop + + * + modules/core/src/com/babeldoc/core/pipeline/stage/XslTransformPipelineStage.java: + Bug 783139: Added in transformer for non-file or non-cached XSL + documents + + 2003-08-04 09:50 dejank + + * + modules/scanner/src/com/babeldoc/scanner/worker/DirectoryScanner.java: + Fixed wrong resource key for DirectoryScanner description + + 2003-08-04 08:46 dejank + + * modules/scanner/src/com/babeldoc/scanner/: Scanner.java, + ScannerFactory.java, worker/DirectoryScanner.java: Fixing bug with + s argument + + 2003-08-04 05:44 dejank + + * modules/core/lib/csv19.jar: Changing to binary + + 2003-07-31 22:39 triphop + + * modules/core/src/com/babeldoc/core/pipeline/PipelineStage.java, + build.properties: [no log message] + + 2003-07-31 21:49 triphop + + * readme/CHANGES: Update the ChangeLog - VERSION 1.1.5-DEV - + Released. + + 2003-07-30 19:24 triphop + + * readme/userguide/chapter1.xml: Some small changes. + + 2003-07-30 19:17 triphop + + * build.properties, build.xml: Updated version number, updated the + distribution build targets. + + 2003-07-30 19:24 triphop |
|
From: Bruce M. <br...@mc...> - 2003-08-08 13:31:06
|
The FeedDocument constructor has a argument that allows for the suppression of ticket generation. The infrastructure is all in place. It just needs to be set from the Scanner code. Who wants to do this? On Friday 08 August 2003 05:29 am, Dejan Krsmanovic wrote: > Currently not, but I guess it should be easy to implement (something like > you did with dummy tickets...). > > Dejan > > ----- Original Message ----- > From: "Bruce McDonald" <br...@mc...> > To: "Tim Mumford" <Tim...@En...> > Cc: <bab...@li...> > Sent: Thursday, August 07, 2003 10:42 PM > Subject: [Babeldoc-devel] Re: Turning off Tickets dir creation > > > Dejan, > > > > Is there a way to suppress journal ticket creation from the scanner? > > > > regards, > > Bruce. > > > > On Thursday 07 August 2003 10:44 am, Tim Mumford wrote: > > > Hi Bruce, > > > > > > I'm launching babeldoc with the scanner: > > > >babeldoc scanner > > > > > > So I'm not sure where to apply the -j flag. > > > (Sorry to bug you about this.) > > > > > > > > > -----Original Message----- > > > From: Bruce McDonald [mailto:br...@mc...] > > > Sent: Thursday, August 07, 2003 7:06 AM > > > To: Tim Mumford; br...@tr... > > > Subject: Re: Turning off Tickets dir creation > > > > > > Check out the -j flag - it stops any journalling. > > > > > > On Wednesday 06 August 2003 04:45 pm, Tim Mumford wrote: > > > > Hi Bruce, > > > > > > > > I am using v1.0.1 of Babeldoc. I was wondering if it is possible (and > > > > > > is > > > > > > > so how) to prevent the creation of the 'ticket directories'? > > > > > > > > > > > > > > > > Here is my simple journal configs: > > > > > > > > simpleJournalDir=tracking > > > > > > > > simpleJournalLog=tracking/babellog.log > > > > > > > > logMaxSize=5MB > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > -- Tim > > > > > > > > > > > > > > > > Tim Mumford > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > > > _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Dejan K. <dej...@nb...> - 2003-08-08 09:31:37
|
Currently not, but I guess it should be easy to implement (something like you did with dummy tickets...). Dejan ----- Original Message ----- From: "Bruce McDonald" <br...@mc...> To: "Tim Mumford" <Tim...@En...> Cc: <bab...@li...> Sent: Thursday, August 07, 2003 10:42 PM Subject: [Babeldoc-devel] Re: Turning off Tickets dir creation > Dejan, > > Is there a way to suppress journal ticket creation from the scanner? > > regards, > Bruce. > > On Thursday 07 August 2003 10:44 am, Tim Mumford wrote: > > Hi Bruce, > > > > I'm launching babeldoc with the scanner: > > >babeldoc scanner > > > > So I'm not sure where to apply the -j flag. > > (Sorry to bug you about this.) > > > > > > -----Original Message----- > > From: Bruce McDonald [mailto:br...@mc...] > > Sent: Thursday, August 07, 2003 7:06 AM > > To: Tim Mumford; br...@tr... > > Subject: Re: Turning off Tickets dir creation > > > > Check out the -j flag - it stops any journalling. > > > > On Wednesday 06 August 2003 04:45 pm, Tim Mumford wrote: > > > Hi Bruce, > > > > > > I am using v1.0.1 of Babeldoc. I was wondering if it is possible (and > > > > is > > > > > so how) to prevent the creation of the 'ticket directories'? > > > > > > > > > > > > Here is my simple journal configs: > > > > > > simpleJournalDir=tracking > > > > > > simpleJournalLog=tracking/babellog.log > > > > > > logMaxSize=5MB > > > > > > > > > > > > Thanks, > > > > > > > > > > > > -- Tim > > > > > > > > > > > > Tim Mumford > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-08-08 01:25:55
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib In directory sc8-pr-cvs1:/tmp/cvs-serv17194 Added Files: docbook-xalan.jar Log Message: |
|
From: <tr...@us...> - 2003-08-08 01:23:59
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib In directory sc8-pr-cvs1:/tmp/cvs-serv15660 Added Files: docbook-xalan.jar Log Message: lets get this in for the documentation! --- NEW FILE: docbook-xalan.jar --- (This appears to be a binary file; contents omitted.) |
|
From: <tr...@us...> - 2003-08-08 01:19:06
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib In directory sc8-pr-cvs1:/tmp/cvs-serv15938 Removed Files: docbook-xalan.jar Log Message: --- docbook-xalan.jar DELETED --- |
|
From: <tr...@us...> - 2003-08-07 21:15:00
|
Update of /cvsroot/babeldoc/babeldoc/readme
In directory sc8-pr-cvs1:/tmp/cvs-serv6987/readme
Added Files:
style.css
Log Message:
babeldoc documentation now has a css style associated with it.
--- NEW FILE: style.css ---
P.note {
font-family: Helvetica,Arial;
}
H3.note {
font-family: Helvetica,Arial;
font-weight: bold;
font-size: 12;
}
.productname {
text-transform: none;
font-variant: small-caps;
text-decoration: underline
}
BODY {
font-family: Arial, Verdana, sans-serif;
font-size: 10pt;
background-color: #fffdf0;
padding-left: 20px
}
div.toc {
background-color: #eeeeee;
border: 1px dotted #333;
padding-top: 10px;
padding-left: 20px;
padding-bottom: 10px;
padding-right: 20px;
margin-right: 30px;
margin-left: 30px;
margin-bottom: 10px;
margin-top: 10px;
}
div.list-of-examples {
background-color: #eeeeee;
border: 1px dotted #333;
padding-top: 10px;
padding-left: 20px;
padding-bottom: 10px;
padding-right: 20px;
margin-right: 30px;
margin-left: 30px;
margin-bottom: 10px;
margin-top: 10px;
}
div.chapter {
border-top-color: black;
border-top-width: 10px;
border-top-style: groove;
padding-top: 20px;
margin-top: 60px;
}
b.userinput {
font-family: "Courier New", Courier;
color: #be1b33;
}
b.userinput tt p {
margin-top: -.1em;
margin-bottom: -.1em;
font-size: 11;
}
tt.computeroutput p {
margin-top: -.1em;
margin-bottom: -.1em;
font-size: 11;
}
|
|
From: <tr...@us...> - 2003-08-07 21:15:00
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/documentation
In directory sc8-pr-cvs1:/tmp/cvs-serv6987/modules/core/config/pipeline/documentation
Modified Files:
documentation.properties
Log Message:
babeldoc documentation now has a css style associated with it.
Index: documentation.properties
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/documentation/documentation.properties,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** documentation.properties 6 Aug 2003 00:18:07 -0000 1.1
--- documentation.properties 7 Aug 2003 21:14:57 -0000 1.2
***************
*** 30,33 ****
--- 30,34 ----
transform.stageType=XslTransform
transform.transformationFile=readme/docbook-xsl/${document.get("style")}/docbook.xsl
+ transform.param."html.stylesheet"=style.css
transform.nextStage=writer
|
|
From: <tr...@us...> - 2003-08-07 21:12:28
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv6530
Modified Files:
VariableProcessor.java
Log Message:
No more velocity.log - now uses the same log4j category as babeldoc. Additionally the global velocity macros are now found.
Index: VariableProcessor.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/VariableProcessor.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** VariableProcessor.java 27 Jun 2003 02:19:57 -0000 1.7
--- VariableProcessor.java 7 Aug 2003 21:12:25 -0000 1.8
***************
*** 67,70 ****
--- 67,71 ----
import org.apache.velocity.VelocityContext;
+ import org.apache.velocity.runtime.RuntimeConstants;
import org.apache.velocity.app.Velocity;
import org.apache.velocity.context.Context;
***************
*** 100,103 ****
--- 101,109 ----
Velocity.setProperty("classpath.resource.loader.class",
"org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader");
+ Velocity.setProperty( RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,
+ "org.apache.velocity.runtime.log.SimpleLog4JLogSystem" );
+ Velocity.setProperty("runtime.log.logsystem.log4j.category", "babeldoc");
+ Velocity.setProperty("velocimacro.library",
+ "core/VM_global_library.vm");
Velocity.init();
|
|
From: <tr...@us...> - 2003-08-07 21:09:05
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/pipeline/stage
In directory sc8-pr-cvs1:/tmp/cvs-serv5825/src/com/babeldoc/conversion/pipeline/stage
Modified Files:
FlatToXmlPipelineStage.java XlsToXmlPipelineStage.java
Log Message:
conversion code now can alter the output xml document
Index: FlatToXmlPipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/pipeline/stage/FlatToXmlPipelineStage.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** FlatToXmlPipelineStage.java 19 Jul 2003 13:16:47 -0000 1.6
--- FlatToXmlPipelineStage.java 7 Aug 2003 21:09:02 -0000 1.7
***************
*** 68,71 ****
--- 68,72 ----
import com.babeldoc.conversion.ConversionHelper;
import com.babeldoc.conversion.flatfile.FlatFileConverter;
+ import com.babeldoc.conversion.flatfile.ConversionUnmarshaller;
import com.babeldoc.conversion.flatfile.digester.DigesterConversionUnmarshaller;
import com.babeldoc.core.I18n;
***************
*** 132,142 ****
InputStream input = getDocument().getInputStream();
PipelineDocument newDocument = ConversionHelper.render(new FlatFileConverter(
! new DigesterConversionUnmarshaller(config)).toXml(input), this.getDocument());
newDocument.setBinary(false);
return processHelper(newDocument);
! } catch (Exception except) {
! throw new PipelineException("[FlatToXmlPipelineStage] Process", except);
}
}
--- 133,144 ----
InputStream input = getDocument().getInputStream();
+ ConversionUnmarshaller unmarshaller = new DigesterConversionUnmarshaller(config);
PipelineDocument newDocument = ConversionHelper.render(new FlatFileConverter(
! unmarshaller).toXml(input), this.getDocument(), unmarshaller.getEncoding());
newDocument.setBinary(false);
return processHelper(newDocument);
! } catch (Exception e) {
! throw new PipelineException("[FlatToXmlPipelineStage] Process", e);
}
}
Index: XlsToXmlPipelineStage.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/pipeline/stage/XlsToXmlPipelineStage.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** XlsToXmlPipelineStage.java 6 Aug 2003 00:12:05 -0000 1.4
--- XlsToXmlPipelineStage.java 7 Aug 2003 21:09:02 -0000 1.5
***************
*** 70,73 ****
--- 70,76 ----
import com.babeldoc.conversion.excel.ExcelConverter;
import com.babeldoc.core.pipeline.*;
+ import com.babeldoc.core.option.ConfigOption;
+ import com.babeldoc.core.option.IConfigOptionType;
+ import com.babeldoc.core.I18n;
import java.util.Collection;
***************
*** 75,88 ****
/**
! * @author dejank
*
! * To change this generated comment go to
! * Window>Preferences>Java>Code Generation>Code and Comments
*/
public class XlsToXmlPipelineStage extends PipelineStage {
public static String DATE_FORMAT = "dd.mm.yyyy";
! public XlsToXmlPipelineStage() {
super(new PipelineStageInfo() {
public String getName() {
--- 78,97 ----
/**
! * Pipelinestage to convert Excel documents (.xls) into XML documents. This used the Apache POI library. The actual
! * conversion is handled in the ExcelConverter class. By default the XML encoding is UTF-8 unless the 'encoding'
! * configuration option is provided to the pipeline stage.
*
! * @author dejank
! * @version 1.1
*/
public class XlsToXmlPipelineStage extends PipelineStage {
public static String DATE_FORMAT = "dd.mm.yyyy";
+ public static final String ENCODING = "encoding";
! /**
! * Construct this stage - create the information object
! */
! public XlsToXmlPipelineStage() {
super(new PipelineStageInfo() {
public String getName() {
***************
*** 91,99 ****
public String getDescription() {
! return "Converts Microsoft Excel files to XML format.";
}
public Collection getTypeSpecificOptions() {
! return new ArrayList();
}
});
--- 100,115 ----
public String getDescription() {
! return I18n.get("conversion.pipeline.stage.XlsToXml.desc");
}
public Collection getTypeSpecificOptions() {
! Collection options = new ArrayList();
!
! //add specific options
! options.add(new ConfigOption(ENCODING,
! IConfigOptionType.STRING, null, false,
! I18n.get("conversion.pipeline.stage.XlsToXml.encoding")));
!
! return options;
}
});
***************
*** 103,119 ****
* Process. This converts the document from Microsoft Excel (tm) data format
* to an xml format. This uses the ExcelConverter.
! */
public PipelineStageResult[] process()
throws PipelineException {
try {
PipelineDocument doc = ConversionHelper.render(new ExcelConverter().toXml(this.getDocument().getInputStream()),
! this.getDocument());
doc.setBinary(false);
return processHelper(doc);
} catch (ConversionException e) {
! // TODO Auto-generated catch block
! throw new PipelineException("Error converting XLS file to XML");
}
}
--- 119,139 ----
* Process. This converts the document from Microsoft Excel (tm) data format
* to an xml format. This uses the ExcelConverter.
! *
! * @return array of pipelinestage results
! * @throws PipelineException
! */
public PipelineStageResult[] process()
throws PipelineException {
+ String encoding = this.getOptions(ENCODING);
+
try {
PipelineDocument doc = ConversionHelper.render(new ExcelConverter().toXml(this.getDocument().getInputStream()),
! this.getDocument(), encoding);
doc.setBinary(false);
return processHelper(doc);
} catch (ConversionException e) {
! throw new PipelineException(I18n.get("conversion.pipeline.stage.XlsToXml.error"), e);
}
}
|
|
From: <tr...@us...> - 2003-08-07 21:09:05
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile
In directory sc8-pr-cvs1:/tmp/cvs-serv5825/src/com/babeldoc/conversion/flatfile
Modified Files:
ConversionUnmarshaller.java FlatFileConversionClient.java
Log Message:
conversion code now can alter the output xml document
Index: ConversionUnmarshaller.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile/ConversionUnmarshaller.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConversionUnmarshaller.java 19 Jul 2003 13:16:47 -0000 1.1
--- ConversionUnmarshaller.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 160,162 ****
--- 160,169 ----
*/
public int getTopSkip();
+
+ /**
+ * Get the encoding string
+ *
+ * @return
+ */
+ public String getEncoding();
}
Index: FlatFileConversionClient.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile/FlatFileConversionClient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FlatFileConversionClient.java 19 Jul 2003 13:16:47 -0000 1.1
--- FlatFileConversionClient.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 76,80 ****
import org.apache.commons.cli.OptionBuilder;
import org.apache.commons.cli.Options;
- import org.dom4j.Document;
import java.io.IOException;
--- 76,79 ----
***************
*** 105,109 ****
protected static final String NULL = "";
protected ConversionUnmarshaller unmarshaller;
- private Document document;
/**
--- 104,107 ----
***************
*** 155,160 ****
PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.out));
try {
! ConversionHelper.render(new FlatFileConverter(new DigesterConversionUnmarshaller(conf)).toXml(in),
! System.out);
} catch (ConversionException e) {
LogService.getInstance().logError(e);
--- 153,159 ----
PrintWriter writer = new PrintWriter(new OutputStreamWriter(System.out));
try {
! ConversionUnmarshaller unmarshaller = new DigesterConversionUnmarshaller(conf);
! ConversionHelper.render(new FlatFileConverter(unmarshaller).toXml(in),
! System.out, unmarshaller.getEncoding());
} catch (ConversionException e) {
LogService.getInstance().logError(e);
|
|
From: <tr...@us...> - 2003-08-07 21:09:05
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/excel
In directory sc8-pr-cvs1:/tmp/cvs-serv5825/src/com/babeldoc/conversion/excel
Modified Files:
ExcelConversionClient.java
Log Message:
conversion code now can alter the output xml document
Index: ExcelConversionClient.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/excel/ExcelConversionClient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExcelConversionClient.java 19 Jul 2003 13:16:47 -0000 1.1
--- ExcelConversionClient.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 120,124 ****
if (in != null) {
try {
! ConversionHelper.render(new ExcelConverter().toXml(in), System.out);
} catch (ConversionException e) {
LogService.getInstance().logError(e);
--- 120,124 ----
if (in != null) {
try {
! ConversionHelper.render(new ExcelConverter().toXml(in), System.out, null);
} catch (ConversionException e) {
LogService.getInstance().logError(e);
|
|
From: <tr...@us...> - 2003-08-07 21:09:05
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile/digester
In directory sc8-pr-cvs1:/tmp/cvs-serv5825/src/com/babeldoc/conversion/flatfile/digester
Modified Files:
DigesterConversionUnmarshaller.java OutputDocument.java
Log Message:
conversion code now can alter the output xml document
Index: DigesterConversionUnmarshaller.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile/digester/DigesterConversionUnmarshaller.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DigesterConversionUnmarshaller.java 19 Jul 2003 13:16:47 -0000 1.1
--- DigesterConversionUnmarshaller.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 71,74 ****
--- 71,75 ----
import com.babeldoc.core.I18n;
+ import com.babeldoc.core.ResourceLoader;
import org.apache.commons.digester.Digester;
***************
*** 94,98 ****
* @version 1.0
*/
! public class DigesterConversionUnmarshaller implements ConversionUnmarshaller {
private Conversion conversion;
private FieldData[] fields = null;
--- 95,101 ----
* @version 1.0
*/
! public class DigesterConversionUnmarshaller
! implements ConversionUnmarshaller {
!
private Conversion conversion;
private FieldData[] fields = null;
***************
*** 100,103 ****
--- 103,107 ----
public static final String DEFAULT_CSV_SEPARATOR = ",";
public static final String DEFAULT_LINE_SEPARATOR = "\n";
+ public static final String DEFAULT_ENCODING = "UTF-8";
/**
***************
*** 131,135 ****
public DigesterConversionUnmarshaller(String source)
throws IOException {
! this(com.babeldoc.core.ResourceLoader.getResourceStream(source));
}
--- 135,139 ----
public DigesterConversionUnmarshaller(String source)
throws IOException {
! this(ResourceLoader.getResourceStream(source));
}
***************
*** 307,310 ****
--- 311,327 ----
/**
+ * Get the encoding string
+ *
+ * @return
+ */
+ public String getEncoding() {
+ if(conversion.getHeader().getOutputDocument().getEncoding()!=null) {
+ return conversion.getHeader().getOutputDocument().getEncoding();
+ } else {
+ return DEFAULT_ENCODING;
+ }
+ }
+
+ /**
* Test this beast
*
***************
*** 422,425 ****
--- 439,444 ----
digester.addCallMethod("conversion/header/output-document/row-element",
"setRowElement", 0);
+ digester.addCallMethod("conversion/header/output-document/encoding",
+ "setEncoding", 0);
// Handle line segment set up
Index: OutputDocument.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/flatfile/digester/OutputDocument.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** OutputDocument.java 19 Jul 2003 13:16:47 -0000 1.1
--- OutputDocument.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 77,80 ****
--- 77,81 ----
private String rootElement;
private String rowElement;
+ private String encoding;
/**
***************
*** 112,115 ****
--- 113,133 ----
public String getRowElement() {
return rowElement;
+ }
+
+ /**
+ * Get the the encoding string
+ * @return
+ */
+ public String getEncoding() {
+ return encoding;
+ }
+
+ /**
+ * Set the encoding string
+ *
+ * @param encoding
+ */
+ public void setEncoding(String encoding) {
+ this.encoding = encoding;
}
}
|
|
From: <tr...@us...> - 2003-08-07 21:09:04
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion
In directory sc8-pr-cvs1:/tmp/cvs-serv5825/src/com/babeldoc/conversion
Modified Files:
ConversionHelper.java
Log Message:
conversion code now can alter the output xml document
Index: ConversionHelper.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/src/com/babeldoc/conversion/ConversionHelper.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConversionHelper.java 19 Jul 2003 13:16:47 -0000 1.1
--- ConversionHelper.java 7 Aug 2003 21:09:02 -0000 1.2
***************
*** 22,32 ****
* @param document dom4j document
* @param out the output stream to render to
* @throws ConversionException
*/
! public static void render(Document document, OutputStream out)
throws ConversionException {
try {
OutputFormat outformat = OutputFormat.createPrettyPrint();
! // outformat.setEncoding(aEncodingScheme);
XMLWriter writer = new XMLWriter(out, outformat);
writer.write(document);
--- 22,35 ----
* @param document dom4j document
* @param out the output stream to render to
+ * @param encoding the encoding to use (null for default)
* @throws ConversionException
*/
! public static void render(Document document, OutputStream out, String encoding)
throws ConversionException {
try {
OutputFormat outformat = OutputFormat.createPrettyPrint();
! if(encoding!=null) {
! outformat.setEncoding(encoding);
! }
XMLWriter writer = new XMLWriter(out, outformat);
writer.write(document);
***************
*** 42,52 ****
* @param document the dom4j document
* @param pdoc the parent pipeline document
* @return new pipeline document
* @throws ConversionException
*/
! public static PipelineDocument render(Document document, PipelineDocument pdoc)
throws ConversionException {
try {
OutputFormat outformat = OutputFormat.createCompactFormat();
StringWriter stringWriter = new StringWriter();
XMLWriter writer = new XMLWriter(stringWriter, outformat);
--- 45,60 ----
* @param document the dom4j document
* @param pdoc the parent pipeline document
+ * @param encoding the output encoding format
* @return new pipeline document
* @throws ConversionException
*/
! public static PipelineDocument render(Document document, PipelineDocument pdoc,
! String encoding)
throws ConversionException {
try {
OutputFormat outformat = OutputFormat.createCompactFormat();
+ if(encoding!=null) {
+ outformat.setEncoding(encoding);
+ }
StringWriter stringWriter = new StringWriter();
XMLWriter writer = new XMLWriter(stringWriter, outformat);
|
|
From: <tr...@us...> - 2003-08-07 21:09:04
|
Update of /cvsroot/babeldoc/babeldoc/modules/conversion/config/i18n In directory sc8-pr-cvs1:/tmp/cvs-serv5825/config/i18n Modified Files: messages.properties Log Message: conversion code now can alter the output xml document Index: messages.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/conversion/config/i18n/messages.properties,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** messages.properties 22 May 2003 03:02:49 -0000 1.4 --- messages.properties 7 Aug 2003 21:09:01 -0000 1.5 *************** *** 22,23 **** --- 22,27 ---- conversion.digester.exception.sax=SAX Parser Exception conversion.digester.exception.io=Input/Ouput Exception + + conversion.pipeline.stage.XlsToXml.desc=Converts Microsoft Excel files to XML format. This creates a regular XML output document of workbooks, rows and cells. The XML encoding can be configured if necessary. + conversion.pipeline.stage.XlsToXml.encoding=Encoding string for the output XML. By default it is UTF-8. + conversion.pipeline.stage.XlsToXml.error=Error converting XLS file to XML |
|
From: Bruce M. <br...@mc...> - 2003-08-07 21:07:56
|
Stefan, I am about to check in code that will allow you to setup the output xml=20 encoding. This will be for 1.1. You are welcome to adapt it for 1.0. regards, Bruce. On Tuesday 05 August 2003 09:02 am, Stefan Krieger wrote: > Bruce, > > are you still working on the FlatToXMLStage ? > I looked at the 1.1.5 source and found there is currently no way to set t= he > XML encoding. > > But it is a very important that the user can set the XML encoding to use = by > the XMLWriter as an option of FlatToXMLStage. > > Again, I have the problem, that we are currently not using the HEAD versi= on > of babeldoc. So, I am missing a test environment to do the changes on my > own. > > Regards, > Stefan > > -----Urspr=C3=BCngliche Nachricht----- > Von: Bruce McDonald [mailto:br...@mc...] > Gesendet: Di 29.07.2003 15:23 > An: Stefan Krieger > Cc: > Betreff: Re: AW: [Babeldoc-devel] FlatToXMLStage produce invalid XML > > > > There exists a problem from large text files.... Good of you to point > this out. I am not too keen to go back to the old implementation. > > On Monday 28 July 2003 05:42 pm, Stefan Krieger wrote: > > Good hint. I have forgotten that. > > Maybe I will have to provide a patch for version 1.0, maybe we will > > upgrade to the new version. It is stable ? > > But at the moment it is not a real problem for my project. > > > > Regarding DOM4J: > > If you are using DOM4J you should not have any encoding problems, > > anyway. However, does this mean that you are creating the complete DOM > > tree in memory ? > > This could be an issue for big text files. This was an advantage of the > > old implementation. > > > > Stefan > > > > -----Urspr=E0=A7=80liche Nachricht----- > > Von: McDonald, Bruce [mailto:Bru...@ba...] > > Gesendet: Montag, 28. Juli 2003 23:10 > > An: Stefan Krieger; Bruce McDonald; bab...@li....n= et > > Betreff: RE: [Babeldoc-devel] FlatToXMLStage produce invalid XML > > > > > > Ok, > > > > Stefan - are you going to be making the change? Notice that I have > > changed the implementation to use dom4j for the generation of the XML - > > this should make things a little simpler. > > > > Bruce. > > > > -----Original Message----- > > From: Stefan Krieger [mailto:ste...@co...] > > Sent: Monday, July 28, 2003 5:05 PM > > To: Bruce McDonald; bab...@li... > > Subject: AW: [Babeldoc-devel] FlatToXMLStage produce invalid XML > > > > > > Bruce, > > > > sorry for the delay. I am very busy, my project is on the finish line. > > First, I think, we have to invoke a XML encoding method in > > ConversionClient before the value is written to the stream. This should > > be a minor change. Second, we need the XML encoding prefix to specify > > the codepage of the XML document. This is important for us germans, > > because of the Umlauts (=E4=80=B6=E0=A0=80! > > > > Stefan > > > > > > -----Urspr=E0=A7=80liche Nachricht----- > > Von: Bruce McDonald [mailto:br...@mc...] > > Gesendet: Donnerstag, 24. Juli 2003 03:30 > > An: Stefan Krieger; bab...@li... > > Betreff: Re: [Babeldoc-devel] FlatToXMLStage produce invalid XML > > > > > > Hmmm, > > > > Good catch - how do you think that we can get this fixed? > > > > regards, > > Bruce. > > > > On Wednesday 23 July 2003 05:10 pm, Stefan Krieger wrote: > > > Hi, > > > > > > I just recognized that the FlatToXmlPipelineStage does not XML encode > > > the characters >,<,&,". > > > If the text file includes those characters, the result will be inval= id > > > > XML. > > > > > Regards, > > > Stefan > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET sites includi= ng > > > Data Reports, E-commerce, Portals, and Forums are available now. > > > Download today and enter to win an XBOX or Visual Studio .NET. > > > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_= 01 > >/01 > > > > > _______________________________________________ > > > Babeldoc-devel mailing list > > > Bab...@li... > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_= 01 > >/01 _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_= 01 > >/01 _______________________________________________ > > Babeldoc-devel mailing list > > Bab...@li... > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-08-07 21:06:20
|
Update of /cvsroot/babeldoc/babeldoc/readme/schema In directory sc8-pr-cvs1:/tmp/cvs-serv5223 Modified Files: conversion.xsd Log Message: added output document encoding. Index: conversion.xsd =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/readme/schema/conversion.xsd,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** conversion.xsd 24 Feb 2003 22:50:25 -0000 1.1.1.1 --- conversion.xsd 7 Aug 2003 21:06:18 -0000 1.2 *************** *** 52,55 **** --- 52,60 ---- </xs:annotation> </xs:element> + <xs:element name="encoding" type="xs:string" minOccurs="0"> + <xs:annotation> + <xs:documentation>The encoding string to use (if not specified, will use UTF-8)</xs:documentation> + </xs:annotation> + </xs:element> </xs:sequence> </xs:complexType> |
|
From: Bruce M. <br...@mc...> - 2003-08-07 20:43:00
|
Dejan, Is there a way to suppress journal ticket creation from the scanner? regards, Bruce. On Thursday 07 August 2003 10:44 am, Tim Mumford wrote: > Hi Bruce, > > I'm launching babeldoc with the scanner: > >babeldoc scanner > > So I'm not sure where to apply the -j flag. > (Sorry to bug you about this.) > > > -----Original Message----- > From: Bruce McDonald [mailto:br...@mc...] > Sent: Thursday, August 07, 2003 7:06 AM > To: Tim Mumford; br...@tr... > Subject: Re: Turning off Tickets dir creation > > Check out the -j flag - it stops any journalling. > > On Wednesday 06 August 2003 04:45 pm, Tim Mumford wrote: > > Hi Bruce, > > > > I am using v1.0.1 of Babeldoc. I was wondering if it is possible (and > > is > > > so how) to prevent the creation of the 'ticket directories'? > > > > > > > > Here is my simple journal configs: > > > > simpleJournalDir=tracking > > > > simpleJournalLog=tracking/babellog.log > > > > logMaxSize=5MB > > > > > > > > Thanks, > > > > > > > > -- Tim > > > > > > > > Tim Mumford |
|
From: <de...@us...> - 2003-08-07 18:29:24
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv5666/modules/core/src/com/babeldoc/core
Modified Files:
BabeldocCommand.java
Log Message:
I guess this will fix -v option problem
Index: BabeldocCommand.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/BabeldocCommand.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** BabeldocCommand.java 7 Aug 2003 08:46:35 -0000 1.14
--- BabeldocCommand.java 7 Aug 2003 18:29:21 -0000 1.15
***************
*** 165,175 ****
if (commandLine.hasOption('h')) {
printUsage();
! } else if (commandLine.hasOption('v')) {
setVerbose(true);
! } else if (commandLine.hasOption('d')) {
printConfigInfo();
! } else {
! execute(commandLine);
! }
}
--- 165,178 ----
if (commandLine.hasOption('h')) {
printUsage();
! return;
! };
! if (commandLine.hasOption('v')) {
setVerbose(true);
! };
! if (commandLine.hasOption('d')) {
printConfigInfo();
! };
! execute(commandLine);
!
}
|
|
From: McDonald, B. <Bru...@ba...> - 2003-08-07 15:26:50
|
I let the registration lapse :( Ok - I have renewed it for two years! Thanks David. -----Original Message----- From: David Glick [mailto:dg...@co...] Sent: Thursday, August 07, 2003 11:29 AM To: bab...@li... Subject: [Babeldoc-devel] Is the babeldoc server down? I can't reach http://www.babeldoc.com. Is it down? David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Babeldoc-devel mailing list Bab...@li... https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: David G. <dg...@co...> - 2003-08-07 15:18:08
|
I can't reach http://www.babeldoc.com. Is it down? David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: David G. <dg...@co...> - 2003-08-07 14:38:52
|
Hi Dejan, The latest build seems to be broken when using the -v flag, at least for me. The command line: babeldoc process -v -p pipelinetest -f test/inventory/soap-test.xml just returns with no console messages, but when I execute: babeldoc process -p pipelinetest -f test/inventory/soap-test.xml things process normally. If you're busy, I'll try to look at this problem tomorrow (my time) (PDT) (and it's a great day, too!). Thanks, David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: <de...@us...> - 2003-08-07 08:46:39
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light
In directory sc8-pr-cvs1:/tmp/cvs-serv25753/modules/core/src/com/babeldoc/core/config/light
Modified Files:
LightConfigCommand.java
Log Message:
Implementing Holywood principle
Index: LightConfigCommand.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light/LightConfigCommand.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** LightConfigCommand.java 5 Aug 2003 23:13:44 -0000 1.1
--- LightConfigCommand.java 7 Aug 2003 08:46:35 -0000 1.2
***************
*** 1,105 ****
! package com.babeldoc.core.config.light;
!
! import com.babeldoc.core.*;
! import org.apache.commons.cli.Options;
! import org.apache.commons.cli.OptionBuilder;
! import org.apache.commons.cli.CommandLine;
!
! import java.net.URL;
! import java.io.IOException;
! import java.util.Properties;
!
! /**
! */
! public class LightConfigCommand extends BabeldocCommand{
! public static final String SPACER = " ";
!
! /**
! * process the class
! *
! * @param args DOCUMENT ME!
! */
! public LightConfigCommand(String[] args) {
! super("lightconfig", I18n.get("core.config.light.command.desc"), args);
! }
!
!
! /**
! * Execute the command
! *
! * @param commandLine The command line.
! */
! public void execute(CommandLine commandLine) {
! super.execute(commandLine);
!
! if(commandLine.hasOption('l')) {
! String trackKey = null;
! if(commandLine.hasOption('t')) {
! trackKey = commandLine.getOptionValue('t');
! }
! listConfigFiles(commandLine.getOptionValue('l'), trackKey);
! }
! }
!
! /**
! * list the configuration information.
! *
! * @param configName name of the configuration file to list
! * @param trackKey option key in the configuration file to track
! */
! public void listConfigFiles(String configName, String trackKey) {
!
! // NOTE: copied from LightConfigService.mergePropertiesFileFromUserSearchPath
! configName = LightConfigService.getPropertyFileName(configName);
! // get all the 'config.properties' files that are/will be loaded
! URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath(configName, EnvironmentLoader.getSearchPaths());
!
! // display the name and contents of each config file
! System.out.println(I18n.get("core.config.light.command.list", configName));
! for (int i = urls.length - 1; i >= 0; --i) {
! URL url = urls[i];
! System.out.println(i+": " + url);
!
! if(trackKey!=null) {
! Properties properties = new Properties();
! try {
! properties.load(url.openStream());
! } catch (IOException e) {
! LogService.getInstance().logError(e);
! }
! if(properties.containsKey(trackKey)) {
! System.out.println(I18n.get("core.config.light.command.defined", trackKey,
! properties.getProperty(trackKey)));
! } else {
! System.out.println(I18n.get("core.config.light.command.notdefined", trackKey));
! }
! }
! }
! }
!
!
! /**
! * setup the options on the command line.
! *
! * @param options the options to access
! */
! public void setupCommandLine(Options options) {
! super.setupCommandLine(options);
!
! options.addOption(OptionBuilder.isRequired().hasArg()
! .withDescription(I18n.get("core.config.light.command.option.l"))
! .withLongOpt("list").create("l"));
! options.addOption(OptionBuilder.hasArg()
! .withDescription(I18n.get("core.config.light.command.option.t"))
! .withLongOpt("track").create("t"));
! }
!
! /**
! * Main entry point
! *
! * @param args the name of the stage and the name=value pairs
! */
! public static void main(String[] args) {
! new LightConfigCommand(args);
! }
! }
--- 1,105 ----
! package com.babeldoc.core.config.light;
!
! import com.babeldoc.core.*;
! import org.apache.commons.cli.Options;
! import org.apache.commons.cli.OptionBuilder;
! import org.apache.commons.cli.CommandLine;
!
! import java.net.URL;
! import java.io.IOException;
! import java.util.Properties;
!
! /**
! */
! public class LightConfigCommand extends BabeldocCommand{
! public static final String SPACER = " ";
!
! /**
! * process the class
! *
! * @param args DOCUMENT ME!
! */
! public LightConfigCommand(String[] args) {
! super("lightconfig", I18n.get("core.config.light.command.desc"), args);
! }
!
!
! /**
! * Execute the command
! *
! * @param commandLine The command line.
! */
! public void execute(CommandLine commandLine) {
! //super.execute(commandLine);
!
! if(commandLine.hasOption('l')) {
! String trackKey = null;
! if(commandLine.hasOption('t')) {
! trackKey = commandLine.getOptionValue('t');
! }
! listConfigFiles(commandLine.getOptionValue('l'), trackKey);
! }
! }
!
! /**
! * list the configuration information.
! *
! * @param configName name of the configuration file to list
! * @param trackKey option key in the configuration file to track
! */
! public void listConfigFiles(String configName, String trackKey) {
!
! // NOTE: copied from LightConfigService.mergePropertiesFileFromUserSearchPath
! configName = LightConfigService.getPropertyFileName(configName);
! // get all the 'config.properties' files that are/will be loaded
! URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath(configName, EnvironmentLoader.getSearchPaths());
!
! // display the name and contents of each config file
! System.out.println(I18n.get("core.config.light.command.list", configName));
! for (int i = urls.length - 1; i >= 0; --i) {
! URL url = urls[i];
! System.out.println(i+": " + url);
!
! if(trackKey!=null) {
! Properties properties = new Properties();
! try {
! properties.load(url.openStream());
! } catch (IOException e) {
! LogService.getInstance().logError(e);
! }
! if(properties.containsKey(trackKey)) {
! System.out.println(I18n.get("core.config.light.command.defined", trackKey,
! properties.getProperty(trackKey)));
! } else {
! System.out.println(I18n.get("core.config.light.command.notdefined", trackKey));
! }
! }
! }
! }
!
!
! /**
! * setup the options on the command line.
! *
! * @param options the options to access
! */
! public void setupCommandLine(Options options) {
! super.setupCommandLine(options);
!
! options.addOption(OptionBuilder.isRequired().hasArg()
! .withDescription(I18n.get("core.config.light.command.option.l"))
! .withLongOpt("list").create("l"));
! options.addOption(OptionBuilder.hasArg()
! .withDescription(I18n.get("core.config.light.command.option.t"))
! .withLongOpt("track").create("t"));
! }
!
! /**
! * Main entry point
! *
! * @param args the name of the stage and the name=value pairs
! */
! public static void main(String[] args) {
! new LightConfigCommand(args);
! }
! }
|
|
From: <de...@us...> - 2003-08-07 08:46:38
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv25753/modules/core/src/com/babeldoc/core
Modified Files:
BabeldocCommand.java
Log Message:
Implementing Holywood principle
Index: BabeldocCommand.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/BabeldocCommand.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** BabeldocCommand.java 5 Aug 2003 14:55:41 -0000 1.13
--- BabeldocCommand.java 7 Aug 2003 08:46:35 -0000 1.14
***************
*** 79,83 ****
import org.apache.commons.cli.ParseException;
-
/**
* <p>
--- 79,82 ----
***************
*** 91,282 ****
* @version 1.0
*/
! public class BabeldocCommand {
! /** Options */
! private Options options = new Options();
! /** The description of the command */
! private String desc;
! /** The name of the command */
! private String name;
! /** instance: is this verbose */
! private boolean verbose = false;
! /**
! * Had to lessen this from private access. This is because it is too strict
! * for all purposes.
! */
! protected BabeldocCommand() {
! }
! /**
! * construct the object. The arguments from the command line.
! *
! * @param name DOCUMENT ME!
! * @param desc DOCUMENT ME!
! * @param args the array of strings
! */
! protected BabeldocCommand(String name, String desc, String[] args) {
! this.name = name;
! this.desc = desc;
! setup();
! setupCommandLine(options);
! CommandLine commandLine = null;
! try {
! commandLine = new GnuParser().parse(options, args);
! } catch (ParseException e) {
! printUsage();
! return;
! }
! setupShutdownHook();
! execute(commandLine);
! }
! /**
! * Set the verbose flag
! *
! * @param verbose
! */
! public void setVerbose(boolean verbose) {
! this.verbose = verbose;
! }
! /**
! * get the verbose flag
! *
! * @return
! */
! public boolean isVerbose() {
! return verbose;
! }
! /**
! * execute the commandline. This must be overloaded to handle the command
! * line options
! *
! * @param commandLine the command line options that have been detectected
! */
! public void execute(CommandLine commandLine) {
! if (commandLine.hasOption('h')) {
! printUsage();
! } else if (commandLine.hasOption('v')) {
! setVerbose(true);
! }
! else if (commandLine.hasOption('d')) {
! printConfigInfo();
! }
! }
! /**
! * Stopping - execute all necessary shutdown processing.
! */
! public void finishUp() {
! }
! /**
! * print the usage instructions
! */
! public void printUsage() {
! System.out.println(name);
! System.out.println(desc);
! new HelpFormatter().printHelp(name, options);
! String version = ConfigService.getString("env/build", "babeldoc_version");
! System.out.println("\n" + com.babeldoc.core.I18n.get("001006", version));
! System.out.println(com.babeldoc.core.I18n.get("001007"));
! System.out.println(com.babeldoc.core.I18n.get("001008"));
! System.out.println(com.babeldoc.core.I18n.get("001009"));
! }
! /**
! * print configuration info
! */
! public void printConfigInfo() {
! // NOTE: copied from LightConfigService.mergePropertiesFileFromUserSearchPath
! // get all the 'config.properties' files that are/will be loaded
! URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath("env/config.properties",
! EnvironmentLoader.getSearchPaths());
! // display the name and contents of each config file
! System.out.println("Showing configuration files and contents:");
! for (int i = urls.length - 1; i >= 0; --i) {
! URL url = urls[i];
! System.out.println(" === " + url + " ===");
! try {
! BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
! String line;
! do {
! line = reader.readLine();
! if (line != null) {
! System.out.println(line);
! }
! }
! while (line != null);
! } catch (IOException e) {
! LogService.getInstance().logError(e);
! }
! }
! }
! /**
! * setup the options on the command line.
! *
! * @param options the options to access
! */
! public void setupCommandLine(Options options) {
! options.addOption("v", "verbose", false, com.babeldoc.core.I18n.get("001002"));
! options.addOption("h", "help" , false, com.babeldoc.core.I18n.get("001003"));
! options.addOption("d", "debug" , false, "Write config info to stdout");
! }
! /**
! * Setup the shutdown hook.
! */
! public void setupShutdownHook() {
! /**
! * TODO: DOCUMENT ME!
! *
! * @author $author$
! * @version $Revision$
! */
! class ShutMeDownNicely extends Thread {
! BabeldocCommand command;
! /**
! * Creates a new ShutMeDownNicely object.
! *
! * @param command DOCUMENT ME!
! */
! ShutMeDownNicely(BabeldocCommand command) {
! super("shutdown");
! this.command = command;
! }
! /**
! * TODO: DOCUMENT ME!
! */
! public void run() {
! LogService.getInstance().logDebug(I18n.get("001001"));
! command.finishUp();
! }
! }
! Runtime.getRuntime().addShutdownHook(new ShutMeDownNicely(this));
! }
! /**
! * Setup
! */
! protected void setup() {
! com.babeldoc.core.EnvironmentLoader.loadEnvironment();
! }
}
--- 90,301 ----
* @version 1.0
*/
! public abstract class BabeldocCommand {
! /** Options */
! private Options options = new Options();
! /** The description of the command */
! private String desc;
! /** The name of the command */
! private String name;
! /** instance: is this verbose */
! private boolean verbose = false;
! /**
! * Had to lessen this from private access. This is because it is too strict
! * for all purposes.
! */
! protected BabeldocCommand() {
! }
! /**
! * construct the object. The arguments from the command line.
! *
! * @param name DOCUMENT ME!
! * @param desc DOCUMENT ME!
! * @param args the array of strings
! */
! protected BabeldocCommand(String name, String desc, String[] args) {
! this.name = name;
! this.desc = desc;
! setup();
! setupCommandLine(options);
! CommandLine commandLine = null;
! try {
! commandLine = new GnuParser().parse(options, args);
! } catch (ParseException e) {
! printUsage();
! return;
! }
! setupShutdownHook();
! executeCommand(commandLine);
! }
! /**
! * Set the verbose flag
! *
! * @param verbose
! */
! public void setVerbose(boolean verbose) {
! this.verbose = verbose;
! }
! /**
! * get the verbose flag
! *
! * @return
! */
! public boolean isVerbose() {
! return verbose;
! }
! /**
! * execute the commandline. This must be overloaded to handle the command
! * line options
! *
! * @param commandLine the command line options that have been detectected
! */
! public void executeCommand(CommandLine commandLine) {
! if (commandLine.hasOption('h')) {
! printUsage();
! } else if (commandLine.hasOption('v')) {
! setVerbose(true);
! } else if (commandLine.hasOption('d')) {
! printConfigInfo();
! } else {
! execute(commandLine);
! }
! }
!
!
! /**
! * @param commandLine
! */
! public abstract void execute(CommandLine commandLine);
! /**
! * Stopping - execute all necessary shutdown processing.
! */
! public void finishUp() {
! }
! /**
! * print the usage instructions
! */
! public void printUsage() {
! System.out.println(name);
! System.out.println(desc);
! new HelpFormatter().printHelp(name, options);
! String version =
! ConfigService.getString("env/build", "babeldoc_version");
! System.out.println(
! "\n" + com.babeldoc.core.I18n.get("001006", version));
! System.out.println(com.babeldoc.core.I18n.get("001007"));
! System.out.println(com.babeldoc.core.I18n.get("001008"));
! System.out.println(com.babeldoc.core.I18n.get("001009"));
! }
! /**
! * print configuration info
! */
! public void printConfigInfo() {
! // NOTE: copied from LightConfigService.mergePropertiesFileFromUserSearchPath
! // get all the 'config.properties' files that are/will be loaded
! URL[] urls =
! ResourceLoader.getMatchingUrlsInSearchPath(
! "env/config.properties",
! EnvironmentLoader.getSearchPaths());
! // display the name and contents of each config file
! System.out.println("Showing configuration files and contents:");
! for (int i = urls.length - 1; i >= 0; --i) {
! URL url = urls[i];
! System.out.println(" === " + url + " ===");
! try {
! BufferedReader reader =
! new BufferedReader(new InputStreamReader(url.openStream()));
! String line;
! do {
! line = reader.readLine();
! if (line != null) {
! System.out.println(line);
! }
! } while (line != null);
! } catch (IOException e) {
! LogService.getInstance().logError(e);
! }
! }
! }
! /**
! * setup the options on the command line.
! *
! * @param options the options to access
! */
! public void setupCommandLine(Options options) {
! options.addOption(
! "v",
! "verbose",
! false,
! com.babeldoc.core.I18n.get("001002"));
! options.addOption(
! "h",
! "help",
! false,
! com.babeldoc.core.I18n.get("001003"));
! options.addOption("d", "debug", false, "Write config info to stdout");
! }
! /**
! * Setup the shutdown hook.
! */
! public void setupShutdownHook() {
! /**
! * TODO: DOCUMENT ME!
! *
! * @author $author$
! * @version $Revision$
! */
! class ShutMeDownNicely extends Thread {
! BabeldocCommand command;
! /**
! * Creates a new ShutMeDownNicely object.
! *
! * @param command DOCUMENT ME!
! */
! ShutMeDownNicely(BabeldocCommand command) {
! super("shutdown");
! this.command = command;
! }
! /**
! * TODO: DOCUMENT ME!
! */
! public void run() {
! LogService.getInstance().logDebug(I18n.get("001001"));
! command.finishUp();
! }
! }
! Runtime.getRuntime().addShutdownHook(new ShutMeDownNicely(this));
! }
!
! /**
! * Setup
! */
! protected void setup() {
! com.babeldoc.core.EnvironmentLoader.loadEnvironment();
! }
}
|
|
From: <de...@us...> - 2003-08-07 08:46:38
|
Update of /cvsroot/babeldoc/babeldoc/modules/soap/src/com/babeldoc/soap/pipeline/command
In directory sc8-pr-cvs1:/tmp/cvs-serv25753/modules/soap/src/com/babeldoc/soap/pipeline/command
Modified Files:
SoapPipelineFeeder.java
Log Message:
Implementing Holywood principle
Index: SoapPipelineFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/soap/src/com/babeldoc/soap/pipeline/command/SoapPipelineFeeder.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** SoapPipelineFeeder.java 27 Jun 2003 00:35:46 -0000 1.10
--- SoapPipelineFeeder.java 7 Aug 2003 08:46:35 -0000 1.11
***************
*** 174,178 ****
*/
public void execute(CommandLine commandLine) {
! super.execute(commandLine);
String file = null;
--- 174,178 ----
*/
public void execute(CommandLine commandLine) {
! //super.execute(commandLine);
String file = null;
|