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-05 23:28:32
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/i18n In directory sc8-pr-cvs1:/tmp/cvs-serv21227/config/i18n Modified Files: messages.properties Log Message: Now able to add arbitraty numbers of parameters to the XSL transformer thereby making the whole thing more powerful (I hope) Index: messages.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/i18n/messages.properties,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** messages.properties 5 Aug 2003 23:13:43 -0000 1.14 --- messages.properties 5 Aug 2003 23:28:30 -0000 1.15 *************** *** 372,376 **** core.pipeline.stage.enrich.desc=Adds attributes to the document. The value can be a velocity script. core.pipeline.stage.filewriter.desc=Writes the document to a disk file. The contents are written as binary or text data depending on the binary flag on the document. ! core.stage.xslTransform.desc=Transform the document (has to be XML) using this XSL script. The script can access all of the babeldoc internals. See the examples. core.pipeline.stage.externalapplication.description=This pipeline stage allows for external applications to be run. Optionally the pipeline document is piped to the application. --- 372,380 ---- core.pipeline.stage.enrich.desc=Adds attributes to the document. The value can be a velocity script. core.pipeline.stage.filewriter.desc=Writes the document to a disk file. The contents are written as binary or text data depending on the binary flag on the document. ! ! core.pipeline.stage.xslTransform.desc=Transform the document (has to be XML) using this XSL script. The script can access all of the babeldoc internals via a number of parameters. The parameters (accessed through the xsl:param element) which are always placed in the transformer are: pipelinestage and document. Other parameters may be placed on the transformer using the param option. ! core.pipeline.stage.xslTransform.file=The filename or URL to the XSL transformation file. If this is a file, then the XSL will be cached. If the file is modified, then the XSL document will be reloaded. ! core.pipeline.stage.xslTransform.script=An inline XSL document that could be used instead of the file option above. This will be cached. ! core.pipeline.stage.xslTransform.param=Complex configuration parameter (of form stage-name.param.param-name-n=param-value) of xsl:params that will be placed in the XSL transformer. This can significantly aid transformation tasks. core.pipeline.stage.externalapplication.description=This pipeline stage allows for external applications to be run. Optionally the pipeline document is piped to the application. |
|
From: <tr...@us...> - 2003-08-05 23:13:47
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light
In directory sc8-pr-cvs1:/tmp/cvs-serv17599/src/com/babeldoc/core/config/light
Modified Files:
LightConfigService.java
Added Files:
LightConfigCommand.java
Log Message:
LightConfig configuration tracing tool.
--- NEW FILE: LightConfigCommand.java ---
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);
}
}
Index: LightConfigService.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light/LightConfigService.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** LightConfigService.java 8 Jul 2003 02:46:50 -0000 1.11
--- LightConfigService.java 5 Aug 2003 23:13:44 -0000 1.12
***************
*** 126,129 ****
--- 126,146 ----
*/
public IConfig getConfig(String name) {
+ String newname = getPropertyFileName(name);
+
+ // System.out.println("Loading: "+ name);
+ Properties properties = mergePropertiesFileFromUserSearchPath(newname,
+ new Properties());
+
+ return new LightConfig(name, properties);
+ }
+
+ /**
+ * Get the name of the property file (adds properties to end of
+ * the name if necessary)
+ *
+ * @param name configuration file name
+ * @return name + .properties if necessary
+ */
+ static String getPropertyFileName(String name) {
String newname = name;
***************
*** 131,140 ****
newname += DOT_PROPERTIES;
}
!
! Properties properties = new Properties();
! // loadFromModules(newname, properties);
! mergePropertiesFileFromUserSearchPath(newname, properties);
!
! return new LightConfig(name, properties);
}
--- 148,152 ----
newname += DOT_PROPERTIES;
}
! return newname;
}
***************
*** 240,244 ****
* @param properties
*/
! private void mergePropertiesFileFromUserSearchPath(String name,
Properties properties) {
URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath(name,
--- 252,256 ----
* @param properties
*/
! Properties mergePropertiesFileFromUserSearchPath(String name,
Properties properties) {
URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath(name,
***************
*** 248,252 ****
URL url = urls[i];
- // System.out.println("Search path: "+url);
try {
properties.load(url.openStream());
--- 260,263 ----
***************
*** 255,258 ****
--- 266,270 ----
}
}
+ return properties;
}
}
|
|
From: <tr...@us...> - 2003-08-05 23:13:47
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/i18n
In directory sc8-pr-cvs1:/tmp/cvs-serv17599/config/i18n
Modified Files:
messages.properties
Log Message:
LightConfig configuration tracing tool.
Index: messages.properties
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/i18n/messages.properties,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** messages.properties 27 Jun 2003 03:36:21 -0000 1.13
--- messages.properties 5 Aug 2003 23:13:43 -0000 1.14
***************
*** 388,390 ****
core.module.command.option.create=Create the module cache (redundant)
core.module.command.option.delete=Delete the module cache (redundant)
! core.module.command.list.output=Module: {0} is dependant on: {1}
\ No newline at end of file
--- 388,399 ----
core.module.command.option.create=Create the module cache (redundant)
core.module.command.option.delete=Delete the module cache (redundant)
! core.module.command.list.output=Module: {0} is dependant on: {1}
!
! core.config.light.command.desc=Debug and track aspects of the light configuration
! core.config.light.command.list=Listing urls for the configuration: {0}
! core.config.light.command.defined= {0}={1}
! core.config.light.command.notdefined= {0} not (re)defined
! core.config.light.command.option.l=List all implementing configuration files for config
! core.config.light.command.option.t=Track a configuration value through all the configuration files
!
!
|
|
From: <tr...@us...> - 2003-08-05 23:13:47
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/service In directory sc8-pr-cvs1:/tmp/cvs-serv17599/config/service Modified Files: query.properties Log Message: LightConfig configuration tracing tool. Index: query.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/service/query.properties,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** query.properties 16 Jul 2003 22:45:26 -0000 1.9 --- query.properties 5 Aug 2003 23:13:44 -0000 1.10 *************** *** 19,23 **** PipelineStage.ZipArchiveWriter=com.babeldoc.core.pipeline.stage.ZipArchiveWriterPipelineStage PipelineStage.CallStage=com.babeldoc.core.pipeline.stage.CallStagePipelineStage ! PipelineStage.ExternalApplication=com.babeldoc.core.pipeline.stage.ExternalApplication Journal.simple=com.babeldoc.core.journal.simple.SimpleJournal --- 19,23 ---- PipelineStage.ZipArchiveWriter=com.babeldoc.core.pipeline.stage.ZipArchiveWriterPipelineStage PipelineStage.CallStage=com.babeldoc.core.pipeline.stage.CallStagePipelineStage ! PipelineStage.ExternalApplication=com.babeldoc.core.pipeline.stage.ExternalApplicationPipelineStage Journal.simple=com.babeldoc.core.journal.simple.SimpleJournal *************** *** 32,35 **** --- 32,36 ---- Command.process=com.babeldoc.core.pipeline.command.PipelineFeeder Command.module=com.babeldoc.core.module.BabeldocModuleCommand + Command.lightconfig=com.babeldoc.core.config.light.LightConfigCommand UserResourceFactory.simple=com.babeldoc.core.user.simple.SimpleResourceFactory *************** *** 38,44 **** Feeder.asynchronous=com.babeldoc.core.pipeline.feeder.AsynchronousFeeder ! ! ! PipelineStageProcessor.sync=com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor PipelineStageProcessor.async=com.babeldoc.core.pipeline.processor.AsyncPipelineStageProcessor PipelineStageProcessor.threadpool=com.babeldoc.core.pipeline.processor.ThreadPooledPipelineStageProcessor --- 39,43 ---- Feeder.asynchronous=com.babeldoc.core.pipeline.feeder.AsynchronousFeeder ! PipelineStageProcessor.sync=com.babeldoc.core.pipeline.processor.SyncPipelineStageProcessor PipelineStageProcessor.async=com.babeldoc.core.pipeline.processor.AsyncPipelineStageProcessor PipelineStageProcessor.threadpool=com.babeldoc.core.pipeline.processor.ThreadPooledPipelineStageProcessor |
|
From: McDonald, B. <Bru...@ba...> - 2003-08-05 19:06:00
|
David,
You have to specify the -l switch. If you do not, it complains and dies.
Looking at your code, I see that it searches for the file:
URL[] urls = ResourceLoader.getMatchingUrlsInSearchPath("env/config.properties",
EnvironmentLoader.getSearchPaths());
env/config.properties and nothing else.
Not sure how to search all configuration files. It really would represent a lot of information.
Regards,
Bruce.
------
Moving strings into the resource bundle.
There are two kinds of string: those with arguments and those without. For this purpose lets look at the those with arguments:
System.out.println("Filename: "+fileName+" is broken beyond repair");
Now, lets say that we needed to represent this as a resource bundle string and that this existed in the conversion module.
Well, open the modules/conversion/config/i18n/messages.properties file
and add a property:
conversion.bad.broke=Filename: {0} is broken beyond repair
Then goto the code that does the println, and convert the literal string to:
System.out.println(I18n.get("conversion.bad.broke", filename));
And all is done. Notice that the class I18n has the method get overloaded manytimes to cater to lots of additional arguments.
-----Original Message-----
From: David Glick [mailto:dg...@co...]
Sent: Tuesday, August 05, 2003 2:01 PM
To: McDonald, Bruce; bab...@li...
Subject: Re: [Babeldoc-devel] Config file dump committed; questions for
completing
Okay, I understand how you're using it, and I think I can make it work for my
scenario. If the '-l' and '-t' switches aren't present, does it default to
the original functionality, e..g list all config files and their contents?
Also, I had intended for the '-d' switch to be available for all modules to
output appropriate debug information. For example, a soap writer might dump
the soap envelope and all the protocol packets. This can also be
accomplished, I suppose, by increasing (decreasing? I always get confused
which way it goes to show more info) the logging level; is there currently a
way to set the log level on the command line?
Also, I still don't understand how to move hard-coded strings into the
resource bundles...?
Thanks,
David
On Tuesday 05 August 2003 10:34 am, McDonald, Bruce wrote:
> David,
>
> Interesting - I did not think of that but still I think that it will
> probably be just as useful. Here is a usage scenario:
>
> Lets say that the configuration 'pipeline/config' is somehow broken and we
> need to track the configuration key, documentation.type, the command:
>
> C:\work\vap_rpt>babeldoc lightconfig -l pipeline/config -t
> documentation.type Listing urls for the configuration:
> pipeline/config.properties
> 1:
> jar:file:/c:/download/babeldoc/build/lib/babeldoc_core.jar!/core/pipeline/c
>onfig.properties documentation.type = simple
> 0: file:/C:/work/vap_rpt/./pipeline/config.properties
> documentation.type Not defined
>
>
>
> This tells me that the file pipeline/config.properties appears twice in the
> configuration and the configuration key, documentation.type is defined in
> the first configuration only and its value is simple.
>
> regards,
> Bruce.
>
> -----Original Message-----
> From: David Glick [mailto:dg...@co...]
> Sent: Tuesday, August 05, 2003 1:39 PM
> To: McDonald, Bruce; bab...@li...
> Subject: Re: [Babeldoc-devel] Config file dump committed; questions for
> completing
>
>
> Yeah, that's just what I had planned for rev 2... :-)
>
> I like your additional functionality, but I'm unclear as to what the
> advantage is of changing it from a command line switch into a separate
> command. I had assumed that this would be most useful in conjunction with
> another command that was not operating the way you expected. I therefore
> intended for this switch to be added to the original command line so that
> you could re-run it and determine if the problem was in the configuration,
> or elsewhere. If it is now a separate command, how will be above scenario
> play out?
>
>
> David
>
> On Tuesday 05 August 2003 10:05 am, McDonald, Bruce wrote:
> > David,
> >
> > I am spending some time with this tool.
> >
> > Heres what I have done so far:
> >
> > 1. Extracted the code into a new command: lightconfig
> > 2. Added another parameter (-t) which tracks a configuration value. It
> > will indicate those files that override the configuration value.
> >
> > regards,
> > Bruce.
> >
> > -----Original Message-----
> > From: David Glick [mailto:dg...@co...]
> > Sent: Tuesday, August 05, 2003 11:15 AM
> > To: bab...@li...
> > Subject: [Babeldoc-devel] Config file dump committed; questions for
> > completing
> >
> >
> > Hi Bruce,
> >
> > I've committed my changes to dump the configuration files and contents.
> > Hopefully, the following questions will make sense:
> >
> > 1. In the setupCommandLine() method, I've hard-coded the description
> > string. I believe it should be changed into a reference key into the
> > resource bundles (as the other description strings are in the same
> > method), but I'm not sure if there is a formal way to do so. How do I
> > assign the appropriate resource key?
> >
> > 2. I added a method printConfigInfo(). It also has a hard-coded string
> > that should be changed. Same question as in #1 above.
> >
> > 3. Should the new '-d' option be added to the printUsage() method? It
> > wasn't clear to me where it actually should be put.
> >
> >
> > Thanks,
> >
> > David
--
David Glick
Transmit Consulting, Inc
619-475-4052
dg...@tr...
|
|
From: David G. <dg...@co...> - 2003-08-05 18:08:48
|
Okay, I understand how you're using it, and I think I can make it work for my scenario. If the '-l' and '-t' switches aren't present, does it default to the original functionality, e..g list all config files and their contents? Also, I had intended for the '-d' switch to be available for all modules to output appropriate debug information. For example, a soap writer might dump the soap envelope and all the protocol packets. This can also be accomplished, I suppose, by increasing (decreasing? I always get confused which way it goes to show more info) the logging level; is there currently a way to set the log level on the command line? Also, I still don't understand how to move hard-coded strings into the resource bundles...? Thanks, David On Tuesday 05 August 2003 10:34 am, McDonald, Bruce wrote: > David, > > Interesting - I did not think of that but still I think that it will > probably be just as useful. Here is a usage scenario: > > Lets say that the configuration 'pipeline/config' is somehow broken and we > need to track the configuration key, documentation.type, the command: > > C:\work\vap_rpt>babeldoc lightconfig -l pipeline/config -t > documentation.type Listing urls for the configuration: > pipeline/config.properties > 1: > jar:file:/c:/download/babeldoc/build/lib/babeldoc_core.jar!/core/pipeline/c >onfig.properties documentation.type = simple > 0: file:/C:/work/vap_rpt/./pipeline/config.properties > documentation.type Not defined > > > > This tells me that the file pipeline/config.properties appears twice in the > configuration and the configuration key, documentation.type is defined in > the first configuration only and its value is simple. > > regards, > Bruce. > > -----Original Message----- > From: David Glick [mailto:dg...@co...] > Sent: Tuesday, August 05, 2003 1:39 PM > To: McDonald, Bruce; bab...@li... > Subject: Re: [Babeldoc-devel] Config file dump committed; questions for > completing > > > Yeah, that's just what I had planned for rev 2... :-) > > I like your additional functionality, but I'm unclear as to what the > advantage is of changing it from a command line switch into a separate > command. I had assumed that this would be most useful in conjunction with > another command that was not operating the way you expected. I therefore > intended for this switch to be added to the original command line so that > you could re-run it and determine if the problem was in the configuration, > or elsewhere. If it is now a separate command, how will be above scenario > play out? > > > David > > On Tuesday 05 August 2003 10:05 am, McDonald, Bruce wrote: > > David, > > > > I am spending some time with this tool. > > > > Heres what I have done so far: > > > > 1. Extracted the code into a new command: lightconfig > > 2. Added another parameter (-t) which tracks a configuration value. It > > will indicate those files that override the configuration value. > > > > regards, > > Bruce. > > > > -----Original Message----- > > From: David Glick [mailto:dg...@co...] > > Sent: Tuesday, August 05, 2003 11:15 AM > > To: bab...@li... > > Subject: [Babeldoc-devel] Config file dump committed; questions for > > completing > > > > > > Hi Bruce, > > > > I've committed my changes to dump the configuration files and contents. > > Hopefully, the following questions will make sense: > > > > 1. In the setupCommandLine() method, I've hard-coded the description > > string. I believe it should be changed into a reference key into the > > resource bundles (as the other description strings are in the same > > method), but I'm not sure if there is a formal way to do so. How do I > > assign the appropriate resource key? > > > > 2. I added a method printConfigInfo(). It also has a hard-coded string > > that should be changed. Same question as in #1 above. > > > > 3. Should the new '-d' option be added to the printUsage() method? It > > wasn't clear to me where it actually should be put. > > > > > > Thanks, > > > > David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: McDonald, B. <Bru...@ba...> - 2003-08-05 17:35:30
|
David, Interesting - I did not think of that but still I think that it will probably be just as useful. Here is a usage scenario: Lets say that the configuration 'pipeline/config' is somehow broken and we need to track the configuration key, documentation.type, the command: C:\work\vap_rpt>babeldoc lightconfig -l pipeline/config -t documentation.type Listing urls for the configuration: pipeline/config.properties 1: jar:file:/c:/download/babeldoc/build/lib/babeldoc_core.jar!/core/pipeline/config.properties documentation.type = simple 0: file:/C:/work/vap_rpt/./pipeline/config.properties documentation.type Not defined This tells me that the file pipeline/config.properties appears twice in the configuration and the configuration key, documentation.type is defined in the first configuration only and its value is simple. regards, Bruce. -----Original Message----- From: David Glick [mailto:dg...@co...] Sent: Tuesday, August 05, 2003 1:39 PM To: McDonald, Bruce; bab...@li... Subject: Re: [Babeldoc-devel] Config file dump committed; questions for completing Yeah, that's just what I had planned for rev 2... :-) I like your additional functionality, but I'm unclear as to what the advantage is of changing it from a command line switch into a separate command. I had assumed that this would be most useful in conjunction with another command that was not operating the way you expected. I therefore intended for this switch to be added to the original command line so that you could re-run it and determine if the problem was in the configuration, or elsewhere. If it is now a separate command, how will be above scenario play out? David On Tuesday 05 August 2003 10:05 am, McDonald, Bruce wrote: > David, > > I am spending some time with this tool. > > Heres what I have done so far: > > 1. Extracted the code into a new command: lightconfig > 2. Added another parameter (-t) which tracks a configuration value. It > will indicate those files that override the configuration value. > > regards, > Bruce. > > -----Original Message----- > From: David Glick [mailto:dg...@co...] > Sent: Tuesday, August 05, 2003 11:15 AM > To: bab...@li... > Subject: [Babeldoc-devel] Config file dump committed; questions for > completing > > > Hi Bruce, > > I've committed my changes to dump the configuration files and contents. > Hopefully, the following questions will make sense: > > 1. In the setupCommandLine() method, I've hard-coded the description > string. I believe it should be changed into a reference key into the > resource bundles (as the other description strings are in the same method), > but I'm not sure if there is a formal way to do so. How do I assign the > appropriate resource key? > > 2. I added a method printConfigInfo(). It also has a hard-coded string > that should be changed. Same question as in #1 above. > > 3. Should the new '-d' option be added to the printUsage() method? It > wasn't clear to me where it actually should be put. > > > Thanks, > > David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: David G. <dg...@co...> - 2003-08-05 17:28:05
|
Yeah, that's just what I had planned for rev 2... :-) I like your additional functionality, but I'm unclear as to what the advantage is of changing it from a command line switch into a separate command. I had assumed that this would be most useful in conjunction with another command that was not operating the way you expected. I therefore intended for this switch to be added to the original command line so that you could re-run it and determine if the problem was in the configuration, or elsewhere. If it is now a separate command, how will be above scenario play out? David On Tuesday 05 August 2003 10:05 am, McDonald, Bruce wrote: > David, > > I am spending some time with this tool. > > Heres what I have done so far: > > 1. Extracted the code into a new command: lightconfig > 2. Added another parameter (-t) which tracks a configuration value. It > will indicate those files that override the configuration value. > > regards, > Bruce. > > -----Original Message----- > From: David Glick [mailto:dg...@co...] > Sent: Tuesday, August 05, 2003 11:15 AM > To: bab...@li... > Subject: [Babeldoc-devel] Config file dump committed; questions for > completing > > > Hi Bruce, > > I've committed my changes to dump the configuration files and contents. > Hopefully, the following questions will make sense: > > 1. In the setupCommandLine() method, I've hard-coded the description > string. I believe it should be changed into a reference key into the > resource bundles (as the other description strings are in the same method), > but I'm not sure if there is a formal way to do so. How do I assign the > appropriate resource key? > > 2. I added a method printConfigInfo(). It also has a hard-coded string > that should be changed. Same question as in #1 above. > > 3. Should the new '-d' option be added to the printUsage() method? It > wasn't clear to me where it actually should be put. > > > Thanks, > > David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: McDonald, B. <Bru...@ba...> - 2003-08-05 17:06:38
|
David, I am spending some time with this tool. Heres what I have done so far: 1. Extracted the code into a new command: lightconfig 2. Added another parameter (-t) which tracks a configuration value. It will indicate those files that override the configuration value. regards, Bruce. -----Original Message----- From: David Glick [mailto:dg...@co...] Sent: Tuesday, August 05, 2003 11:15 AM To: bab...@li... Subject: [Babeldoc-devel] Config file dump committed; questions for completing Hi Bruce, I've committed my changes to dump the configuration files and contents. Hopefully, the following questions will make sense: 1. In the setupCommandLine() method, I've hard-coded the description string. I believe it should be changed into a reference key into the resource bundles (as the other description strings are in the same method), but I'm not sure if there is a formal way to do so. How do I assign the appropriate resource key? 2. I added a method printConfigInfo(). It also has a hard-coded string that should be changed. Same question as in #1 above. 3. Should the new '-d' option be added to the printUsage() method? It wasn't clear to me where it actually should be put. Thanks, 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: Stefan K. <ste...@co...> - 2003-08-05 16:28:33
|
Well, transaction control in the stage is only useful in unmanaged environments. I would like to have this feature configurable. This would allow the use of this stage in J2EE environments with container managed transactions. At the moment this is not possible. Regards, Stefan -----Ursprüngliche Nachricht----- Von: bab...@li... [mailto:bab...@li...]Im Auftrag von Leech, Jonathan Gesendet: Montag, 4. August 2003 16:31 An: 'Dejan Krsmanovic'; bab...@li... Betreff: RE: [Babeldoc-devel] SqlWriter stage I didn't notice that you can control transaction rollback - that's a great feature to have. I'll also take a look at the batch capability. I'll let you know if I have any ideas. -Jonathan -----Original Message----- From: Dejan Krsmanovic [mailto:dej...@ya...] Sent: Sunday, August 03, 2003 11:03 AM To: bab...@li... Subject: [Babeldoc-devel] SqlWriter stage --- "Leech, Jonathan" <jl...@vi...> wrote: > Incidentally, I modified my pipeline configuration > from this: > XPathSplitter->XPathExtractor->SqlWriter > to this: > XslTransform->SqlWriter > and it really flies. So I used to split up the XML, > extract values from it, > then write each row to the database. Now I just > transform the XML into a > bunch of SQL statements and run them. Its much > faster and it might be a > good pattern in general. > > -Jonathan I did the same thing in pipeline configuration for one of projects I have been working on. In fact I wrote SqlWriter stage for that purpose. Since I had to manage few other problems I have introduced few properties that might be confusing at first. For example, you can define messages that should be returned in case of error instead of returning database error message. I guess you have noticed that you can control wether transaciton should be rolled back on first error or after all statements are executed. This was important for my project. You can also use batch statements altough I haven't noticed some improvements in my project when using batch statements with different batch sizes (I am using Oracle database). If you have some other ideas how to improve or simplify this class I would be glad to hear. Dejan __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- 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: David G. <dg...@co...> - 2003-08-05 15:03:54
|
Hi Bruce, I've committed my changes to dump the configuration files and contents. Hopefully, the following questions will make sense: 1. In the setupCommandLine() method, I've hard-coded the description string. I believe it should be changed into a reference key into the resource bundles (as the other description strings are in the same method), but I'm not sure if there is a formal way to do so. How do I assign the appropriate resource key? 2. I added a method printConfigInfo(). It also has a hard-coded string that should be changed. Same question as in #1 above. 3. Should the new '-d' option be added to the printUsage() method? It wasn't clear to me where it actually should be put. Thanks, David -- David Glick Transmit Consulting, Inc 619-475-4052 dg...@tr... |
|
From: <dgl...@us...> - 2003-08-05 14:55:46
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core
In directory sc8-pr-cvs1:/tmp/cvs-serv25987/modules/core/src/com/babeldoc/core
Modified Files:
BabeldocCommand.java
Log Message:
Added '-d' switch for dumping configuration files and contents
Index: BabeldocCommand.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/BabeldocCommand.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** BabeldocCommand.java 27 Jun 2003 02:19:57 -0000 1.12
--- BabeldocCommand.java 5 Aug 2003 14:55:41 -0000 1.13
***************
*** 66,69 ****
--- 66,74 ----
package com.babeldoc.core;
+ import java.io.BufferedReader;
+ import java.io.IOException;
+ import java.io.InputStreamReader;
+ import java.net.URL;
+
import com.babeldoc.core.config.ConfigService;
***************
*** 164,167 ****
--- 169,175 ----
setVerbose(true);
}
+ else if (commandLine.hasOption('d')) {
+ printConfigInfo();
+ }
}
***************
*** 189,192 ****
--- 197,233 ----
/**
+ * 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.
*
***************
*** 194,200 ****
*/
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"));
}
--- 235,241 ----
*/
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");
}
|
|
From: Bruce M. <br...@mc...> - 2003-08-05 03:30:44
|
Cool beans - welcome aboard!!! On Monday 04 August 2003 11:18 pm, David Glick wrote: > Okfine, I've uploaded the public key info. I'll be official in around 6 > hours. > > After that, I'll grab a new snapshot and then commit my changes. > > "With great powers come great responsibilities". I won't let you down (too > often) (except for in years that end with an odd or even digit). > > > David > > On Monday 04 August 2003 6:45 pm, Bruce McDonald wrote: > > You are there now. > > > > You need to generate a SSH private/public key and upload that to > > sourceforge - then you can use a CVS tool to access source code > > repository. > > > > regards, > > Bruce. > > > > On Monday 04 August 2003 09:11 pm, David Glick wrote: > > > Hi Bruce, > > > > > > I took a guess that, in order to provide you with a sourceforge ID, I > > > would need to register with sourceforge. I've just done so, and > > > dglick02 is my user ID. Am I there yet? > > > > > > David > > > > > > On Monday 04 August 2003 5:51 pm, Bruce McDonald wrote: > > > > It involves ritual sacrifice... > > > > > > > > Not. > > > > > > > > All I need from you is your sourceforge userid and then I can add you > > > > to the list. I can help you from then. > > > > > > > > regards, > > > > Bruce. > > > > > > > > On Monday 04 August 2003 08:19 pm, David Glick wrote: > > > > > Hi Bruce, > > > > > > > > > > I'm happy to become a Babeldoc developer; hopefully, I'll have > > > > > plenty more to contribute as my project shifts into high gear... > > > > > :-) Whom do I turn over my first-born to in order to make this > > > > > happen? > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > > > > > > David, > > > > > > > > > > > > In order to submit this directly into CVS, you will have to > > > > > > become a developer. Interested? As to your other question - I > > > > > > am not sure what you are trying to do - submit the code and lets > > > > > > have a look at it. > > > > > > > > > > > > regards, > > > > > > Bruce. > > > > > > > > > > > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > > > > > > I found some code in LightConfigService that parsed the config > > > > > > > files, so I copied it and things seem to be working. Now I > > > > > > > have a couple of questions: > > > > > > > > > > > > > > 1. It appears that an entry will need to be added to the > > > > > > > resource bundles to support the debug switch. Is there a > > > > > > > procedure for this? I'm not sure how the numbers are assigned, > > > > > > > nor how babelfish is used to generate the other translations. > > > > > > > > > > > > > > 2. How do I submit this? Should I even do so, or is this of > > > > > > > interest to only me? > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > > > > > > Dejan, > > > > > > > > > > > > > > > > Taking your suggestion that contributions are welcome (you > > > > > > > > were *serious*, right? :-)), I'm trying to implement a '-d' > > > > > > > > option to dump configuration info. I've gotten to the point > > > > > > > > where I can set and recognize the -d switch and I'm ready to > > > > > > > > dump the info. However, I can't seem to track where the > > > > > > > > configuration file is actually loaded. Could I ask for a > > > > > > > > pointer, module name, or even a riddle that might point me in > > > > > > > > the right direction? > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > > > > > > Note that some other features are not yet implemented in > > > > > > > > > 1.1. Remote scanner option is not implemented yet. > > > > > > > > > There are really many new features that can be implemented > > > > > > > > > in scanner module (I like your idea) but as always - there > > > > > > > > > are not much time! So every contribution is more than > > > > > > > > > welcome. > > > > > > > > > > > > > > > > > > Dejan > > > > > > > > > P.S. > > > > > > > > > You can submit your suggestion on Source Forge as new > > > > > > > > > feature suggestion. Just to prevent forgetting it... > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > > > > > > <bab...@li...> > > > > > > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > > broken? > > > > > > > > > > > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > > > > > > > > > > > I'd also like to suggest that, for me at least, one of > > > > > > > > > > the most difficult things to do is to figure out where > > > > > > > > > > initialization parameters are coming from, and whether > > > > > > > > > > they are correct. It would be very helpful to have a > > > > > > > > > > command line switch that would print out the path and > > > > > > > > > > contents of config files. Just a suggestion... :-) > > > > > > > > > > > > > > > > > > > > Thanks again for your help. I see that you've already > > > > > > > > > > made changes to > > > > > > > > > > > > > > > > > > CVS, so > > > > > > > > > > > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > > > > > > Obiviously, no workers (threads) is started. I guess > > > > > > > > > > > the problem is > > > > > > > > > > > > > > > > > > using > > > > > > > > > > > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. > > > > > > > > > > > Try to put configuration in default (scanner), > > > > > > > > > > > directory. I'll try to fix this bug > > > > > > > > > > > > > > > > > > as > > > > > > > > > > > > > > > > > > > > soon as possible... Note that I have just returned from > > > > > > > > > > > vacation ;) > > > > > > > > > > > > > > > > > > > > > > Dejan > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > > > > > > <bab...@li...> > > > > > > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > > > > broken? > > > > > > > > > > > > > > > > > > > > > > > Following the instructions in the scanner example, I > > > > > > > > > > > > created /tmp/in > > > > > > > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting > > > > > > > > > > > > feeder... <2003-08-03 19:24:28,023> INFO [main] : > > > > > > > > > > > > Initializing workers: <2003-08-03 19:24:28,039> INFO > > > > > > > > > > > > [main] : Starting workers... > > > > > > > > > > > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > Scanner directory config = directory > > > > > > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting > > > > > > > > > > > > thread: > > > > > > > > > > > > > > > > > > directory... > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread > > > > > > > > > > > > directory scanning <2003-08-03 19:23:19,662> INFO > > > > > > > > > > > > [directory] : Scanner directory found > > > > > > > > > > > > > > > > > > 1 > > > > > > > > > > > > > > > > > > > > > messages > > > > > > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : > > > > > > > > > > > > Processing 1 of total 1 messages > > > > > > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : > > > > > > > > > > > > Allocate ticket > > > > > > > > > > > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > > > > > > > > > > > for message stats.xml > > > > > > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : > > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > entry > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : > > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > > > > > transform > > > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : > > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > choose > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : > > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > writer > > > > > > > > > > > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > > > > > > David, all: > > > > > > > > > > > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner > > > > > > > > > > > > > codebase has > > > > > > > > > > > > > > > > > > changed. > > > > > > > > > > > > > > > > > > > > > > I have used the directory scanner recently and it > > > > > > > > > > > > > seems to work > > > > > > > > > > > > > > > > > > fine. > > > > > > > > > > > > > > > > > > > > What > > > > > > > > > > > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > > > > > > > > > > > regards, > > > > > > > > > > > > > Bruce. > > > > > > > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > > > > > > > > > > > I have been running the directory scanner > > > > > > > > > > > > > > regularly using the > > > > > > > > > > > > > > > > > > 1.0.2 > > > > > > > > > > > > > > > > > > > > > > > release. I've recently switched to the current > > > > > > > > > > > > > > CVS release (1.1.5-dev) and the directory scanner > > > > > > > > > > > > > > appears to not be well. > > > > > > > > > > > > > > > > > > I've > > > > > > > > > > > > > > > > > > > > > > > gone back and tried the examples, and the scanner > > > > > > > > > > > > > > example works > > > > > > > > > > > > > > > > > > fine > > > > > > > > > > > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > > > > > > > > > > > not > > > > > > > > > > > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------- > > > > > > > > > > > > >-- -- 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.asp > > > > > > > > >ne t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > > > Bab...@li... > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeld > > > > > > > > > > > > >oc -d ev el > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > > David Glick > > > > > > > > > > > > 619-475-4052 > > > > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------- > > > > > > > > > > > >-- 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.asp > > > > > > > > >ne t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > > Bab...@li... > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc > > > > > > > > > > > >-d ev el > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > > 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.asp > > > > > > > > >ne t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > Bab...@li... > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-d > > > > > > > > > > >ev el > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > David Glick > > > > > > > > > > 619-475-4052 > > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > 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.asp > > > > > > > > >ne t_ 07 23 03 _0 1/ 01 > > > > > > > > > _______________________________________________ > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > Bab...@li... > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: David G. <dg...@co...> - 2003-08-05 03:07:37
|
Okfine, I've uploaded the public key info. I'll be official in around 6 hours. After that, I'll grab a new snapshot and then commit my changes. "With great powers come great responsibilities". I won't let you down (too often) (except for in years that end with an odd or even digit). David On Monday 04 August 2003 6:45 pm, Bruce McDonald wrote: > You are there now. > > You need to generate a SSH private/public key and upload that to > sourceforge - then you can use a CVS tool to access source code repository. > > regards, > Bruce. > > On Monday 04 August 2003 09:11 pm, David Glick wrote: > > Hi Bruce, > > > > I took a guess that, in order to provide you with a sourceforge ID, I > > would need to register with sourceforge. I've just done so, and dglick02 > > is my user ID. Am I there yet? > > > > David > > > > On Monday 04 August 2003 5:51 pm, Bruce McDonald wrote: > > > It involves ritual sacrifice... > > > > > > Not. > > > > > > All I need from you is your sourceforge userid and then I can add you > > > to the list. I can help you from then. > > > > > > regards, > > > Bruce. > > > > > > On Monday 04 August 2003 08:19 pm, David Glick wrote: > > > > Hi Bruce, > > > > > > > > I'm happy to become a Babeldoc developer; hopefully, I'll have plenty > > > > more to contribute as my project shifts into high gear... :-) Whom > > > > do I turn over my first-born to in order to make this happen? > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > > > > > David, > > > > > > > > > > In order to submit this directly into CVS, you will have to become > > > > > a developer. Interested? As to your other question - I am not > > > > > sure what you are trying to do - submit the code and lets have a > > > > > look at it. > > > > > > > > > > regards, > > > > > Bruce. > > > > > > > > > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > > > > > I found some code in LightConfigService that parsed the config > > > > > > files, so I copied it and things seem to be working. Now I have > > > > > > a couple of questions: > > > > > > > > > > > > 1. It appears that an entry will need to be added to the resource > > > > > > bundles to support the debug switch. Is there a procedure for > > > > > > this? I'm not sure how the numbers are assigned, nor how > > > > > > babelfish is used to generate the other translations. > > > > > > > > > > > > 2. How do I submit this? Should I even do so, or is this of > > > > > > interest to only me? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > David > > > > > > > > > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > > > > > Dejan, > > > > > > > > > > > > > > Taking your suggestion that contributions are welcome (you were > > > > > > > *serious*, right? :-)), I'm trying to implement a '-d' option > > > > > > > to dump configuration info. I've gotten to the point where I > > > > > > > can set and recognize the -d switch and I'm ready to dump the > > > > > > > info. However, I can't seem to track where the configuration > > > > > > > file is actually loaded. Could I ask for a pointer, module > > > > > > > name, or even a riddle that might point me in the right > > > > > > > direction? > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > > > > > Note that some other features are not yet implemented in 1.1. > > > > > > > > Remote scanner option is not implemented yet. > > > > > > > > There are really many new features that can be implemented in > > > > > > > > scanner module (I like your idea) but as always - there are > > > > > > > > not much time! So every contribution is more than welcome. > > > > > > > > > > > > > > > > Dejan > > > > > > > > P.S. > > > > > > > > You can submit your suggestion on Source Forge as new feature > > > > > > > > suggestion. Just to prevent forgetting it... > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > > > > > <bab...@li...> > > > > > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > broken? > > > > > > > > > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > > > > > > > > > I'd also like to suggest that, for me at least, one of the > > > > > > > > > most difficult things to do is to figure out where > > > > > > > > > initialization parameters are coming from, and whether they > > > > > > > > > are correct. It would be very helpful to have a command > > > > > > > > > line switch that would print out the path and contents of > > > > > > > > > config files. Just a suggestion... :-) > > > > > > > > > > > > > > > > > > Thanks again for your help. I see that you've already made > > > > > > > > > changes to > > > > > > > > > > > > > > > > CVS, so > > > > > > > > > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > > > > > Obiviously, no workers (threads) is started. I guess the > > > > > > > > > > problem is > > > > > > > > > > > > > > > > using > > > > > > > > > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. > > > > > > > > > > Try to put configuration in default (scanner), directory. > > > > > > > > > > I'll try to fix this bug > > > > > > > > > > > > > > > > as > > > > > > > > > > > > > > > > > > soon as possible... Note that I have just returned from > > > > > > > > > > vacation ;) > > > > > > > > > > > > > > > > > > > > Dejan > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > > > > > <bab...@li...> > > > > > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > > > broken? > > > > > > > > > > > > > > > > > > > > > Following the instructions in the scanner example, I > > > > > > > > > > > created /tmp/in > > > > > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting > > > > > > > > > > > feeder... <2003-08-03 19:24:28,023> INFO [main] : > > > > > > > > > > > Initializing workers: <2003-08-03 19:24:28,039> INFO > > > > > > > > > > > [main] : Starting workers... > > > > > > > > > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > Scanner directory config = directory > > > > > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting > > > > > > > > > > > thread: > > > > > > > > > > > > > > > > directory... > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread > > > > > > > > > > > directory scanning <2003-08-03 19:23:19,662> INFO > > > > > > > > > > > [directory] : Scanner directory found > > > > > > > > > > > > > > > > 1 > > > > > > > > > > > > > > > > > > > messages > > > > > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : > > > > > > > > > > > Processing 1 of total 1 messages > > > > > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate > > > > > > > > > > > ticket > > > > > > > > > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > > > > > > > > > for message stats.xml > > > > > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > entry > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > > > transform > > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > choose > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : > > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > writer > > > > > > > > > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > > > > > David, all: > > > > > > > > > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner > > > > > > > > > > > > codebase has > > > > > > > > > > > > > > > > changed. > > > > > > > > > > > > > > > > > > > > I have used the directory scanner recently and it > > > > > > > > > > > > seems to work > > > > > > > > > > > > > > > > fine. > > > > > > > > > > > > > > > > > > What > > > > > > > > > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > > > > > > > > > regards, > > > > > > > > > > > > Bruce. > > > > > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > > > > > > > > > I have been running the directory scanner regularly > > > > > > > > > > > > > using the > > > > > > > > > > > > > > > > 1.0.2 > > > > > > > > > > > > > > > > > > > > > release. I've recently switched to the current CVS > > > > > > > > > > > > > release (1.1.5-dev) and the directory scanner > > > > > > > > > > > > > appears to not be well. > > > > > > > > > > > > > > > > I've > > > > > > > > > > > > > > > > > > > > > gone back and tried the examples, and the scanner > > > > > > > > > > > > > example works > > > > > > > > > > > > > > > > fine > > > > > > > > > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > > > > > > > > > not > > > > > > > > > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > > > > > > > > > ----------------------------------------------------- > > > > > > > > > > > >-- 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.aspne > > > > > > > >t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > > Bab...@li... > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc > > > > > > > > > > > >-d ev el > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > > David Glick > > > > > > > > > > > 619-475-4052 > > > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > > 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.aspne > > > > > > > >t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > Bab...@li... > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-d > > > > > > > > > > >ev el > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > 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.aspne > > > > > > > >t_ 07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > Bab...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-dev > > > > > > > > > >el > > > > > > > > > > > > > > > > > > -- > > > > > > > > > David Glick > > > > > > > > > 619-475-4052 > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > 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.aspne > > > > > > > >t_ 07 23 03 _0 1/ 01 > > > > > > > > _______________________________________________ > > > > > > > > Babeldoc-devel mailing list > > > > > > > > Bab...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick 619-475-4052 dg...@co... |
|
From: Bruce M. <br...@mc...> - 2003-08-05 01:45:26
|
You are there now. You need to generate a SSH private/public key and upload that to sourceforge - then you can use a CVS tool to access source code repository. regards, Bruce. On Monday 04 August 2003 09:11 pm, David Glick wrote: > Hi Bruce, > > I took a guess that, in order to provide you with a sourceforge ID, I would > need to register with sourceforge. I've just done so, and dglick02 is my > user ID. Am I there yet? > > David > > On Monday 04 August 2003 5:51 pm, Bruce McDonald wrote: > > It involves ritual sacrifice... > > > > Not. > > > > All I need from you is your sourceforge userid and then I can add you to > > the list. I can help you from then. > > > > regards, > > Bruce. > > > > On Monday 04 August 2003 08:19 pm, David Glick wrote: > > > Hi Bruce, > > > > > > I'm happy to become a Babeldoc developer; hopefully, I'll have plenty > > > more to contribute as my project shifts into high gear... :-) Whom do > > > I turn over my first-born to in order to make this happen? > > > > > > Thanks, > > > > > > David > > > > > > On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > > > > David, > > > > > > > > In order to submit this directly into CVS, you will have to become a > > > > developer. Interested? As to your other question - I am not sure > > > > what you are trying to do - submit the code and lets have a look at > > > > it. > > > > > > > > regards, > > > > Bruce. > > > > > > > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > > > > I found some code in LightConfigService that parsed the config > > > > > files, so I copied it and things seem to be working. Now I have a > > > > > couple of questions: > > > > > > > > > > 1. It appears that an entry will need to be added to the resource > > > > > bundles to support the debug switch. Is there a procedure for > > > > > this? I'm not sure how the numbers are assigned, nor how babelfish > > > > > is used to generate the other translations. > > > > > > > > > > 2. How do I submit this? Should I even do so, or is this of > > > > > interest to only me? > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > > > > Dejan, > > > > > > > > > > > > Taking your suggestion that contributions are welcome (you were > > > > > > *serious*, right? :-)), I'm trying to implement a '-d' option to > > > > > > dump configuration info. I've gotten to the point where I can > > > > > > set and recognize the -d switch and I'm ready to dump the info. > > > > > > However, I can't seem to track where the configuration file is > > > > > > actually loaded. Could I ask for a pointer, module name, or even > > > > > > a riddle that might point me in the right direction? > > > > > > > > > > > > Thanks, > > > > > > > > > > > > David > > > > > > > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > > > > Note that some other features are not yet implemented in 1.1. > > > > > > > Remote scanner option is not implemented yet. > > > > > > > There are really many new features that can be implemented in > > > > > > > scanner module (I like your idea) but as always - there are not > > > > > > > much time! So every contribution is more than welcome. > > > > > > > > > > > > > > Dejan > > > > > > > P.S. > > > > > > > You can submit your suggestion on Source Forge as new feature > > > > > > > suggestion. Just to prevent forgetting it... > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > > > > <bab...@li...> > > > > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > > > > > > > I'd also like to suggest that, for me at least, one of the > > > > > > > > most difficult things to do is to figure out where > > > > > > > > initialization parameters are coming from, and whether they > > > > > > > > are correct. It would be very helpful to have a command line > > > > > > > > switch that would print out the path and contents of config > > > > > > > > files. Just a suggestion... :-) > > > > > > > > > > > > > > > > Thanks again for your help. I see that you've already made > > > > > > > > changes to > > > > > > > > > > > > > > CVS, so > > > > > > > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > > > > Obiviously, no workers (threads) is started. I guess the > > > > > > > > > problem is > > > > > > > > > > > > > > using > > > > > > > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. Try > > > > > > > > > to put configuration in default (scanner), directory. I'll > > > > > > > > > try to fix this bug > > > > > > > > > > > > > > as > > > > > > > > > > > > > > > > soon as possible... Note that I have just returned from > > > > > > > > > vacation ;) > > > > > > > > > > > > > > > > > > Dejan > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > > > > <bab...@li...> > > > > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > > broken? > > > > > > > > > > > > > > > > > > > Following the instructions in the scanner example, I > > > > > > > > > > created /tmp/in > > > > > > > > > > > > > > and > > > > > > > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting > > > > > > > > > > feeder... <2003-08-03 19:24:28,023> INFO [main] : > > > > > > > > > > Initializing workers: <2003-08-03 19:24:28,039> INFO > > > > > > > > > > [main] : Starting workers... > > > > > > > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > Scanner directory config = directory > > > > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting > > > > > > > > > > thread: > > > > > > > > > > > > > > directory... > > > > > > > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread > > > > > > > > > > directory scanning <2003-08-03 19:23:19,662> INFO > > > > > > > > > > [directory] : Scanner directory found > > > > > > > > > > > > > > 1 > > > > > > > > > > > > > > > > > messages > > > > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : Processing > > > > > > > > > > 1 of total 1 messages > > > > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate > > > > > > > > > > ticket > > > > > > > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > > > > > > > for message stats.xml > > > > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > entry > > > > > > > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > > > transform > > > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > choose > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : > > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > writer > > > > > > > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > > > > David, all: > > > > > > > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner > > > > > > > > > > > codebase has > > > > > > > > > > > > > > changed. > > > > > > > > > > > > > > > > > > I have used the directory scanner recently and it seems > > > > > > > > > > > to work > > > > > > > > > > > > > > fine. > > > > > > > > > > > > > > > > What > > > > > > > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > > > > > > > regards, > > > > > > > > > > > Bruce. > > > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > > > > > > > I have been running the directory scanner regularly > > > > > > > > > > > > using the > > > > > > > > > > > > > > 1.0.2 > > > > > > > > > > > > > > > > > > > release. I've recently switched to the current CVS > > > > > > > > > > > > release (1.1.5-dev) and the directory scanner appears > > > > > > > > > > > > to not be well. > > > > > > > > > > > > > > I've > > > > > > > > > > > > > > > > > > > gone back and tried the examples, and the scanner > > > > > > > > > > > > example works > > > > > > > > > > > > > > fine > > > > > > > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > > > > > > > not > > > > > > > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > > 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_ > > > > > > >07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > > Bab...@li... > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-d > > > > > > > > > > >ev el > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > David Glick > > > > > > > > > > 619-475-4052 > > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > 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_ > > > > > > >07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > Bab...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-dev > > > > > > > > > >el > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > 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_ > > > > > > >07 23 03 _0 1/ 01 > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > Bab...@li... > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > > > > > -- > > > > > > > > David Glick > > > > > > > > 619-475-4052 > > > > > > > > dg...@co... > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > 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_ > > > > > > >07 23 03 _0 1/ 01 > > > > > > > _______________________________________________ Babeldoc-devel > > > > > > > mailing list > > > > > > > Bab...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: David G. <dg...@co...> - 2003-08-05 01:00:55
|
Hi Bruce, I took a guess that, in order to provide you with a sourceforge ID, I would need to register with sourceforge. I've just done so, and dglick02 is my user ID. Am I there yet? David On Monday 04 August 2003 5:51 pm, Bruce McDonald wrote: > It involves ritual sacrifice... > > Not. > > All I need from you is your sourceforge userid and then I can add you to > the list. I can help you from then. > > regards, > Bruce. > > On Monday 04 August 2003 08:19 pm, David Glick wrote: > > Hi Bruce, > > > > I'm happy to become a Babeldoc developer; hopefully, I'll have plenty > > more to contribute as my project shifts into high gear... :-) Whom do I > > turn over my first-born to in order to make this happen? > > > > Thanks, > > > > David > > > > On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > > > David, > > > > > > In order to submit this directly into CVS, you will have to become a > > > developer. Interested? As to your other question - I am not sure what > > > you are trying to do - submit the code and lets have a look at it. > > > > > > regards, > > > Bruce. > > > > > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > > > I found some code in LightConfigService that parsed the config files, > > > > so I copied it and things seem to be working. Now I have a couple of > > > > questions: > > > > > > > > 1. It appears that an entry will need to be added to the resource > > > > bundles to support the debug switch. Is there a procedure for this? > > > > I'm not sure how the numbers are assigned, nor how babelfish is used > > > > to generate the other translations. > > > > > > > > 2. How do I submit this? Should I even do so, or is this of interest > > > > to only me? > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > > > Dejan, > > > > > > > > > > Taking your suggestion that contributions are welcome (you were > > > > > *serious*, right? :-)), I'm trying to implement a '-d' option to > > > > > dump configuration info. I've gotten to the point where I can set > > > > > and recognize the -d switch and I'm ready to dump the info. > > > > > However, I can't seem to track where the configuration file is > > > > > actually loaded. Could I ask for a pointer, module name, or even a > > > > > riddle that might point me in the right direction? > > > > > > > > > > Thanks, > > > > > > > > > > David > > > > > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > > > Note that some other features are not yet implemented in 1.1. > > > > > > Remote scanner option is not implemented yet. > > > > > > There are really many new features that can be implemented in > > > > > > scanner module (I like your idea) but as always - there are not > > > > > > much time! So every contribution is more than welcome. > > > > > > > > > > > > Dejan > > > > > > P.S. > > > > > > You can submit your suggestion on Source Forge as new feature > > > > > > suggestion. Just to prevent forgetting it... > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "David Glick" <dg...@co...> > > > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > > > <bab...@li...> > > > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > > > > > I'd also like to suggest that, for me at least, one of the most > > > > > > > difficult things to do is to figure out where initialization > > > > > > > parameters are coming from, and whether they are correct. It > > > > > > > would be very helpful to have a command line switch that would > > > > > > > print out the path and contents of config files. Just a > > > > > > > suggestion... :-) > > > > > > > > > > > > > > Thanks again for your help. I see that you've already made > > > > > > > changes to > > > > > > > > > > > > CVS, so > > > > > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > > > Obiviously, no workers (threads) is started. I guess the > > > > > > > > problem is > > > > > > > > > > > > using > > > > > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. Try > > > > > > > > to put configuration in default (scanner), directory. I'll > > > > > > > > try to fix this bug > > > > > > > > > > > > as > > > > > > > > > > > > > > soon as possible... Note that I have just returned from > > > > > > > > vacation ;) > > > > > > > > > > > > > > > > Dejan > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > > > <bab...@li...> > > > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner > > > > > > > > broken? > > > > > > > > > > > > > > > > > Following the instructions in the scanner example, I > > > > > > > > > created /tmp/in > > > > > > > > > > > > and > > > > > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting > > > > > > > > > feeder... <2003-08-03 19:24:28,023> INFO [main] : > > > > > > > > > Initializing workers: <2003-08-03 19:24:28,039> INFO > > > > > > > > > [main] : Starting workers... > > > > > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > Scanner directory config = directory > > > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting thread: > > > > > > > > > > > > directory... > > > > > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread directory > > > > > > > > > scanning <2003-08-03 19:23:19,662> INFO [directory] : > > > > > > > > > Scanner directory found > > > > > > > > > > > > 1 > > > > > > > > > > > > > > > messages > > > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : Processing 1 > > > > > > > > > of total 1 messages > > > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate > > > > > > > > > ticket > > > > > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > > > > > for message stats.xml > > > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : > > > > > > > > > PipelineStage name: > > > > > > > > > > > > entry > > > > > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : > > > > > > > > > PipelineStage name: > > > > > > > > > > > > > > > > transform > > > > > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : > > > > > > > > > PipelineStage name: > > > > > > > > > > > > choose > > > > > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : > > > > > > > > > PipelineStage name: > > > > > > > > > > > > writer > > > > > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > > > David, all: > > > > > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner codebase > > > > > > > > > > has > > > > > > > > > > > > changed. > > > > > > > > > > > > > > > > I have used the directory scanner recently and it seems > > > > > > > > > > to work > > > > > > > > > > > > fine. > > > > > > > > > > > > > > What > > > > > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > > > > > regards, > > > > > > > > > > Bruce. > > > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > > > > > I have been running the directory scanner regularly > > > > > > > > > > > using the > > > > > > > > > > > > 1.0.2 > > > > > > > > > > > > > > > > > release. I've recently switched to the current CVS > > > > > > > > > > > release (1.1.5-dev) and the directory scanner appears > > > > > > > > > > > to not be well. > > > > > > > > > > > > I've > > > > > > > > > > > > > > > > > gone back and tried the examples, and the scanner > > > > > > > > > > > example works > > > > > > > > > > > > fine > > > > > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > > > > > not > > > > > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > 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_07 > > > > > >23 03 _0 1/ 01 > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > > Bab...@li... > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-dev > > > > > > > > > >el > > > > > > > > > > > > > > > > > > -- > > > > > > > > > David Glick > > > > > > > > > 619-475-4052 > > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > 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_07 > > > > > >23 03 _0 1/ 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_07 > > > > > >23 03 _0 1/ 01 > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > Babeldoc-devel mailing list > > > > > > > > Bab...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > > > -- > > > > > > > David Glick > > > > > > > 619-475-4052 > > > > > > > dg...@co... > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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_07 > > > > > >23 03 _0 1/ 01 _______________________________________________ > > > > > > Babeldoc-devel mailing list > > > > > > Bab...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick 619-475-4052 dg...@co... |
|
From: Bruce M. <br...@mc...> - 2003-08-05 00:54:16
|
Bill, Sorry that your initial experiences are not going so smoothly. I would suggest starting with a fresh tomcat 4.1 installation. I want to be sure that you are not getting some kind of weird interplay with other shared libraries. Reading code is probably not going to help. And the documentation for this is almost non-existant (hint, hint :) regards, Bruce. On Monday 04 August 2003 08:38 pm, Bill Harrelson wrote: > Bruce, > > Thanks for the response. At this point I still consider myself a user, not > a developer, otherwise I would do as you suggest. It is a bit more > commitment at this time than I can manage (for the next little while), and > I was just trying to get it running. I've found very little documentation, > and just wondered if there was any that you could point me to, or perhaps > (from this suggestion, I should start reading the code.) > > I've seen weird behavior like this from CLASSPATH settings, or other > environment variable settings. Is there somewhere that those requirements > are listed?? > > (I've read the .bat files for catalina.bat, but suspect that something > more might be required. - or maybe there's a conflict as there is a lot > else running under my tomcat. Maybe that's the ticket - try to run a fresh > tomcat with not much else in it and see what happens and then put other > stuff back til it breaks if the initial one is okay.) > > Thanks, > > Bill > > On 31 Jul 2003 at 21:29, Bruce McDonald wrote: > > I have been thinking about this for some time now and no insights > > strike me... Can you debug (or put System.out.printlns) in the > > console servlet and try to figure out where the execution path is > > failing? > > > > regards, > > Bruce. > > > > On Thursday 31 July 2003 12:30 am, Bill Harrelson wrote: > > > I'm having what looks to me like a configuration problem: > > > > > > I'm using Babeldoc 1.0, tomcat 4.1.24. I'm doing this on my personal > > > machine for testing. > > > > > > The log entries for Tomcat are: > > > 2003-07-22 17:56:38 HostConfig[localhost]: Deploying web application > > > directory babeldoc-console 2003-07-22 17:56:38 > > > StandardHost[localhost]: Installing web application at context path > > > /babeldoc- console from URL > > > file:C:\jakarta-tomcat-4.1.24\webapps\babeldoc-console 2003-07-22 > > > 17:56:38 WebappLoader[/babeldoc-console]: Deploying class > > > repositories to work directory > > > C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\babeldoc-console > > > 2003-07-22 17:56:38 StandardManager[/babeldoc-console]: Seeding > > > random number generator class java.security.SecureRandom 2003-07-22 > > > 17:56:38 StandardManager[/babeldoc-console]: Seeding of random > > > number generator has been completed 2003-07-22 17:56:40 > > > StandardWrapper[/babeldoc-console:default]: Loading container > > > servlet default 2003-07-22 17:56:40 > > > StandardWrapper[/babeldoc-console:invoker]: Loading container > > > servlet invoker 2003-07-22 17:58:49 > > > StandardWrapper[/manager:HTMLManager]: Loading container servlet > > > HTMLManager 2003-07-22 17:58:49 HTMLManager: init: Associated with > > > Deployer 'localhost' 2003-07-22 17:58:49 HTMLManager: init: Global > > > resources are available 2003-07-22 17:58:49 HTMLManager: list: > > > Listing contexts for virtual host 'localhost' > > > > > > > > > > > > Which all seem okay. There is also a velocity log indicating that > > > velocity has started successfully. > > > > > > When I reference the url: > > > http://localhost/babeldoc-console/servlet/Console the response > > > returned is: > > > > > > <html><body></body></html> > > > So, the servlet is serving, but I must have something wrong in the > > > configuration somewhere. > > > > > > When I reference localhost/babeldoc-console/index.html the response > > > is: > > > > > > <html> > > > <head> > > > </head> > > > <frameset cols="100,*"> > > > <frame name="navigation" src="navigation.vm" noresize > > > frameborder=0> > > > <frame name="main" src="main.vm" noresize > > > frameborder=0> > > > </frameset> > > > <body></body> > > > </html> > > > > > > but the screen is blank. > > > > > > When i reference localhost/babeldoc-console/navigation.vm the > > > response is: <html><body></body></html> > > > > > > When I reference localhost/babeldoc-console/main.vm the response is > > > the same. > > > > > > I am suspecting a velocity set-up problem, but don't know where to > > > start looking, as the web.xml file has the mapping: > > > <servlet-mapping> > > > <servlet-name>ConsoleServlet</servlet-name> > > > <url-pattern>*.vm</url-pattern> > > > </servlet-mapping> > > > > > > Which seems to indicate to me that the console servlet is processing > > > the velocity files. > > > > > > The web.xml file seems to reference a <init-param>: > > > <init-param> > > > <param-name>properties</param-name> > > > <param-value>/velocity.properties</param-value> > > > </init-param> > > > > > > I found this file in the babeldoc-console directory but all it has > > > in it is: file.resource.loader.path = . runtime.log = velocity.log > > > > > > beyond that I'm searching... not sure what to look at next. > > > > > > Thanks for any help. > > > > > > Bill > > > > > > On 24 Jul 2003 at 11:57, McDonald, Bruce wrote: > > > > Bill, is there any logging that you can can find? > > > > > > > > What version of babeldoc and tomcat are you using? > > > > > > > > What is your url? > > > > > > > > regards, > > > > Bruce. > > > > > > > > PS. Please post through the mailing list. > > > > > > > > -----Original Message----- > > > > From: Bill Harrelson [mailto:Bil...@ac...] > > > > Sent: Wednesday, July 23, 2003 8:28 PM > > > > To: McDonald, Bruce > > > > Subject: Babeldoc console configuration. > > > > > > > > > > > > Bruce, > > > > > > > > I don't seem to be having much luck getting babeldoc to work under > > > > Tomcat, and I wondered if you could point me to any configuration > > > > information? > > > > > > > > I've read through the .bat file, and made what seem to be the > > > > appropriate modifications, and I get a log indicating that > > > > velocity has started, and the Tomcat manager says that the > > > > babeldoc-console servlet is started, but the console servlet just > > > > serves a blank page. > > > > > > > > Is there any documentation or tips anywhere on how to approach > > > > this? > > > > > > > > Thanks, > > > > > > > > Bill > > > > > > > > > > > > ------------------------------------------------------- > > > > 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_072 > > > > 303_ 01/01 _______________________________________________ > > > > Babeldoc- > > > > > > devel > > > > > > > mailing list Bab...@li... > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Bruce M. <br...@mc...> - 2003-08-05 00:51:46
|
It involves ritual sacrifice... Not. All I need from you is your sourceforge userid and then I can add you to the list. I can help you from then. regards, Bruce. On Monday 04 August 2003 08:19 pm, David Glick wrote: > Hi Bruce, > > I'm happy to become a Babeldoc developer; hopefully, I'll have plenty more > to contribute as my project shifts into high gear... :-) Whom do I turn > over my first-born to in order to make this happen? > > Thanks, > > David > > On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > > David, > > > > In order to submit this directly into CVS, you will have to become a > > developer. Interested? As to your other question - I am not sure what > > you are trying to do - submit the code and lets have a look at it. > > > > regards, > > Bruce. > > > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > > I found some code in LightConfigService that parsed the config files, > > > so I copied it and things seem to be working. Now I have a couple of > > > questions: > > > > > > 1. It appears that an entry will need to be added to the resource > > > bundles to support the debug switch. Is there a procedure for this? > > > I'm not sure how the numbers are assigned, nor how babelfish is used to > > > generate the other translations. > > > > > > 2. How do I submit this? Should I even do so, or is this of interest > > > to only me? > > > > > > Thanks, > > > > > > David > > > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > > Dejan, > > > > > > > > Taking your suggestion that contributions are welcome (you were > > > > *serious*, right? :-)), I'm trying to implement a '-d' option to dump > > > > configuration info. I've gotten to the point where I can set and > > > > recognize the -d switch and I'm ready to dump the info. However, I > > > > can't seem to track where the configuration file is actually loaded. > > > > Could I ask for a pointer, module name, or even a riddle that might > > > > point me in the right direction? > > > > > > > > Thanks, > > > > > > > > David > > > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > > Note that some other features are not yet implemented in 1.1. > > > > > Remote scanner option is not implemented yet. > > > > > There are really many new features that can be implemented in > > > > > scanner module (I like your idea) but as always - there are not > > > > > much time! So every contribution is more than welcome. > > > > > > > > > > Dejan > > > > > P.S. > > > > > You can submit your suggestion on Source Forge as new feature > > > > > suggestion. Just to prevent forgetting it... > > > > > > > > > > ----- Original Message ----- > > > > > From: "David Glick" <dg...@co...> > > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > > <bab...@li...> > > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > > > I'd also like to suggest that, for me at least, one of the most > > > > > > difficult things to do is to figure out where initialization > > > > > > parameters are coming from, and whether they are correct. It > > > > > > would be very helpful to have a command line switch that would > > > > > > print out the path and contents of config files. Just a > > > > > > suggestion... :-) > > > > > > > > > > > > Thanks again for your help. I see that you've already made > > > > > > changes to > > > > > > > > > > CVS, so > > > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > > > David > > > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > > Obiviously, no workers (threads) is started. I guess the > > > > > > > problem is > > > > > > > > > > using > > > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. Try to > > > > > > > put configuration in default (scanner), directory. I'll try to > > > > > > > fix this bug > > > > > > > > > > as > > > > > > > > > > > > soon as possible... Note that I have just returned from > > > > > > > vacation ;) > > > > > > > > > > > > > > Dejan > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > From: "David Glick" <dg...@co...> > > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > > <bab...@li...> > > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > > > > > Following the instructions in the scanner example, I created > > > > > > > > /tmp/in > > > > > > > > > > and > > > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting feeder... > > > > > > > > <2003-08-03 19:24:28,023> INFO [main] : Initializing > > > > > > > > workers: <2003-08-03 19:24:28,039> INFO [main] : Starting > > > > > > > > workers... > > > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > > build/bin/babeldoc > > > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > Scanner directory config = directory > > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting thread: > > > > > > > > > > directory... > > > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread directory > > > > > > > > scanning <2003-08-03 19:23:19,662> INFO [directory] : > > > > > > > > Scanner directory found > > > > > > > > > > 1 > > > > > > > > > > > > > messages > > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : Processing 1 > > > > > > > > of total 1 messages > > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate > > > > > > > > ticket > > > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > > > for message stats.xml > > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : PipelineStage > > > > > > > > name: > > > > > > > > > > entry > > > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : PipelineStage > > > > > > > > name: > > > > > > > > > > > > > > transform > > > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : PipelineStage > > > > > > > > name: > > > > > > > > > > choose > > > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : PipelineStage > > > > > > > > name: > > > > > > > > > > writer > > > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > > > David > > > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > > David, all: > > > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner codebase > > > > > > > > > has > > > > > > > > > > changed. > > > > > > > > > > > > > > I have used the directory scanner recently and it seems to > > > > > > > > > work > > > > > > > > > > fine. > > > > > > > > > > > > What > > > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > > > regards, > > > > > > > > > Bruce. > > > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > > > I have been running the directory scanner regularly using > > > > > > > > > > the > > > > > > > > > > 1.0.2 > > > > > > > > > > > > > > > release. I've recently switched to the current CVS > > > > > > > > > > release (1.1.5-dev) and the directory scanner appears to > > > > > > > > > > not be well. > > > > > > > > > > I've > > > > > > > > > > > > > > > gone back and tried the examples, and the scanner example > > > > > > > > > > works > > > > > > > > > > fine > > > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > > > not > > > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > 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_0723 > > > > >03 _0 1/ 01 > > > > > > > > > > > > > > _______________________________________________ > > > > > > > > > Babeldoc-devel mailing list > > > > > > > > > Bab...@li... > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > > > > > -- > > > > > > > > David Glick > > > > > > > > 619-475-4052 > > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > 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_0723 > > > > >03 _0 1/ 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_0723 > > > > >03 _0 1/ 01 > > > > > > > > > > > > _______________________________________________ > > > > > > > Babeldoc-devel mailing list > > > > > > > Bab...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > -- > > > > > > David Glick > > > > > > 619-475-4052 > > > > > > dg...@co... > > > > > > > > > > ------------------------------------------------------- > > > > > 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_0723 > > > > >03 _0 1/ 01 _______________________________________________ > > > > > Babeldoc-devel mailing list > > > > > Bab...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: Bill H. <Bil...@Ac...> - 2003-08-05 00:40:29
|
Bruce, Thanks for the response. At this point I still consider myself a user, not a developer, otherwise I would do as you suggest. It is a bit more commitment at this time than I can manage (for the next little while), and I was just trying to get it running. I've found very little documentation, and just wondered if there was any that you could point me to, or perhaps (from this suggestion, I should start reading the code.) I've seen weird behavior like this from CLASSPATH settings, or other environment variable settings. Is there somewhere that those requirements are listed?? (I've read the .bat files for catalina.bat, but suspect that something more might be required. - or maybe there's a conflict as there is a lot else running under my tomcat. Maybe that's the ticket - try to run a fresh tomcat with not much else in it and see what happens and then put other stuff back til it breaks if the initial one is okay.) Thanks, Bill On 31 Jul 2003 at 21:29, Bruce McDonald wrote: > I have been thinking about this for some time now and no insights > strike me... Can you debug (or put System.out.printlns) in the > console servlet and try to figure out where the execution path is > failing? > > regards, > Bruce. > > On Thursday 31 July 2003 12:30 am, Bill Harrelson wrote: > > I'm having what looks to me like a configuration problem: > > > > I'm using Babeldoc 1.0, tomcat 4.1.24. I'm doing this on my personal > > machine for testing. > > > > The log entries for Tomcat are: > > 2003-07-22 17:56:38 HostConfig[localhost]: Deploying web application > > directory babeldoc-console 2003-07-22 17:56:38 > > StandardHost[localhost]: Installing web application at context path > > /babeldoc- console from URL > > file:C:\jakarta-tomcat-4.1.24\webapps\babeldoc-console 2003-07-22 > > 17:56:38 WebappLoader[/babeldoc-console]: Deploying class > > repositories to work directory > > C:\jakarta-tomcat-4.1.24\work\Standalone\localhost\babeldoc-console > > 2003-07-22 17:56:38 StandardManager[/babeldoc-console]: Seeding > > random number generator class java.security.SecureRandom 2003-07-22 > > 17:56:38 StandardManager[/babeldoc-console]: Seeding of random > > number generator has been completed 2003-07-22 17:56:40 > > StandardWrapper[/babeldoc-console:default]: Loading container > > servlet default 2003-07-22 17:56:40 > > StandardWrapper[/babeldoc-console:invoker]: Loading container > > servlet invoker 2003-07-22 17:58:49 > > StandardWrapper[/manager:HTMLManager]: Loading container servlet > > HTMLManager 2003-07-22 17:58:49 HTMLManager: init: Associated with > > Deployer 'localhost' 2003-07-22 17:58:49 HTMLManager: init: Global > > resources are available 2003-07-22 17:58:49 HTMLManager: list: > > Listing contexts for virtual host 'localhost' > > > > > > > > Which all seem okay. There is also a velocity log indicating that > > velocity has started successfully. > > > > When I reference the url: > > http://localhost/babeldoc-console/servlet/Console the response > > returned is: > > > > <html><body></body></html> > > So, the servlet is serving, but I must have something wrong in the > > configuration somewhere. > > > > When I reference localhost/babeldoc-console/index.html the response > > is: > > > > <html> > > <head> > > </head> > > <frameset cols="100,*"> > > <frame name="navigation" src="navigation.vm" noresize > > frameborder=0> > > <frame name="main" src="main.vm" noresize > > frameborder=0> > > </frameset> > > <body></body> > > </html> > > > > but the screen is blank. > > > > When i reference localhost/babeldoc-console/navigation.vm the > > response is: <html><body></body></html> > > > > When I reference localhost/babeldoc-console/main.vm the response is > > the same. > > > > I am suspecting a velocity set-up problem, but don't know where to > > start looking, as the web.xml file has the mapping: > > <servlet-mapping> > > <servlet-name>ConsoleServlet</servlet-name> > > <url-pattern>*.vm</url-pattern> > > </servlet-mapping> > > > > Which seems to indicate to me that the console servlet is processing > > the velocity files. > > > > The web.xml file seems to reference a <init-param>: > > <init-param> > > <param-name>properties</param-name> > > <param-value>/velocity.properties</param-value> > > </init-param> > > > > I found this file in the babeldoc-console directory but all it has > > in it is: file.resource.loader.path = . runtime.log = velocity.log > > > > beyond that I'm searching... not sure what to look at next. > > > > Thanks for any help. > > > > Bill > > > > On 24 Jul 2003 at 11:57, McDonald, Bruce wrote: > > > Bill, is there any logging that you can can find? > > > > > > What version of babeldoc and tomcat are you using? > > > > > > What is your url? > > > > > > regards, > > > Bruce. > > > > > > PS. Please post through the mailing list. > > > > > > -----Original Message----- > > > From: Bill Harrelson [mailto:Bil...@ac...] > > > Sent: Wednesday, July 23, 2003 8:28 PM > > > To: McDonald, Bruce > > > Subject: Babeldoc console configuration. > > > > > > > > > Bruce, > > > > > > I don't seem to be having much luck getting babeldoc to work under > > > Tomcat, and I wondered if you could point me to any configuration > > > information? > > > > > > I've read through the .bat file, and made what seem to be the > > > appropriate modifications, and I get a log indicating that > > > velocity has started, and the Tomcat manager says that the > > > babeldoc-console servlet is started, but the console servlet just > > > serves a blank page. > > > > > > Is there any documentation or tips anywhere on how to approach > > > this? > > > > > > Thanks, > > > > > > Bill > > > > > > > > > ------------------------------------------------------- > > > 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_072 > > > 303_ 01/01 _______________________________________________ > > > 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: David G. <dg...@co...> - 2003-08-05 00:08:35
|
Hi Bruce, I'm happy to become a Babeldoc developer; hopefully, I'll have plenty more to contribute as my project shifts into high gear... :-) Whom do I turn over my first-born to in order to make this happen? Thanks, David On Monday 04 August 2003 5:03 pm, Bruce McDonald wrote: > David, > > In order to submit this directly into CVS, you will have to become a > developer. Interested? As to your other question - I am not sure what you > are trying to do - submit the code and lets have a look at it. > > regards, > Bruce. > > On Monday 04 August 2003 07:51 pm, David Glick wrote: > > I found some code in LightConfigService that parsed the config files, so > > I copied it and things seem to be working. Now I have a couple of > > questions: > > > > 1. It appears that an entry will need to be added to the resource bundles > > to support the debug switch. Is there a procedure for this? I'm not > > sure how the numbers are assigned, nor how babelfish is used to generate > > the other translations. > > > > 2. How do I submit this? Should I even do so, or is this of interest to > > only me? > > > > Thanks, > > > > David > > > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > > Dejan, > > > > > > Taking your suggestion that contributions are welcome (you were > > > *serious*, right? :-)), I'm trying to implement a '-d' option to dump > > > configuration info. I've gotten to the point where I can set and > > > recognize the -d switch and I'm ready to dump the info. However, I > > > can't seem to track where the configuration file is actually loaded. > > > Could I ask for a pointer, module name, or even a riddle that might > > > point me in the right direction? > > > > > > Thanks, > > > > > > David > > > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > > Note that some other features are not yet implemented in 1.1. Remote > > > > scanner option is not implemented yet. > > > > There are really many new features that can be implemented in scanner > > > > module (I like your idea) but as always - there are not much time! So > > > > every contribution is more than welcome. > > > > > > > > Dejan > > > > P.S. > > > > You can submit your suggestion on Source Forge as new feature > > > > suggestion. Just to prevent forgetting it... > > > > > > > > ----- Original Message ----- > > > > From: "David Glick" <dg...@co...> > > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > > <bab...@li...> > > > > Sent: Monday, August 04, 2003 3:21 PM > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > > > I'd also like to suggest that, for me at least, one of the most > > > > > difficult things to do is to figure out where initialization > > > > > parameters are coming from, and whether they are correct. It would > > > > > be very helpful to have a command line switch that would print out > > > > > the path and contents of config files. Just a suggestion... :-) > > > > > > > > > > Thanks again for your help. I see that you've already made changes > > > > > to > > > > > > > > CVS, so > > > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > > > > Best regards, > > > > > > > > > > David > > > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > > Obiviously, no workers (threads) is started. I guess the problem > > > > > > is > > > > > > > > using > > > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. Try to > > > > > > put configuration in default (scanner), directory. I'll try to > > > > > > fix this bug > > > > > > > > as > > > > > > > > > > soon as possible... Note that I have just returned from vacation > > > > > > ;) > > > > > > > > > > > > Dejan > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "David Glick" <dg...@co...> > > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > > <bab...@li...> > > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > > > Following the instructions in the scanner example, I created > > > > > > > /tmp/in > > > > > > > > and > > > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> > > > > > > > build/bin/babeldoc > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting feeder... > > > > > > > <2003-08-03 19:24:28,023> INFO [main] : Initializing workers: > > > > > > > <2003-08-03 19:24:28,039> INFO [main] : Starting workers... > > > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> > > > > > > > build/bin/babeldoc > > > > > > > > > > > > scanner -s > > > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > Scanner directory config = directory > > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting thread: > > > > > > > > directory... > > > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread directory > > > > > > > scanning <2003-08-03 19:23:19,662> INFO [directory] : Scanner > > > > > > > directory found > > > > > > > > 1 > > > > > > > > > > > messages > > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : Processing 1 of > > > > > > > total 1 messages > > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate ticket > > > > > > > > > > > > 1059963799837 > > > > > > > > > > > > > for message stats.xml > > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : PipelineStage > > > > > > > name: > > > > > > > > entry > > > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : PipelineStage > > > > > > > name: > > > > > > > > > > > > transform > > > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : PipelineStage > > > > > > > name: > > > > > > > > choose > > > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : PipelineStage > > > > > > > name: > > > > > > > > writer > > > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > > > David > > > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > > David, all: > > > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner codebase has > > > > > > > > changed. > > > > > > > > > > > > I have used the directory scanner recently and it seems to > > > > > > > > work > > > > > > > > fine. > > > > > > > > > > What > > > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > > > regards, > > > > > > > > Bruce. > > > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > > Hi List, > > > > > > > > > > > > > > > > > > I have been running the directory scanner regularly using > > > > > > > > > the > > > > > > > > 1.0.2 > > > > > > > > > > > > > release. I've recently switched to the current CVS release > > > > > > > > > (1.1.5-dev) and the directory scanner appears to not be > > > > > > > > > well. > > > > > > > > I've > > > > > > > > > > > > > gone back and tried the examples, and the scanner example > > > > > > > > > works > > > > > > > > fine > > > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > > > not > > > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > 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 > > > >_0 1/ 01 > > > > > > > > > > > > _______________________________________________ > > > > > > > > Babeldoc-devel mailing list > > > > > > > > Bab...@li... > > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > > > -- > > > > > > > David Glick > > > > > > > 619-475-4052 > > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > 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 > > > >_0 1/ 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 > > > >_0 1/ 01 > > > > > > > > > > _______________________________________________ > > > > > > Babeldoc-devel mailing list > > > > > > Bab...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > -- > > > > > David Glick > > > > > 619-475-4052 > > > > > dg...@co... > > > > > > > > ------------------------------------------------------- > > > > 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 > > > >_0 1/ 01 _______________________________________________ > > > > Babeldoc-devel mailing list > > > > Bab...@li... > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel -- David Glick 619-475-4052 dg...@co... |
|
From: Bruce M. <br...@mc...> - 2003-08-05 00:03:24
|
David, In order to submit this directly into CVS, you will have to become a developer. Interested? As to your other question - I am not sure what you are trying to do - submit the code and lets have a look at it. regards, Bruce. On Monday 04 August 2003 07:51 pm, David Glick wrote: > I found some code in LightConfigService that parsed the config files, so I > copied it and things seem to be working. Now I have a couple of questions: > > 1. It appears that an entry will need to be added to the resource bundles > to support the debug switch. Is there a procedure for this? I'm not sure > how the numbers are assigned, nor how babelfish is used to generate the > other translations. > > 2. How do I submit this? Should I even do so, or is this of interest to > only me? > > Thanks, > > David > > On Monday 04 August 2003 3:48 pm, David Glick wrote: > > Dejan, > > > > Taking your suggestion that contributions are welcome (you were > > *serious*, right? :-)), I'm trying to implement a '-d' option to dump > > configuration info. I've gotten to the point where I can set and > > recognize the -d switch and I'm ready to dump the info. However, I can't > > seem to track where the configuration file is actually loaded. Could I > > ask for a pointer, module name, or even a riddle that might point me in > > the right direction? > > > > Thanks, > > > > David > > > > On Monday 04 August 2003 6:27 am, Dejan Krsmanovic wrote: > > > Note that some other features are not yet implemented in 1.1. Remote > > > scanner option is not implemented yet. > > > There are really many new features that can be implemented in scanner > > > module (I like your idea) but as always - there are not much time! So > > > every contribution is more than welcome. > > > > > > Dejan > > > P.S. > > > You can submit your suggestion on Source Forge as new feature > > > suggestion. Just to prevent forgetting it... > > > > > > ----- Original Message ----- > > > From: "David Glick" <dg...@co...> > > > To: "Dejan Krsmanovic" <dej...@nb...>; > > > <bab...@li...> > > > Sent: Monday, August 04, 2003 3:21 PM > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > Thanks, Dejan (and welcome back!) > > > > > > > > I'd also like to suggest that, for me at least, one of the most > > > > difficult things to do is to figure out where initialization > > > > parameters are coming from, and whether they are correct. It would be > > > > very helpful to have a command line switch that would print out the > > > > path and contents of config files. Just a suggestion... :-) > > > > > > > > Thanks again for your help. I see that you've already made changes > > > > to > > > > > > CVS, so > > > > > > > I'll pull them down and try it again. > > > > > > > > > > > > Best regards, > > > > > > > > David > > > > > > > > On Monday 04 August 2003 1:41 am, Dejan Krsmanovic wrote: > > > > > Obiviously, no workers (threads) is started. I guess the problem is > > > > > > using > > > > > > > > -s argument. Probably not implemented in 1.1.5 version. Try to put > > > > > configuration in default (scanner), directory. I'll try to fix this > > > > > bug > > > > > > as > > > > > > > > soon as possible... Note that I have just returned from vacation > > > > > ;) > > > > > > > > > > Dejan > > > > > > > > > > ----- Original Message ----- > > > > > From: "David Glick" <dg...@co...> > > > > > To: "Bruce McDonald" <br...@mc...>; > > > > > <bab...@li...> > > > > > Sent: Monday, August 04, 2003 6:23 AM > > > > > Subject: Re: [Babeldoc-devel] Current directory scanner broken? > > > > > > > > > > > Following the instructions in the scanner example, I created > > > > > > /tmp/in > > > > > > and > > > > > > > > > /tmp/done. I copy the file stats.xml into /tmp/in. > > > > > > > > > > > > When I start the scanner under 1.1.5: > > > > > > > > > > > > dglick@athlon:/home/dglick/acct/cvs/babeldoc> build/bin/babeldoc > > > > > > > > > > scanner -s > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > > > > > > > <2003-08-03 19:24:27,977> INFO [main] : Starting feeder... > > > > > > <2003-08-03 19:24:28,023> INFO [main] : Initializing workers: > > > > > > <2003-08-03 19:24:28,039> INFO [main] : Starting workers... > > > > > > > > > > > > Then it just sits forever until I kill it. > > > > > > > > > > > > Starting the scanner under 1.0.2: > > > > > > > > > > > > dglick@athlon:/home/dglick/bin/babeldoc1.0.2> build/bin/babeldoc > > > > > > > > > > scanner -s > > > > > > > > > > > build/examples/scanner/config.properties > > > > > > Scanner directory config = directory > > > > > > <2003-08-03 19:23:09,623> INFO [main] : Starting thread: > > > > > > directory... > > > > > > > > > <2003-08-03 19:23:09,639> INFO [main] : Thread directory > > > > > > scanning <2003-08-03 19:23:19,662> INFO [directory] : Scanner > > > > > > directory found > > > > > > 1 > > > > > > > > > messages > > > > > > <2003-08-03 19:23:19,731> INFO [directory] : Processing 1 of > > > > > > total 1 messages > > > > > > <2003-08-03 19:23:19,857> INFO [directory] : Allocate ticket > > > > > > > > > > 1059963799837 > > > > > > > > > > > for message stats.xml > > > > > > <2003-08-03 19:23:19,961> INFO [directory] : PipelineStage > > > > > > name: > > > > > > entry > > > > > > > > > <2003-08-03 19:23:20,087> INFO [directory] : PipelineStage > > > > > > name: > > > > > > > > > > transform > > > > > > > > > > > <2003-08-03 19:23:21,121> INFO [directory] : PipelineStage > > > > > > name: > > > > > > choose > > > > > > > > > <2003-08-03 19:23:21,137> INFO [directory] : PipelineStage > > > > > > name: > > > > > > writer > > > > > > > > > I'm using JDK 1.4.1_01 under Suse Linux 8.1. > > > > > > > > > > > > > > > > > > Thanks for any help, > > > > > > > > > > > > David > > > > > > > > > > > > On Sunday 03 August 2003 8:18 pm, Bruce McDonald wrote: > > > > > > > David, all: > > > > > > > > > > > > > > Plenty has changed - in fact the entire scanner codebase has > > > > > > changed. > > > > > > > > > > I have used the directory scanner recently and it seems to work > > > > > > fine. > > > > > > > > What > > > > > > > > > > > > are you seeing? > > > > > > > > > > > > > > regards, > > > > > > > Bruce. > > > > > > > > > > > > > > On Sunday 03 August 2003 10:31 pm, David Glick wrote: > > > > > > > > Hi List, > > > > > > > > > > > > > > > > I have been running the directory scanner regularly using the > > > > > > 1.0.2 > > > > > > > > > > > release. I've recently switched to the current CVS release > > > > > > > > (1.1.5-dev) and the directory scanner appears to not be well. > > > > > > I've > > > > > > > > > > > gone back and tried the examples, and the scanner example > > > > > > > > works > > > > > > fine > > > > > > > > > > > in 1.0.2, but > > > > > > > > > > not > > > > > > > > > > > > > in 1.1.5. Has something changed? > > > > > > > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > > > > > David Glick > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > 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_0 > > >1/ 01 > > > > > > > > > > _______________________________________________ > > > > > > > Babeldoc-devel mailing list > > > > > > > Bab...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > > > > > -- > > > > > > David Glick > > > > > > 619-475-4052 > > > > > > dg...@co... > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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_0 > > >1/ 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_0 > > >1/ 01 > > > > > > > > _______________________________________________ > > > > > Babeldoc-devel mailing list > > > > > Bab...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > > > > > > > -- > > > > David Glick > > > > 619-475-4052 > > > > dg...@co... > > > > > > ------------------------------------------------------- > > > 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_0 > > >1/ 01 _______________________________________________ > > > Babeldoc-devel mailing list > > > Bab...@li... > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel |
|
From: <tr...@us...> - 2003-08-04 23:57:51
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner
In directory sc8-pr-cvs1:/tmp/cvs-serv18185
Modified Files:
Scanner.java
Log Message:
update the scanner due to interface change in the IFeeder class
Index: Scanner.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/Scanner.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** Scanner.java 4 Aug 2003 12:46:06 -0000 1.21
--- Scanner.java 4 Aug 2003 23:57:48 -0000 1.22
***************
*** 261,265 ****
this.scheduler.stopAll();
! ((AsynchronousFeeder) this.feeder).stopRunning();
log.logInfo("Stopping feeder");
}
--- 261,265 ----
this.scheduler.stopAll();
! this.feeder.terminate();
log.logInfo("Stopping feeder");
}
|
|
From: <tr...@us...> - 2003-08-04 23:46:41
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder
In directory sc8-pr-cvs1:/tmp/cvs-serv16126/src/com/babeldoc/core/pipeline/feeder
Modified Files:
AsynchronousFeeder.java DiskQueue.java DiskQueueTest.java
FeedDocument.java FeederFactory.java IFeeder.java
IFeederQueue.java MemoryQueue.java SynchronousFeeder.java
Log Message:
Removed the jakarta commons threadpool code - now uses the oswego concurrent classes.
Index: AsynchronousFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/AsynchronousFeeder.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AsynchronousFeeder.java 2 Jul 2003 12:29:25 -0000 1.8
--- AsynchronousFeeder.java 4 Aug 2003 23:46:38 -0000 1.9
***************
*** 71,75 ****
import com.babeldoc.core.pipeline.PipelineException;
- import org.apache.commons.threadpool.DefaultThreadPool;
import org.apache.commons.lang.NumberUtils;
--- 71,74 ----
***************
*** 79,82 ****
--- 78,83 ----
import java.io.IOException;
+ import EDU.oswego.cs.dl.util.concurrent.PooledExecutor;
+
/**
***************
*** 87,93 ****
*
* @author Bmcdonald
! * @version 1.0
*/
! public class AsynchronousFeeder extends SynchronousFeeder implements Runnable {
public static final String Q_TYPE_DISK = "disk";
public static final String Q_TYPE_MEMORY = "memory";
--- 88,96 ----
*
* @author Bmcdonald
! * @version 1.1
*/
! public class AsynchronousFeeder
! extends SynchronousFeeder {
!
public static final String Q_TYPE_DISK = "disk";
public static final String Q_TYPE_MEMORY = "memory";
***************
*** 97,101 ****
public static final String POOLSIZE = "poolSize";
! private DefaultThreadPool threadPool;
/** Queue to place the threads */
--- 100,104 ----
public static final String POOLSIZE = "poolSize";
! private PooledExecutor threadPool;
/** Queue to place the threads */
***************
*** 103,106 ****
--- 106,113 ----
private LogService log = LogService.getInstance(AsynchronousFeeder.class.getName());
private boolean stopRunning = false;
+
+ /** number of millis to wait to get message from queue */
+ public static final int TIME_OUT_MS = 500;
+
/**
* initialize this object - this sets up the queue and the threadpool. This
***************
*** 113,141 ****
*/
public void initialize(Map map) throws GeneralException{
if (map != null) {
! String qtype = (String)map.get(Q_TYPE);
! if (Q_TYPE_DISK.equals(qtype)) {
! String qname = (String)map.get(Q_DIR_NAME);
! String qdir = (String)map.get(Q_DISK_DIR);
! if (qname == null || qname.equals("")) {
! throw new GeneralException("Disk queues must have a 'queueName'");
! }
! if (qdir == null || qdir.equals("")) {
! throw new GeneralException("Disk queues must have a 'queueDir'");
! }
! try {
! this.queue = new DiskQueue(qname, new File(qdir));
! } catch (IOException e) {
! throw new GeneralException("Trying to create a disk queue", e);
! }
! } else {
! this.queue = new MemoryQueue();
! }
}
! int poolSize = NumberUtils.stringToInt((String)map.get(POOLSIZE), 1);
! threadPool = new DefaultThreadPool(poolSize);
for (int i = 0; i < poolSize; ++i) {
! threadPool.invokeLater(this);
}
}
--- 120,204 ----
*/
public void initialize(Map map) throws GeneralException{
+ int poolSize = 1;
if (map != null) {
! configQtype(map);
! poolSize = NumberUtils.stringToInt((String)map.get(POOLSIZE), 1);
}
! threadPool = new PooledExecutor(poolSize);
! setupThreadPool(poolSize);
! }
+ /**
+ * Add a runnable to the thread pool which processes the messages as they get
+ * submitted to the queue.
+ *
+ * @param poolSize
+ */
+ private void setupThreadPool(int poolSize) {
for (int i = 0; i < poolSize; ++i) {
! try {
! threadPool.execute(new Runnable() {
! /**
! * When an object implementing interface <code>Runnable</code> is used
! * to create a thread, starting the thread causes the object's
! * <code>run</code> method to be called in that separately executing
! * thread.
! */
! public void run() {
! while (!stopRunning) {
! if (log.isDebugEnabled()) {
! log.logDebug("Checking for new documents in queue");
! }
!
! FeedDocument feedDoc = null;
! try {
! feedDoc = queue.remove(TIME_OUT_MS);
! } catch (InterruptedException e) {
! log.logError(e);
! }
!
! if (feedDoc != null) {
! try {
! log.logInfo("Processing document...");
! actuallyProcess(feedDoc);
! } catch (PipelineException pe) {
! log.logError(pe);
! } catch (JournalException je) {
! log.logError(je);
! }
! }
! }
! }
! });
! } catch (InterruptedException e) {
! log.logError(e);
! }
! }
! }
!
! /**
! * Configure the queuing implementation.
! *
! * @param map
! * @throws GeneralException
! */
! private void configQtype(Map map) throws GeneralException {
! String qtype = (String)map.get(Q_TYPE);
! if (Q_TYPE_DISK.equals(qtype)) {
! String qname = (String)map.get(Q_DIR_NAME);
! String qdir = (String)map.get(Q_DISK_DIR);
! if (qname == null || qname.equals("")) {
! throw new GeneralException("Disk queues must have a 'queueName'");
! }
! if (qdir == null || qdir.equals("")) {
! throw new GeneralException("Disk queues must have a 'queueDir'");
! }
! try {
! this.queue = new DiskQueue(qname, new File(qdir));
! } catch (IOException e) {
! throw new GeneralException("Trying to create a disk queue", e);
! }
! } else {
! this.queue = new MemoryQueue();
}
}
***************
*** 159,198 ****
throw new PipelineException("Submitting document", t);
}
-
return null;
}
/**
! * This is the run method, where the threads come to play. This will run
! * until the stopRunning flag is set to true. This will cause this method
! * to exit and then the thread stops.
*/
! public void run() {
! while (!stopRunning) {
! if (log.isDebugEnabled()) {
! log.logDebug("Checking for new documents in queue");
! }
!
! FeedDocument feedDoc = queue.remove();
!
! if (feedDoc != null) {
! try {
! log.logInfo("Processing document...");
! super.process(feedDoc);
! } catch (PipelineException pe) {
! LogService.getInstance().logError(pe);
! } catch (JournalException je) {
! LogService.getInstance().logError(je);
! }
! }
! }
}
/**
! * Stops this feeder.
*/
! public void stopRunning() {
this.stopRunning = true;
! this.threadPool.stop();
}
}
--- 222,251 ----
throw new PipelineException("Submitting document", t);
}
return null;
}
+
/**
! * This processes the feeddocuments by passing to the
! * parent class which actually does the processing.
! *
! * @param docFeed
! * @return
! * @throws PipelineException
! * @throws JournalException
*/
! protected Collection actuallyProcess(FeedDocument docFeed)
! throws PipelineException, JournalException {
! return super.process(docFeed);
}
/**
! * This method stops the processing on this feeder. The stop flag is marked
! * and this means that the threads exit from the run method. Additionaly the
! * underlying threadpool is marked to terminate.
*/
! public void terminate() {
this.stopRunning = true;
! this.threadPool.shutdownAfterProcessingCurrentlyQueuedTasks();
}
}
Index: DiskQueue.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/DiskQueue.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** DiskQueue.java 27 Jun 2003 13:49:12 -0000 1.6
--- DiskQueue.java 4 Aug 2003 23:46:38 -0000 1.7
***************
*** 67,70 ****
--- 67,71 ----
import com.babeldoc.core.Named;
+ import com.babeldoc.core.LogService;
import com.babeldoc.core.pipeline.feeder.FeedDocument;
import com.babeldoc.core.pipeline.feeder.IFeederQueue;
***************
*** 89,94 ****
*
* @author dejank
*/
! public class DiskQueue extends Named implements IFeederQueue {
//Folder where files will be stored
private File tmpFolder;
--- 90,98 ----
*
* @author dejank
+ * @version 1.1
*/
! public class DiskQueue
! extends Named
! implements IFeederQueue {
//Folder where files will be stored
private File tmpFolder;
***************
*** 132,138 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public boolean isEmpty() {
--- 136,142 ----
/**
! * return true if the queue is empty
*
! * @return
*/
public boolean isEmpty() {
***************
*** 141,147 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public int getQueueSize() {
--- 145,151 ----
/**
! * get the size of the queue
*
! * @return
*/
public int getQueueSize() {
***************
*** 164,168 ****
/**
! * TODO: DOCUMENT ME!
*/
public void emptyQueue() {
--- 168,172 ----
/**
! * Remove all elements from the queue
*/
public void emptyQueue() {
***************
*** 222,226 ****
} catch (IOException e) {
//TODO: reconsider exception handling!
! e.printStackTrace();
return null;
--- 226,230 ----
} catch (IOException e) {
//TODO: reconsider exception handling!
! LogService.getInstance().logError(e);
return null;
***************
*** 233,237 ****
/**
! * TODO: DOCUMENT ME!
*
* @param name DOCUMENT ME!
--- 237,241 ----
/**
! * Setup the queue - check the directory, etc.
*
* @param name DOCUMENT ME!
***************
*** 249,253 ****
/**
! * TODO: DOCUMENT ME!
*/
private void deleteTempFiles() {
--- 253,257 ----
/**
! * Delete the temporary files
*/
private void deleteTempFiles() {
***************
*** 262,270 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param docFile DOCUMENT ME!
*
! * @return DOCUMENT ME!
*
* @throws IOException DOCUMENT ME!
--- 266,274 ----
/**
! * Convert a file on disk into a document.
*
! * @param docFile file on disk to deserialize
*
! * @return deserialized document
*
* @throws IOException DOCUMENT ME!
Index: DiskQueueTest.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/DiskQueueTest.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** DiskQueueTest.java 27 Jun 2003 02:19:59 -0000 1.4
--- DiskQueueTest.java 4 Aug 2003 23:46:38 -0000 1.5
***************
*** 77,82 ****
*
* @author Dejan
*/
! public class DiskQueueTest extends TestCase {
DiskQueue queue;
FeedDocument document;
--- 77,84 ----
*
* @author Dejan
+ * @version 1.1
*/
! public class DiskQueueTest
! extends TestCase {
DiskQueue queue;
FeedDocument document;
Index: FeedDocument.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/FeedDocument.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FeedDocument.java 27 Jun 2003 02:19:59 -0000 1.4
--- FeedDocument.java 4 Aug 2003 23:46:38 -0000 1.5
***************
*** 78,84 ****
*
* @author Bmcdonald
! * @version 1.0
*/
! public class FeedDocument implements Serializable {
private IJournalTicket ticket;
private Map attributes;
--- 78,85 ----
*
* @author Bmcdonald
! * @version 1.1
*/
! public class FeedDocument
! implements Serializable {
private IJournalTicket ticket;
private Map attributes;
***************
*** 107,113 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param attributes DOCUMENT ME!
*/
public void setAttributes(Map attributes) {
--- 108,114 ----
/**
! * Set the attributes for the feeddocument
*
! * @param attributes
*/
public void setAttributes(Map attributes) {
***************
*** 116,122 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public Map getAttributes() {
--- 117,123 ----
/**
! * Get the attributes
*
! * @return
*/
public Map getAttributes() {
***************
*** 125,131 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param binary DOCUMENT ME!
*/
public void setBinary(boolean binary) {
--- 126,132 ----
/**
! * Set the binary flag on the document
*
! * @param binary
*/
public void setBinary(boolean binary) {
***************
*** 134,140 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public boolean isBinary() {
--- 135,141 ----
/**
! * Get the binary flag on the document
*
! * @return
*/
public boolean isBinary() {
***************
*** 143,149 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param data DOCUMENT ME!
*/
public void setData(byte[] data) {
--- 144,150 ----
/**
! * Set the binary data on the document
*
! * @param data binary array
*/
public void setData(byte[] data) {
***************
*** 152,158 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public byte[] getData() {
--- 153,159 ----
/**
! * Get the data for the feed document
*
! * @return get the data
*/
public byte[] getData() {
***************
*** 161,167 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param noJournal DOCUMENT ME!
*/
public void setNoJournal(boolean noJournal) {
--- 162,168 ----
/**
! * Set the no-journal flag
*
! * @param noJournal
*/
public void setNoJournal(boolean noJournal) {
***************
*** 170,176 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public boolean isNoJournal() {
--- 171,177 ----
/**
! * Get the state of the no-journal flag
*
! * @return
*/
public boolean isNoJournal() {
***************
*** 179,185 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param pipelineName DOCUMENT ME!
*/
public void setPipelineName(String pipelineName) {
--- 180,186 ----
/**
! * Set the name of the pipeline to process this feed document
*
! * @param pipelineName
*/
public void setPipelineName(String pipelineName) {
***************
*** 188,194 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public String getPipelineName() {
--- 189,195 ----
/**
! * Get the name of the pipeline to process this feed document
*
! * @return pipeline name
*/
public String getPipelineName() {
***************
*** 197,203 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param ticket DOCUMENT ME!
*/
public void setTicket(IJournalTicket ticket) {
--- 198,204 ----
/**
! * Set the ticket for this feeddocument
*
! * @param ticket
*/
public void setTicket(IJournalTicket ticket) {
***************
*** 206,212 ****
/**
! * TODO: DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public IJournalTicket getTicket() {
--- 207,213 ----
/**
! * Get the ticket
*
! * @return ticket
*/
public IJournalTicket getTicket() {
***************
*** 215,223 ****
/**
! * TODO: DOCUMENT ME!
*
! * @param obj DOCUMENT ME!
*
! * @return DOCUMENT ME!
*/
public boolean equals(Object obj) {
--- 216,224 ----
/**
! * Equality operator
*
! * @param obj
*
! * @return
*/
public boolean equals(Object obj) {
Index: FeederFactory.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/FeederFactory.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FeederFactory.java 1 Jul 2003 12:45:57 -0000 1.1
--- FeederFactory.java 4 Aug 2003 23:46:38 -0000 1.2
***************
*** 69,72 ****
--- 69,73 ----
import com.babeldoc.core.TieredConfigurationHelper;
import com.babeldoc.core.GeneralException;
+ import com.babeldoc.core.LogService;
import com.babeldoc.core.service.ServiceFactory;
import com.babeldoc.core.service.ServiceException;
***************
*** 87,90 ****
--- 88,94 ----
* 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 {
***************
*** 225,228 ****
--- 229,248 ----
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);
+ }
}
}
Index: IFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/IFeeder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** IFeeder.java 30 Jun 2003 22:14:56 -0000 1.3
--- IFeeder.java 4 Aug 2003 23:46:38 -0000 1.4
***************
*** 68,72 ****
import com.babeldoc.core.GeneralException;
- import java.util.ArrayList;
import java.util.Collection;
import java.util.Map;
--- 68,71 ----
***************
*** 102,104 ****
--- 101,110 ----
public void initialize(Map configuration)
throws GeneralException;
+
+ /**
+ * finish the processing - this is useful to make those threaded implementations
+ * stop processing. All processing will stop some time after the last message
+ * has been processed. Once a feeder has been terminated, it may not be restarted.
+ */
+ public void terminate();
}
Index: IFeederQueue.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/IFeederQueue.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** IFeederQueue.java 27 Jun 2003 02:19:59 -0000 1.3
--- IFeederQueue.java 4 Aug 2003 23:46:38 -0000 1.4
***************
*** 66,75 ****
package com.babeldoc.core.pipeline.feeder;
- import java.io.IOException;
-
-
/**
* A generalized implenentation of a queue that can be used to make the feeding
* and processing of documents asynchronous.
*/
public interface IFeederQueue {
--- 66,75 ----
package com.babeldoc.core.pipeline.feeder;
/**
* A generalized implenentation of a queue that can be used to make the feeding
* and processing of documents asynchronous.
+ *
+ * @author bmcdonald
+ * @version 1.1
*/
public interface IFeederQueue {
***************
*** 85,92 ****
*
* @param feedDoc
! *
! * @throws Throwable
*/
! public void add(FeedDocument feedDoc) throws Throwable;
/**
--- 85,92 ----
*
* @param feedDoc
! * @throws InterruptedException
*/
! public void add(FeedDocument feedDoc)
! throws InterruptedException;
/**
***************
*** 94,99 ****
*
* @return
*/
! public FeedDocument remove();
/**
--- 94,101 ----
*
* @return
+ * @throws InterruptedException
*/
! public FeedDocument remove()
! throws InterruptedException;
/**
***************
*** 102,108 ****
*
* @param timeOutMs
- *
* @return
*/
! public FeedDocument remove(int timeOutMs);
}
--- 104,111 ----
*
* @param timeOutMs
* @return
+ * @throws InterruptedException
*/
! public FeedDocument remove(int timeOutMs)
! throws InterruptedException;
}
Index: MemoryQueue.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/MemoryQueue.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** MemoryQueue.java 16 Jul 2003 05:17:40 -0000 1.4
--- MemoryQueue.java 4 Aug 2003 23:46:38 -0000 1.5
***************
*** 66,70 ****
package com.babeldoc.core.pipeline.feeder;
! import org.apache.commons.threadpool.MTQueue;
--- 66,71 ----
package com.babeldoc.core.pipeline.feeder;
! import EDU.oswego.cs.dl.util.concurrent.BoundedChannel;
! import EDU.oswego.cs.dl.util.concurrent.BoundedBuffer;
***************
*** 72,78 ****
* Represents an in-memory feeder queue implemented in a MTQueue from the apache threadpool
* implementation.
*/
! public class MemoryQueue implements IFeederQueue {
! MTQueue queue;
/**
--- 73,84 ----
* Represents an in-memory feeder queue implemented in a MTQueue from the apache threadpool
* implementation.
+ *
+ * @author bmcdonald
+ * @version 1.1
*/
! public class MemoryQueue
! implements IFeederQueue {
!
! BoundedChannel queue;
/**
***************
*** 80,84 ****
*/
public MemoryQueue() {
! queue = new MTQueue();
}
--- 86,97 ----
*/
public MemoryQueue() {
! queue = new BoundedBuffer();
! }
!
! /**
! * Creates a new MemoryQueue object.
! */
! public MemoryQueue(int capacity) {
! queue = new BoundedBuffer(capacity);
}
***************
*** 87,91 ****
*/
public int getQueueSize() {
! return queue.size();
}
--- 100,104 ----
*/
public int getQueueSize() {
! return queue.capacity();
}
***************
*** 95,100 ****
* @param feedDoc
*/
! public void add(FeedDocument feedDoc) {
! queue.add(feedDoc);
}
--- 108,114 ----
* @param feedDoc
*/
! public void add(FeedDocument feedDoc)
! throws InterruptedException {
! queue.put(feedDoc);
}
***************
*** 104,109 ****
* @return
*/
! public FeedDocument remove() {
! return (FeedDocument) queue.remove();
}
--- 118,124 ----
* @return
*/
! public FeedDocument remove()
! throws InterruptedException {
! return (FeedDocument) queue.take();
}
***************
*** 116,121 ****
* @return
*/
! public FeedDocument remove(int timeOutMs) {
! return (FeedDocument) queue.remove(timeOutMs);
}
}
--- 131,137 ----
* @return
*/
! public FeedDocument remove(int timeOutMs)
! throws InterruptedException {
! return (FeedDocument) queue.poll(timeOutMs);
}
}
Index: SynchronousFeeder.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/SynchronousFeeder.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SynchronousFeeder.java 30 Jun 2003 22:14:56 -0000 1.5
--- SynchronousFeeder.java 4 Aug 2003 23:46:38 -0000 1.6
***************
*** 88,92 ****
* @version 1.1
*/
! public class SynchronousFeeder implements IFeeder {
/**
--- 88,93 ----
* @version 1.1
*/
! public class SynchronousFeeder
! implements IFeeder {
/**
***************
*** 153,156 ****
--- 154,167 ----
public void initialize(Map configuration)
throws GeneralException {
+ }
+
+ /**
+ * finish the processing - this is useful to make those threaded implementations
+ * stop processing. All processing will stop some time after the last message
+ * has been processed.
+ * <br/>
+ * This does nothing in this class since it is a synchronous processing class.
+ */
+ public void terminate() {
}
}
|
|
From: <tr...@us...> - 2003-08-04 23:46:41
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/processor
In directory sc8-pr-cvs1:/tmp/cvs-serv16126/src/com/babeldoc/core/pipeline/processor
Modified Files:
ThreadPooledPipelineStageProcessor.java
Log Message:
Removed the jakarta commons threadpool code - now uses the oswego concurrent classes.
Index: ThreadPooledPipelineStageProcessor.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/processor/ThreadPooledPipelineStageProcessor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ThreadPooledPipelineStageProcessor.java 16 Jul 2003 22:45:28 -0000 1.1
--- ThreadPooledPipelineStageProcessor.java 4 Aug 2003 23:46:38 -0000 1.2
***************
*** 72,77 ****
import org.apache.commons.lang.NumberUtils;
! import org.apache.commons.threadpool.ThreadPool;
! import org.apache.commons.threadpool.DefaultThreadPool;
/**
--- 72,77 ----
import org.apache.commons.lang.NumberUtils;
! import EDU.oswego.cs.dl.util.concurrent.Executor;
! import EDU.oswego.cs.dl.util.concurrent.PooledExecutor;
/**
***************
*** 86,90 ****
private int poolsize;
! private ThreadPool threadPool;
/**
--- 86,90 ----
private int poolsize;
! private Executor threadPool;
/**
***************
*** 99,103 ****
poolsize = NumberUtils.stringToInt((String)config.get(POOL_SIZE), DEFAULT_POOLSIZE);
// System.out.println("Setting up a pool with size of: "+poolsize);
! threadPool = new DefaultThreadPool(poolsize);
}
--- 99,103 ----
poolsize = NumberUtils.stringToInt((String)config.get(POOL_SIZE), DEFAULT_POOLSIZE);
// System.out.println("Setting up a pool with size of: "+poolsize);
! threadPool = new PooledExecutor(poolsize);
}
***************
*** 120,132 ****
for (int j = 0; j < numResults; j++) {
final PipelineStageResult psresult = psResults[j];
! threadPool.invokeLater(new Runnable() {
! public void run() {
! try {
! processPipelineStageResult(psresult, syncResults);
! } catch (PipelineException e) {
! LogService.getInstance().logError(e);
}
! }
! });
}
}
--- 120,136 ----
for (int j = 0; j < numResults; j++) {
final PipelineStageResult psresult = psResults[j];
! try {
! threadPool.execute(new Runnable() {
! public void run() {
! try {
! processPipelineStageResult(psresult, syncResults);
! } catch (PipelineException e) {
! LogService.getInstance().logError(e);
! }
}
! });
! } catch (InterruptedException e) {
! throw new PipelineException("", e);
! }
}
}
|
|
From: <tr...@us...> - 2003-08-04 23:46:40
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/lib In directory sc8-pr-cvs1:/tmp/cvs-serv16126/lib Added Files: concurrent.jar Removed Files: commons-threadpool.jar Log Message: Removed the jakarta commons threadpool code - now uses the oswego concurrent classes. --- NEW FILE: concurrent.jar --- (This appears to be a binary file; contents omitted.) --- commons-threadpool.jar DELETED --- |