You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(14) |
Mar
(107) |
Apr
(211) |
May
(93) |
Jun
(158) |
Jul
(159) |
Aug
(368) |
Sep
(188) |
Oct
(151) |
Nov
(115) |
Dec
(98) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(25) |
Feb
|
Mar
(33) |
Apr
(28) |
May
(116) |
Jun
(2) |
Jul
(117) |
Aug
(19) |
Sep
(9) |
Oct
(2) |
Nov
|
Dec
(4) |
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(9) |
Dec
|
| 2006 |
Jan
|
Feb
|
Mar
(22) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2007 |
Jan
|
Feb
|
Mar
(6) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(267) |
Sep
|
Oct
|
Nov
(6) |
Dec
(512) |
| 2008 |
Jan
(187) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(6) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
| 2012 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Bruce M. <br...@mc...> - 2003-06-27 19:08:19
|
Very interested - are you interested in CVS access?
On Friday 27 June 2003 02:54 pm, Leech, Jonathan wrote:
> For the XML parsing, I prototyped two EntityResolver caches - one memory
> and one disk. The memory cache fronts the disk cache wich fronts the
> default entity resolving, which is to go to the URL and get the document.
> I have already gotten the OK from management here to contribute the
> HttpClientPipelineStage to open source, I most likely could get the OK to
> refine the EntityResolverCache and contribute that as well, if people are
> interested.
>
> -Jonathan
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Friday, June 27, 2003 12:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Good - go ahead with the HttpClient one - its way more functional than the
> JDK
> UrlConnection code.
>
>
> Processing XML can be very expensive especially with lots of DTDs on remote
> machines. I would be very interested to see what can be done about making
> this work better. Of course the easy way out is to not verify the XML...
>
> regards,
> Bruce.
>
> On Friday 27 June 2003 10:49 am, Leech, Jonathan wrote:
> > Bruce,
> >
> > I have already prototyped one using the jdk HttpURLConnection, but
> > looking at apache HttpClient it seems to be the way to go. If anyone
> > else is interested in particular features for this, let me know and I'll
> > put them in.
> >
> > Also, I am curious as to what steps other people are taking for speeding
>
> up
>
> > XML parsing. Some of the documents I am parsing reference 20 .dtds on a
> > remote server, which makes parsing take 15 seconds instead of .2. I have
> > prototyped some code that is basically an EntityResolver cache, but I'm
> > guessing that other people have built similar, more robust ways of
> > accomplising this. Does babeldoc have a way of integrating with
> > something like that?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Thursday, June 26, 2003 10:05 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > Sorry - I was going to do a HttpPostPipelineStage but I never got around
>
> to
>
> > it
> > - Please go ahead and start this. Writing a pipeline stage is not a
> > difficult thing - please do not hesitate to ask for advice, etc.
> >
> > regards,
> > Bruce.
> >
> > On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > Thanks for the information on the local configuration.
> > >
> > > I have found the demons causing my No suitable driver error.
> > > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > > system property explicitly using the system class loader, whereas the
> > > classes12.jar for oracle was not in my system classpath. What was
> > > confusing was that I could load the class, using Class.forName(), or
>
> call
>
> > > DriverManager.registerDriver() using a new instance of the oracle
>
> driver,
>
> > > which made things work, because the babeldoc classloader is loading it.
> >
> > So
> >
> > > the answer is to explicity add it to the classpath.
> > >
> > > Also, the line that's missing from query.properties that makes the
>
> oracle
>
> > > journal able to store documents is:
> > > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > > jrn_log_id=? and jrn_log_step=? for update
> > >
> > > Dejan mentioned in the Open Discussion forum to me that you might have
> > > written a pipeline stage that uses the HttpClient library... Is that
> > > true?
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 7:27 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Hmm,
> > >
> > > Yes, that should do it. Are you sure its in the classpath?
> > >
> > > But, what I mean about local configuration path is this:
> > >
> > > You override the babeldoc configurations (as given in the babeldoc
>
> module
>
> > > jar
> > > files) by setting the BABELDOC_USER environment variable to a
> >
> > configuration
> >
> > > directory of your own. This is always takes precedence over whatever
> > > is built into babeldoc. So, a practical example, in windows:
> > >
> > > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > > BABELDOC_HOME=c:\babeldoc
> > > 2. Your configuration data is stored in c:\work, and therefore the
> > > BABELDOC_USER=c:\work
> > > 3. Create a subdirectory c:\work\env
> > > 4. Create a file in there called config.properties. Set the property
> > > (or whatever properties) needed for your code to run.
> > >
> > > Try this, let me know.
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > > Bruce,
> > > >
> > > > I'm not sure what you mean by local configuration directory... I
> >
> > changed
> >
> > > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch,
>
> and
>
> > > > still
> > > > get the No suitable driver error.
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Bruce McDonald [mailto:br...@mc...]
> > > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > > To: Leech, Jonathan; bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jon,
> > > >
> > > > In the config/env/config.properties (this file contains properties
> > > > which are
> > > >
> > > > added to the system properties) - so in your local configuration
> > >
> > > directory,
> > >
> > > > create an identical env/config.properties and add the line:
> > > >
> > > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > > >
> > > > regards,
> > > > Bruce.
> > > >
> > > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > > Stefan,
> > > > >
> > > > > I tried the system property approach
> > > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command
>
> line
>
> > > > > to babeldoc, but that didn't work. Where did you add your JVM
>
> system
>
> > > > > property?
> > > > >
> > > > > -Jonathan
> > > > >
> > > > > -----Original Message-----
> > > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > > To: bab...@li...
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > Jonathan,
> > > > >
> > > > > we had the same problems with the query.properties und driver.
> > >
> > > Obviously,
> > >
> > > > > the property is missing.
> > > > > A workmate added a statement, but I don't know which. I will post
>
> our
>
> > > > > query.properties for Oracle tomorrow.
> > > > >
> > > > > We added the driver as system property to the JVM. Anyway, in
> > > > > production
> > > >
> > > > we
> > > >
> > > > > will retrieve a preconfigured datastore from JNDI.
> > > > >
> > > > > Regards,
> > > > > Stefan
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > > To: <bab...@li...>
> > > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > > Subject: RE: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > > > Thanks Dejan,
> > > > > > That makes sense and I found the spot in the userguide that says
> > > > > > that.
> > > >
> > > > I
> > > >
> > > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > > just
> > > > >
> > > > > fine.
> > > > >
> > > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > > problems.
> > > > >
> > > > > It
> > > > >
> > > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > > query.properties in CVS, because the
> > > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > > query.properties, but OracleJournal.java needs
> > > > >
> > > > > it.
> > > > >
> > > > > > This causes a SQLException. Can somebody tell me what the value
> > >
> > > should
> > >
> > > > > > be for this?
> > > > > >
> > > > > > I had another problem with OracleJournal that I got past, which
>
> was
>
> > a
> >
> > > > > > No Suitable driver exception. I suspect whoever uses the
> > >
> > > OracleJournal
> > >
> > > > > > has
> > > > >
> > > > > the
> > > > >
> > > > > > code that fixes the problem and it just isn't checked in, or is
> >
> > using
> >
> > > > > > babeldoc in an environment that registers the Oracle driver for
> >
> > them.
> >
> > > > > > I would be happy to check the code in, what do I need to do to
> > > > > > get CVS
> > > > >
> > > > > commit
> > > > >
> > > > > > access? Here's the code I would add to OracleJournal.java:
> > > > > >
> > > > > > static {
> > > > > > try {
> > > > > > DriverManager.registerDriver(new
> > > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > > catch (SQLException sqle) {
> > > > > > throw new RuntimeException(sqle);
> > > > > > }
> > > > > > }
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > -----Original Message-----
> > > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > > To: 'bab...@li...'
> > > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > > journal
> > > > > >
> > > > > >
> > > > > > By default document are NOT stored into jjournal
> > > > > > because it is time-consuming operation. If you want to
> > > > > > store document into journal, you should set tracked
> > > > > > property to true (tracked=true) for pipeline stage in
> > > > > > which you want to store document.
> > > > > >
> > > > > > Dejan
> > > > > >
> > > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am getting started with babeldoc and trying to
> > > > > > > understand the journal
> > > > > > > capabilities. From what I've read in the
> > > > > > > documentation, I should be able to
> > > > > > > retrieve a document from the journal, and even
> > > > > > > replay tickets etc. However,
> > > > > > > if I run the svg-transcode example, and then try
> > > > > > > babeldoc journal -D
> > > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > > document stored at (
> >
> > com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
> <mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > > >,
> > > > >
> > > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > > the cause is a
> > > > > > > ClassCastException trying to cast a String into a
> > > > > > > PipelineDocument. I have
> > > > > > > looked through the code to some extent, and I am
> > > > > > > quite confused. I am
> > > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > > current version I checked
> > > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > > >
> > > > > > > Sincerely,
> > > > > > > Jonathan Leech
> > > > > > > Senior Software Engineer
> > > > > > > Virtela Communications, Inc.
> > > > > >
> > > > > > __________________________________
> > > > > > Do you Yahoo!?
> > > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > > http://sbc.yahoo.com
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > > >
> > > > > >
> > > > > > -------------------------------------------------------
> > > > > > This SF.Net email is sponsored by: INetU
> > > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
> >
> > Monthly
> >
> > > > > > Commission! INetU Dedicated Managed Hosting
> > > > > > http://www.inetu.net/partner/index.php
> > > > > > _______________________________________________
> > > > > > Babeldoc-devel mailing list
> > > > > > Bab...@li...
> > > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > 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/psa00100006ave/direct;at.asp_061203_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/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Leech, J. <jl...@vi...> - 2003-06-27 18:54:33
|
For the XML parsing, I prototyped two EntityResolver caches - one memory and
one disk. The memory cache fronts the disk cache wich fronts the default
entity resolving, which is to go to the URL and get the document. I have
already gotten the OK from management here to contribute the
HttpClientPipelineStage to open source, I most likely could get the OK to
refine the EntityResolverCache and contribute that as well, if people are
interested.
-Jonathan
-----Original Message-----
From: Bruce McDonald [mailto:br...@mc...]
Sent: Friday, June 27, 2003 12:05 PM
To: Leech, Jonathan; bab...@li...
Subject: Re: [Babeldoc-devel] retrieving a document from the journal
Jon,
Good - go ahead with the HttpClient one - its way more functional than the
JDK
UrlConnection code.
Processing XML can be very expensive especially with lots of DTDs on remote
machines. I would be very interested to see what can be done about making
this work better. Of course the easy way out is to not verify the XML...
regards,
Bruce.
On Friday 27 June 2003 10:49 am, Leech, Jonathan wrote:
> Bruce,
>
> I have already prototyped one using the jdk HttpURLConnection, but looking
> at apache HttpClient it seems to be the way to go. If anyone else is
> interested in particular features for this, let me know and I'll put them
> in.
>
> Also, I am curious as to what steps other people are taking for speeding
up
> XML parsing. Some of the documents I am parsing reference 20 .dtds on a
> remote server, which makes parsing take 15 seconds instead of .2. I have
> prototyped some code that is basically an EntityResolver cache, but I'm
> guessing that other people have built similar, more robust ways of
> accomplising this. Does babeldoc have a way of integrating with something
> like that?
>
> Sincerely,
> Jonathan Leech
> Senior Software Engineer
> Virtela Communications, Inc.
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Thursday, June 26, 2003 10:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Sorry - I was going to do a HttpPostPipelineStage but I never got around
to
> it
> - Please go ahead and start this. Writing a pipeline stage is not a
> difficult thing - please do not hesitate to ask for advice, etc.
>
> regards,
> Bruce.
>
> On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > Thanks for the information on the local configuration.
> >
> > I have found the demons causing my No suitable driver error.
> > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > system property explicitly using the system class loader, whereas the
> > classes12.jar for oracle was not in my system classpath. What was
> > confusing was that I could load the class, using Class.forName(), or
call
> > DriverManager.registerDriver() using a new instance of the oracle
driver,
> > which made things work, because the babeldoc classloader is loading it.
>
> So
>
> > the answer is to explicity add it to the classpath.
> >
> > Also, the line that's missing from query.properties that makes the
oracle
> > journal able to store documents is:
> > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > jrn_log_id=? and jrn_log_step=? for update
> >
> > Dejan mentioned in the Open Discussion forum to me that you might have
> > written a pipeline stage that uses the HttpClient library... Is that
> > true?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 7:27 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Hmm,
> >
> > Yes, that should do it. Are you sure its in the classpath?
> >
> > But, what I mean about local configuration path is this:
> >
> > You override the babeldoc configurations (as given in the babeldoc
module
> > jar
> > files) by setting the BABELDOC_USER environment variable to a
>
> configuration
>
> > directory of your own. This is always takes precedence over whatever is
> > built into babeldoc. So, a practical example, in windows:
> >
> > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > BABELDOC_HOME=c:\babeldoc
> > 2. Your configuration data is stored in c:\work, and therefore the
> > BABELDOC_USER=c:\work
> > 3. Create a subdirectory c:\work\env
> > 4. Create a file in there called config.properties. Set the property
> > (or whatever properties) needed for your code to run.
> >
> > Try this, let me know.
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > I'm not sure what you mean by local configuration directory... I
>
> changed
>
> > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch,
and
> > > still
> > > get the No suitable driver error.
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jon,
> > >
> > > In the config/env/config.properties (this file contains properties
> > > which are
> > >
> > > added to the system properties) - so in your local configuration
> >
> > directory,
> >
> > > create an identical env/config.properties and add the line:
> > >
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > Stefan,
> > > >
> > > > I tried the system property approach
> > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command
line
> > > > to babeldoc, but that didn't work. Where did you add your JVM
system
> > > > property?
> > > >
> > > > -Jonathan
> > > >
> > > > -----Original Message-----
> > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > To: bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jonathan,
> > > >
> > > > we had the same problems with the query.properties und driver.
> >
> > Obviously,
> >
> > > > the property is missing.
> > > > A workmate added a statement, but I don't know which. I will post
our
> > > > query.properties for Oracle tomorrow.
> > > >
> > > > We added the driver as system property to the JVM. Anyway, in
> > > > production
> > >
> > > we
> > >
> > > > will retrieve a preconfigured datastore from JNDI.
> > > >
> > > > Regards,
> > > > Stefan
> > > >
> > > > ----- Original Message -----
> > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > To: <bab...@li...>
> > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > > > Thanks Dejan,
> > > > > That makes sense and I found the spot in the userguide that says
> > > > > that.
> > >
> > > I
> > >
> > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > just
> > > >
> > > > fine.
> > > >
> > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > problems.
> > > >
> > > > It
> > > >
> > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > query.properties in CVS, because the
> > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > query.properties, but OracleJournal.java needs
> > > >
> > > > it.
> > > >
> > > > > This causes a SQLException. Can somebody tell me what the value
> >
> > should
> >
> > > > > be for this?
> > > > >
> > > > > I had another problem with OracleJournal that I got past, which
was
>
> a
>
> > > > > No Suitable driver exception. I suspect whoever uses the
> >
> > OracleJournal
> >
> > > > > has
> > > >
> > > > the
> > > >
> > > > > code that fixes the problem and it just isn't checked in, or is
>
> using
>
> > > > > babeldoc in an environment that registers the Oracle driver for
>
> them.
>
> > > > > I would be happy to check the code in, what do I need to do to get
> > > > > CVS
> > > >
> > > > commit
> > > >
> > > > > access? Here's the code I would add to OracleJournal.java:
> > > > >
> > > > > static {
> > > > > try {
> > > > > DriverManager.registerDriver(new
> > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > catch (SQLException sqle) {
> > > > > throw new RuntimeException(sqle);
> > > > > }
> > > > > }
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > To: 'bab...@li...'
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > By default document are NOT stored into jjournal
> > > > > because it is time-consuming operation. If you want to
> > > > > store document into journal, you should set tracked
> > > > > property to true (tracked=true) for pipeline stage in
> > > > > which you want to store document.
> > > > >
> > > > > Dejan
> > > > >
> > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am getting started with babeldoc and trying to
> > > > > > understand the journal
> > > > > > capabilities. From what I've read in the
> > > > > > documentation, I should be able to
> > > > > > retrieve a document from the journal, and even
> > > > > > replay tickets etc. However,
> > > > > > if I run the svg-transcode example, and then try
> > > > > > babeldoc journal -D
> > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > document stored at (
>
> com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
>
<mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > >,
> > > >
> > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > the cause is a
> > > > > > ClassCastException trying to cast a String into a
> > > > > > PipelineDocument. I have
> > > > > > looked through the code to some extent, and I am
> > > > > > quite confused. I am
> > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > current version I checked
> > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > 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/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Babeldoc-devel mailing list
Bab...@li...
https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Bruce M. <br...@mc...> - 2003-06-27 18:08:43
|
This can be quite easily done as:
yourstage.options.key0=value
yourstage.options.key1=value
yourstage.options.key2=value
yourstage.options.key3=value
yourstage.options.key4=value
Like the XPathExtract and Router stages. There is API support that will
basically return an array of Pairs (Name/Value) from the options
configuration.
PipelineStage.getOptions
regards,
Bruce.
On Friday 27 June 2003 12:53 pm, Leech, Jonathan wrote:
> What is the best way for a pipeline option to hold a list of {key,value}
> pairs?
>
> -Jonathan
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Thursday, June 26, 2003 10:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Sorry - I was going to do a HttpPostPipelineStage but I never got around to
> it
> - Please go ahead and start this. Writing a pipeline stage is not a
> difficult thing - please do not hesitate to ask for advice, etc.
>
> regards,
> Bruce.
>
> On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > Thanks for the information on the local configuration.
> >
> > I have found the demons causing my No suitable driver error.
> > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > system property explicitly using the system class loader, whereas the
> > classes12.jar for oracle was not in my system classpath. What was
> > confusing was that I could load the class, using Class.forName(), or call
> > DriverManager.registerDriver() using a new instance of the oracle driver,
> > which made things work, because the babeldoc classloader is loading it.
>
> So
>
> > the answer is to explicity add it to the classpath.
> >
> > Also, the line that's missing from query.properties that makes the oracle
> > journal able to store documents is:
> > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > jrn_log_id=? and jrn_log_step=? for update
> >
> > Dejan mentioned in the Open Discussion forum to me that you might have
> > written a pipeline stage that uses the HttpClient library... Is that
> > true?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 7:27 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Hmm,
> >
> > Yes, that should do it. Are you sure its in the classpath?
> >
> > But, what I mean about local configuration path is this:
> >
> > You override the babeldoc configurations (as given in the babeldoc module
> > jar
> > files) by setting the BABELDOC_USER environment variable to a
>
> configuration
>
> > directory of your own. This is always takes precedence over whatever is
> > built into babeldoc. So, a practical example, in windows:
> >
> > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > BABELDOC_HOME=c:\babeldoc
> > 2. Your configuration data is stored in c:\work, and therefore the
> > BABELDOC_USER=c:\work
> > 3. Create a subdirectory c:\work\env
> > 4. Create a file in there called config.properties. Set the property
> > (or whatever properties) needed for your code to run.
> >
> > Try this, let me know.
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > I'm not sure what you mean by local configuration directory... I
>
> changed
>
> > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch, and
> > > still
> > > get the No suitable driver error.
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jon,
> > >
> > > In the config/env/config.properties (this file contains properties
> > > which are
> > >
> > > added to the system properties) - so in your local configuration
> >
> > directory,
> >
> > > create an identical env/config.properties and add the line:
> > >
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > Stefan,
> > > >
> > > > I tried the system property approach
> > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command line
> > > > to babeldoc, but that didn't work. Where did you add your JVM system
> > > > property?
> > > >
> > > > -Jonathan
> > > >
> > > > -----Original Message-----
> > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > To: bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jonathan,
> > > >
> > > > we had the same problems with the query.properties und driver.
> >
> > Obviously,
> >
> > > > the property is missing.
> > > > A workmate added a statement, but I don't know which. I will post our
> > > > query.properties for Oracle tomorrow.
> > > >
> > > > We added the driver as system property to the JVM. Anyway, in
> > > > production
> > >
> > > we
> > >
> > > > will retrieve a preconfigured datastore from JNDI.
> > > >
> > > > Regards,
> > > > Stefan
> > > >
> > > > ----- Original Message -----
> > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > To: <bab...@li...>
> > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > > > Thanks Dejan,
> > > > > That makes sense and I found the spot in the userguide that says
> > > > > that.
> > >
> > > I
> > >
> > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > just
> > > >
> > > > fine.
> > > >
> > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > problems.
> > > >
> > > > It
> > > >
> > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > query.properties in CVS, because the
> > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > query.properties, but OracleJournal.java needs
> > > >
> > > > it.
> > > >
> > > > > This causes a SQLException. Can somebody tell me what the value
> >
> > should
> >
> > > > > be for this?
> > > > >
> > > > > I had another problem with OracleJournal that I got past, which was
>
> a
>
> > > > > No Suitable driver exception. I suspect whoever uses the
> >
> > OracleJournal
> >
> > > > > has
> > > >
> > > > the
> > > >
> > > > > code that fixes the problem and it just isn't checked in, or is
>
> using
>
> > > > > babeldoc in an environment that registers the Oracle driver for
>
> them.
>
> > > > > I would be happy to check the code in, what do I need to do to get
> > > > > CVS
> > > >
> > > > commit
> > > >
> > > > > access? Here's the code I would add to OracleJournal.java:
> > > > >
> > > > > static {
> > > > > try {
> > > > > DriverManager.registerDriver(new
> > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > catch (SQLException sqle) {
> > > > > throw new RuntimeException(sqle);
> > > > > }
> > > > > }
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > To: 'bab...@li...'
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > By default document are NOT stored into jjournal
> > > > > because it is time-consuming operation. If you want to
> > > > > store document into journal, you should set tracked
> > > > > property to true (tracked=true) for pipeline stage in
> > > > > which you want to store document.
> > > > >
> > > > > Dejan
> > > > >
> > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am getting started with babeldoc and trying to
> > > > > > understand the journal
> > > > > > capabilities. From what I've read in the
> > > > > > documentation, I should be able to
> > > > > > retrieve a document from the journal, and even
> > > > > > replay tickets etc. However,
> > > > > > if I run the svg-transcode example, and then try
> > > > > > babeldoc journal -D
> > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > document stored at (
>
> com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
> <mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > >,
> > > >
> > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > the cause is a
> > > > > > ClassCastException trying to cast a String into a
> > > > > > PipelineDocument. I have
> > > > > > looked through the code to some extent, and I am
> > > > > > quite confused. I am
> > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > current version I checked
> > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Bruce M. <br...@mc...> - 2003-06-27 18:05:24
|
Jon,
Good - go ahead with the HttpClient one - its way more functional than the JDK
UrlConnection code.
Processing XML can be very expensive especially with lots of DTDs on remote
machines. I would be very interested to see what can be done about making
this work better. Of course the easy way out is to not verify the XML...
regards,
Bruce.
On Friday 27 June 2003 10:49 am, Leech, Jonathan wrote:
> Bruce,
>
> I have already prototyped one using the jdk HttpURLConnection, but looking
> at apache HttpClient it seems to be the way to go. If anyone else is
> interested in particular features for this, let me know and I'll put them
> in.
>
> Also, I am curious as to what steps other people are taking for speeding up
> XML parsing. Some of the documents I am parsing reference 20 .dtds on a
> remote server, which makes parsing take 15 seconds instead of .2. I have
> prototyped some code that is basically an EntityResolver cache, but I'm
> guessing that other people have built similar, more robust ways of
> accomplising this. Does babeldoc have a way of integrating with something
> like that?
>
> Sincerely,
> Jonathan Leech
> Senior Software Engineer
> Virtela Communications, Inc.
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Thursday, June 26, 2003 10:05 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Jon,
>
> Sorry - I was going to do a HttpPostPipelineStage but I never got around to
> it
> - Please go ahead and start this. Writing a pipeline stage is not a
> difficult thing - please do not hesitate to ask for advice, etc.
>
> regards,
> Bruce.
>
> On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > Thanks for the information on the local configuration.
> >
> > I have found the demons causing my No suitable driver error.
> > java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> > system property explicitly using the system class loader, whereas the
> > classes12.jar for oracle was not in my system classpath. What was
> > confusing was that I could load the class, using Class.forName(), or call
> > DriverManager.registerDriver() using a new instance of the oracle driver,
> > which made things work, because the babeldoc classloader is loading it.
>
> So
>
> > the answer is to explicity add it to the classpath.
> >
> > Also, the line that's missing from query.properties that makes the oracle
> > journal able to store documents is:
> > journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> > jrn_log_id=? and jrn_log_step=? for update
> >
> > Dejan mentioned in the Open Discussion forum to me that you might have
> > written a pipeline stage that uses the HttpClient library... Is that
> > true?
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 7:27 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Hmm,
> >
> > Yes, that should do it. Are you sure its in the classpath?
> >
> > But, what I mean about local configuration path is this:
> >
> > You override the babeldoc configurations (as given in the babeldoc module
> > jar
> > files) by setting the BABELDOC_USER environment variable to a
>
> configuration
>
> > directory of your own. This is always takes precedence over whatever is
> > built into babeldoc. So, a practical example, in windows:
> >
> > 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> > BABELDOC_HOME=c:\babeldoc
> > 2. Your configuration data is stored in c:\work, and therefore the
> > BABELDOC_USER=c:\work
> > 3. Create a subdirectory c:\work\env
> > 4. Create a file in there called config.properties. Set the property
> > (or whatever properties) needed for your code to run.
> >
> > Try this, let me know.
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > > Bruce,
> > >
> > > I'm not sure what you mean by local configuration directory... I
>
> changed
>
> > > the babeldoc/modules/sql/config/env/config.properties to have the
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch, and
> > > still
> > > get the No suitable driver error.
> > >
> > > Sincerely,
> > > Jonathan Leech
> > > Senior Software Engineer
> > > Virtela Communications, Inc.
> > >
> > > -----Original Message-----
> > > From: Bruce McDonald [mailto:br...@mc...]
> > > Sent: Wednesday, June 25, 2003 4:43 PM
> > > To: Leech, Jonathan; bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jon,
> > >
> > > In the config/env/config.properties (this file contains properties
> > > which are
> > >
> > > added to the system properties) - so in your local configuration
> >
> > directory,
> >
> > > create an identical env/config.properties and add the line:
> > >
> > > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> > >
> > > regards,
> > > Bruce.
> > >
> > > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > > Stefan,
> > > >
> > > > I tried the system property approach
> > > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command line
> > > > to babeldoc, but that didn't work. Where did you add your JVM system
> > > > property?
> > > >
> > > > -Jonathan
> > > >
> > > > -----Original Message-----
> > > > From: Stefan Krieger [mailto:ste...@co...]
> > > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > > To: bab...@li...
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > Jonathan,
> > > >
> > > > we had the same problems with the query.properties und driver.
> >
> > Obviously,
> >
> > > > the property is missing.
> > > > A workmate added a statement, but I don't know which. I will post our
> > > > query.properties for Oracle tomorrow.
> > > >
> > > > We added the driver as system property to the JVM. Anyway, in
> > > > production
> > >
> > > we
> > >
> > > > will retrieve a preconfigured datastore from JNDI.
> > > >
> > > > Regards,
> > > > Stefan
> > > >
> > > > ----- Original Message -----
> > > > From: "Leech, Jonathan" <jl...@vi...>
> > > > To: <bab...@li...>
> > > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > > > Thanks Dejan,
> > > > > That makes sense and I found the spot in the userguide that says
> > > > > that.
> > >
> > > I
> > >
> > > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > > just
> > > >
> > > > fine.
> > > >
> > > > > However, now I'm trying out the Oracle journal and I am having
> > > > > problems.
> > > >
> > > > It
> > > >
> > > > > looks to me like the code in CVS isn't quite in sync with the
> > > > > query.properties in CVS, because the
> > > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > > query.properties, but OracleJournal.java needs
> > > >
> > > > it.
> > > >
> > > > > This causes a SQLException. Can somebody tell me what the value
> >
> > should
> >
> > > > > be for this?
> > > > >
> > > > > I had another problem with OracleJournal that I got past, which was
>
> a
>
> > > > > No Suitable driver exception. I suspect whoever uses the
> >
> > OracleJournal
> >
> > > > > has
> > > >
> > > > the
> > > >
> > > > > code that fixes the problem and it just isn't checked in, or is
>
> using
>
> > > > > babeldoc in an environment that registers the Oracle driver for
>
> them.
>
> > > > > I would be happy to check the code in, what do I need to do to get
> > > > > CVS
> > > >
> > > > commit
> > > >
> > > > > access? Here's the code I would add to OracleJournal.java:
> > > > >
> > > > > static {
> > > > > try {
> > > > > DriverManager.registerDriver(new
> > > > > oracle.jdbc.driver.OracleDriver()); }
> > > > > catch (SQLException sqle) {
> > > > > throw new RuntimeException(sqle);
> > > > > }
> > > > > }
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > > >
> > > > > -----Original Message-----
> > > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > > To: 'bab...@li...'
> > > > > Subject: Re: [Babeldoc-devel] retrieving a document from the
> > > > > journal
> > > > >
> > > > >
> > > > > By default document are NOT stored into jjournal
> > > > > because it is time-consuming operation. If you want to
> > > > > store document into journal, you should set tracked
> > > > > property to true (tracked=true) for pipeline stage in
> > > > > which you want to store document.
> > > > >
> > > > > Dejan
> > > > >
> > > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > > Hi,
> > > > > >
> > > > > > I am getting started with babeldoc and trying to
> > > > > > understand the journal
> > > > > > capabilities. From what I've read in the
> > > > > > documentation, I should be able to
> > > > > > retrieve a document from the journal, and even
> > > > > > replay tickets etc. However,
> > > > > > if I run the svg-transcode example, and then try
> > > > > > babeldoc journal -D
> > > > > > 1056495510901.2, I get a JornalException: No
> > > > > > document stored at (
>
> com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
> <mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > > >,
> > > >
> > > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > > the cause is a
> > > > > > ClassCastException trying to cast a String into a
> > > > > > PipelineDocument. I have
> > > > > > looked through the code to some extent, and I am
> > > > > > quite confused. I am
> > > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > > current version I checked
> > > > > > out from CVS yesterday. What am I doing wrong?
> > > > > >
> > > > > > Sincerely,
> > > > > > Jonathan Leech
> > > > > > Senior Software Engineer
> > > > > > Virtela Communications, Inc.
> > > > >
> > > > > __________________________________
> > > > > Do you Yahoo!?
> > > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > > http://sbc.yahoo.com
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by: INetU
> > > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
>
> Monthly
>
> > > > > Commission! INetU Dedicated Managed Hosting
> > > > > http://www.inetu.net/partner/index.php
> > > > > _______________________________________________
> > > > > Babeldoc-devel mailing list
> > > > > Bab...@li...
> > > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Leech, J. <jl...@vi...> - 2003-06-27 16:53:58
|
What is the best way for a pipeline option to hold a list of {key,value}
pairs?
-Jonathan
-----Original Message-----
From: Bruce McDonald [mailto:br...@mc...]
Sent: Thursday, June 26, 2003 10:05 PM
To: Leech, Jonathan; bab...@li...
Subject: Re: [Babeldoc-devel] retrieving a document from the journal
Jon,
Sorry - I was going to do a HttpPostPipelineStage but I never got around to
it
- Please go ahead and start this. Writing a pipeline stage is not a
difficult thing - please do not hesitate to ask for advice, etc.
regards,
Bruce.
On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> Bruce,
>
> Thanks for the information on the local configuration.
>
> I have found the demons causing my No suitable driver error.
> java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> system property explicitly using the system class loader, whereas the
> classes12.jar for oracle was not in my system classpath. What was
> confusing was that I could load the class, using Class.forName(), or call
> DriverManager.registerDriver() using a new instance of the oracle driver,
> which made things work, because the babeldoc classloader is loading it.
So
> the answer is to explicity add it to the classpath.
>
> Also, the line that's missing from query.properties that makes the oracle
> journal able to store documents is:
> journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> jrn_log_id=? and jrn_log_step=? for update
>
> Dejan mentioned in the Open Discussion forum to me that you might have
> written a pipeline stage that uses the HttpClient library... Is that true?
>
> Sincerely,
> Jonathan Leech
> Senior Software Engineer
> Virtela Communications, Inc.
>
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Wednesday, June 25, 2003 7:27 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Hmm,
>
> Yes, that should do it. Are you sure its in the classpath?
>
> But, what I mean about local configuration path is this:
>
> You override the babeldoc configurations (as given in the babeldoc module
> jar
> files) by setting the BABELDOC_USER environment variable to a
configuration
> directory of your own. This is always takes precedence over whatever is
> built into babeldoc. So, a practical example, in windows:
>
> 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> BABELDOC_HOME=c:\babeldoc
> 2. Your configuration data is stored in c:\work, and therefore the
> BABELDOC_USER=c:\work
> 3. Create a subdirectory c:\work\env
> 4. Create a file in there called config.properties. Set the property (or
> whatever properties) needed for your code to run.
>
> Try this, let me know.
>
> regards,
> Bruce.
>
> On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > I'm not sure what you mean by local configuration directory... I
changed
> > the babeldoc/modules/sql/config/env/config.properties to have the
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch, and
> > still
> > get the No suitable driver error.
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 4:43 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > In the config/env/config.properties (this file contains properties which
> > are
> >
> > added to the system properties) - so in your local configuration
>
> directory,
>
> > create an identical env/config.properties and add the line:
> >
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > Stefan,
> > >
> > > I tried the system property approach
> > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command line
> > > to babeldoc, but that didn't work. Where did you add your JVM system
> > > property?
> > >
> > > -Jonathan
> > >
> > > -----Original Message-----
> > > From: Stefan Krieger [mailto:ste...@co...]
> > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > To: bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jonathan,
> > >
> > > we had the same problems with the query.properties und driver.
>
> Obviously,
>
> > > the property is missing.
> > > A workmate added a statement, but I don't know which. I will post our
> > > query.properties for Oracle tomorrow.
> > >
> > > We added the driver as system property to the JVM. Anyway, in
> > > production
> >
> > we
> >
> > > will retrieve a preconfigured datastore from JNDI.
> > >
> > > Regards,
> > > Stefan
> > >
> > > ----- Original Message -----
> > > From: "Leech, Jonathan" <jl...@vi...>
> > > To: <bab...@li...>
> > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > >
> > > > Thanks Dejan,
> > > > That makes sense and I found the spot in the userguide that says
> > > > that.
> >
> > I
> >
> > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > just
> > >
> > > fine.
> > >
> > > > However, now I'm trying out the Oracle journal and I am having
> > > > problems.
> > >
> > > It
> > >
> > > > looks to me like the code in CVS isn't quite in sync with the
> > > > query.properties in CVS, because the
> > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > query.properties, but OracleJournal.java needs
> > >
> > > it.
> > >
> > > > This causes a SQLException. Can somebody tell me what the value
>
> should
>
> > > > be for this?
> > > >
> > > > I had another problem with OracleJournal that I got past, which was
a
> > > > No Suitable driver exception. I suspect whoever uses the
>
> OracleJournal
>
> > > > has
> > >
> > > the
> > >
> > > > code that fixes the problem and it just isn't checked in, or is
using
> > > > babeldoc in an environment that registers the Oracle driver for
them.
> > > > I would be happy to check the code in, what do I need to do to get
> > > > CVS
> > >
> > > commit
> > >
> > > > access? Here's the code I would add to OracleJournal.java:
> > > >
> > > > static {
> > > > try {
> > > > DriverManager.registerDriver(new
> > > > oracle.jdbc.driver.OracleDriver()); }
> > > > catch (SQLException sqle) {
> > > > throw new RuntimeException(sqle);
> > > > }
> > > > }
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > To: 'bab...@li...'
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > By default document are NOT stored into jjournal
> > > > because it is time-consuming operation. If you want to
> > > > store document into journal, you should set tracked
> > > > property to true (tracked=true) for pipeline stage in
> > > > which you want to store document.
> > > >
> > > > Dejan
> > > >
> > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > Hi,
> > > > >
> > > > > I am getting started with babeldoc and trying to
> > > > > understand the journal
> > > > > capabilities. From what I've read in the
> > > > > documentation, I should be able to
> > > > > retrieve a document from the journal, and even
> > > > > replay tickets etc. However,
> > > > > if I run the svg-transcode example, and then try
> > > > > babeldoc journal -D
> > > > > 1056495510901.2, I get a JornalException: No
> > > > > document stored at (
> > > >
> > > >
com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
<mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > >,
> > >
> > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > the cause is a
> > > > > ClassCastException trying to cast a String into a
> > > > > PipelineDocument. I have
> > > > > looked through the code to some extent, and I am
> > > > > quite confused. I am
> > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > current version I checked
> > > > > out from CVS yesterday. What am I doing wrong?
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Leech, J. <jl...@vi...> - 2003-06-27 14:50:54
|
Bruce,
I have already prototyped one using the jdk HttpURLConnection, but looking
at apache HttpClient it seems to be the way to go. If anyone else is
interested in particular features for this, let me know and I'll put them
in.
Also, I am curious as to what steps other people are taking for speeding up
XML parsing. Some of the documents I am parsing reference 20 .dtds on a
remote server, which makes parsing take 15 seconds instead of .2. I have
prototyped some code that is basically an EntityResolver cache, but I'm
guessing that other people have built similar, more robust ways of
accomplising this. Does babeldoc have a way of integrating with something
like that?
Sincerely,
Jonathan Leech
Senior Software Engineer
Virtela Communications, Inc.
-----Original Message-----
From: Bruce McDonald [mailto:br...@mc...]
Sent: Thursday, June 26, 2003 10:05 PM
To: Leech, Jonathan; bab...@li...
Subject: Re: [Babeldoc-devel] retrieving a document from the journal
Jon,
Sorry - I was going to do a HttpPostPipelineStage but I never got around to
it
- Please go ahead and start this. Writing a pipeline stage is not a
difficult thing - please do not hesitate to ask for advice, etc.
regards,
Bruce.
On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> Bruce,
>
> Thanks for the information on the local configuration.
>
> I have found the demons causing my No suitable driver error.
> java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> system property explicitly using the system class loader, whereas the
> classes12.jar for oracle was not in my system classpath. What was
> confusing was that I could load the class, using Class.forName(), or call
> DriverManager.registerDriver() using a new instance of the oracle driver,
> which made things work, because the babeldoc classloader is loading it.
So
> the answer is to explicity add it to the classpath.
>
> Also, the line that's missing from query.properties that makes the oracle
> journal able to store documents is:
> journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> jrn_log_id=? and jrn_log_step=? for update
>
> Dejan mentioned in the Open Discussion forum to me that you might have
> written a pipeline stage that uses the HttpClient library... Is that true?
>
> Sincerely,
> Jonathan Leech
> Senior Software Engineer
> Virtela Communications, Inc.
>
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Wednesday, June 25, 2003 7:27 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Hmm,
>
> Yes, that should do it. Are you sure its in the classpath?
>
> But, what I mean about local configuration path is this:
>
> You override the babeldoc configurations (as given in the babeldoc module
> jar
> files) by setting the BABELDOC_USER environment variable to a
configuration
> directory of your own. This is always takes precedence over whatever is
> built into babeldoc. So, a practical example, in windows:
>
> 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> BABELDOC_HOME=c:\babeldoc
> 2. Your configuration data is stored in c:\work, and therefore the
> BABELDOC_USER=c:\work
> 3. Create a subdirectory c:\work\env
> 4. Create a file in there called config.properties. Set the property (or
> whatever properties) needed for your code to run.
>
> Try this, let me know.
>
> regards,
> Bruce.
>
> On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > I'm not sure what you mean by local configuration directory... I
changed
> > the babeldoc/modules/sql/config/env/config.properties to have the
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch, and
> > still
> > get the No suitable driver error.
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 4:43 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > In the config/env/config.properties (this file contains properties which
> > are
> >
> > added to the system properties) - so in your local configuration
>
> directory,
>
> > create an identical env/config.properties and add the line:
> >
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > Stefan,
> > >
> > > I tried the system property approach
> > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command line
> > > to babeldoc, but that didn't work. Where did you add your JVM system
> > > property?
> > >
> > > -Jonathan
> > >
> > > -----Original Message-----
> > > From: Stefan Krieger [mailto:ste...@co...]
> > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > To: bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jonathan,
> > >
> > > we had the same problems with the query.properties und driver.
>
> Obviously,
>
> > > the property is missing.
> > > A workmate added a statement, but I don't know which. I will post our
> > > query.properties for Oracle tomorrow.
> > >
> > > We added the driver as system property to the JVM. Anyway, in
> > > production
> >
> > we
> >
> > > will retrieve a preconfigured datastore from JNDI.
> > >
> > > Regards,
> > > Stefan
> > >
> > > ----- Original Message -----
> > > From: "Leech, Jonathan" <jl...@vi...>
> > > To: <bab...@li...>
> > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > >
> > > > Thanks Dejan,
> > > > That makes sense and I found the spot in the userguide that says
> > > > that.
> >
> > I
> >
> > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > just
> > >
> > > fine.
> > >
> > > > However, now I'm trying out the Oracle journal and I am having
> > > > problems.
> > >
> > > It
> > >
> > > > looks to me like the code in CVS isn't quite in sync with the
> > > > query.properties in CVS, because the
> > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > query.properties, but OracleJournal.java needs
> > >
> > > it.
> > >
> > > > This causes a SQLException. Can somebody tell me what the value
>
> should
>
> > > > be for this?
> > > >
> > > > I had another problem with OracleJournal that I got past, which was
a
> > > > No Suitable driver exception. I suspect whoever uses the
>
> OracleJournal
>
> > > > has
> > >
> > > the
> > >
> > > > code that fixes the problem and it just isn't checked in, or is
using
> > > > babeldoc in an environment that registers the Oracle driver for
them.
> > > > I would be happy to check the code in, what do I need to do to get
> > > > CVS
> > >
> > > commit
> > >
> > > > access? Here's the code I would add to OracleJournal.java:
> > > >
> > > > static {
> > > > try {
> > > > DriverManager.registerDriver(new
> > > > oracle.jdbc.driver.OracleDriver()); }
> > > > catch (SQLException sqle) {
> > > > throw new RuntimeException(sqle);
> > > > }
> > > > }
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > To: 'bab...@li...'
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > By default document are NOT stored into jjournal
> > > > because it is time-consuming operation. If you want to
> > > > store document into journal, you should set tracked
> > > > property to true (tracked=true) for pipeline stage in
> > > > which you want to store document.
> > > >
> > > > Dejan
> > > >
> > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > Hi,
> > > > >
> > > > > I am getting started with babeldoc and trying to
> > > > > understand the journal
> > > > > capabilities. From what I've read in the
> > > > > documentation, I should be able to
> > > > > retrieve a document from the journal, and even
> > > > > replay tickets etc. However,
> > > > > if I run the svg-transcode example, and then try
> > > > > babeldoc journal -D
> > > > > 1056495510901.2, I get a JornalException: No
> > > > > document stored at (
> > > >
> > > >
com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
>
<mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > >,
> > >
> > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > the cause is a
> > > > > ClassCastException trying to cast a String into a
> > > > > PipelineDocument. I have
> > > > > looked through the code to some extent, and I am
> > > > > quite confused. I am
> > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > current version I checked
> > > > > out from CVS yesterday. What am I doing wrong?
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10%
Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: Dejan K. <dej...@nb...> - 2003-06-27 14:23:32
|
I have commited some scanner code and reformated all code in scanner module.
Mailbox scanner seems to work well now.
Note that we should also perform formating on branch1_0 since we will
release 1.0.2 version soon. Bruce, if you will do this please comment
following line:
DEFAULT /cvsroot/sitedocs/CVSROOT/cvstools/syncmail %{sVv}
bab...@li...
in file CVSROOT/loginfo to disable cvs notification. After commiting just
uncomment it.
Dejan
> The reformatting is done (except scanner module - Dejan - you do this when
you
> are ready for it). Sorry about this major update but we are not going to
do
> this at all often.
>
> So the build has been updated. The module sorting routine has been
improved
> so that dependencies do not get missed (like the old system). Also the
first
> time that you build you will have to build setup. This creates
directories
> and will in the future copy all required ant jars for the actual build.
You
> will also have to build setup if you build clean.
>
> regards,
> Bruce.
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: <de...@us...> - 2003-06-27 14:09:45
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv20202/modules/scanner/src/com/babeldoc/scanner/gui
Modified Files:
ScannerMonitorFrame.java ScannerOptionNode.java
ScannerMonitorFrame_AboutBoxPanel.java ScannerWorkerNode.java
ScannerMonitor.java ConnectionDlg.java
Log Message:
Changing licence to Apache and fixed MailboxScanner
Index: ScannerMonitorFrame.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ScannerMonitorFrame.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ScannerMonitorFrame.java 10 Jun 2003 02:23:54 -0000 1.5
--- ScannerMonitorFrame.java 27 Jun 2003 14:00:14 -0000 1.6
***************
*** 1,26 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
[...1059 lines suppressed...]
! System.out.println("Pause all scanners");
! } else {
selected = (DefaultMutableTreeNode) path.getLastPathComponent();
! if (selected == rootNode) {
! stopAllScanners();
! System.out.println("Pause all scanners");
! } else if (rootNode.isNodeChild(selected)) {
ScannerWorkerNode scannerNode = (ScannerWorkerNode) selected.getUserObject();
! if (scannerNode.isScanning()) {
! scannerNode.pauseScanner();
! System.out.println(scannerNode.getName() + " paused");
} else {
! System.out.println(scannerNode.getName() + " paused");
}
} else {
! System.out.println("You must select a scanner!");
}
}
Index: ScannerOptionNode.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ScannerOptionNode.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ScannerOptionNode.java 11 Jun 2003 08:24:34 -0000 1.2
--- ScannerOptionNode.java 27 Jun 2003 14:00:14 -0000 1.3
***************
*** 1,36 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
*
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package com.babeldoc.scanner.gui;
import com.babeldoc.core.option.ConfigOption;
import com.babeldoc.scanner.ScannerWorkerConfig;
public class ScannerOptionNode {
private ScannerWorkerConfig config;
private String key;
private String value;
- private ConfigOption optionMeta;
public ScannerOptionNode(ConfigOption option, ScannerWorkerConfig config) {
this.config = config;
--- 1,92 ----
! /* ====================================================================
! * The Apache Software License, Version 1.1
*
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * reserved.
*
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
*
! * 1. Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
*
! * 2. Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in
! * the documentation and/or other materials provided with the
! * distribution.
! *
! * 3. The end-user documentation included with the redistribution,
! * if any, must include the following acknowledgment:
! * "This product includes software developed by the
! * Apache Software Foundation (http://www.apache.org/)."
! * Alternately, this acknowledgment may appear in the software itself,
! * if and wherever such third-party acknowledgments normally appear.
! *
! * 4. The names "Apache" and "Apache Software Foundation" must
! * not be used to endorse or promote products derived from this
! * software without prior written permission. For written
! * permission, please contact ap...@ap....
! *
! * 5. Products derived from this software may not be called "Apache",
! * nor may "Apache" appear in their name, without prior written
! * permission of the Apache Software Foundation.
! *
! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! * SUCH DAMAGE.
! * ====================================================================
! *
! * This software consists of voluntary contributions made by many
! * individuals on behalf of the Apache Software Foundation. For more
! * information on the Apache Software Foundation, please see
! * <http://www.apache.org/>.
! *
! * Portions of this software are based upon public domain software
! * originally written at the National Center for Supercomputing Applications,
! * University of Illinois, Urbana-Champaign.
! * ====================================================================
! *
! * Babeldoc: The Universal Document Processor
! *
! * $Header$
! * $DateTime$
! * $Author$
*
*/
package com.babeldoc.scanner.gui;
import com.babeldoc.core.option.ConfigOption;
+
import com.babeldoc.scanner.ScannerWorkerConfig;
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
public class ScannerOptionNode {
+ private ConfigOption optionMeta;
private ScannerWorkerConfig config;
private String key;
private String value;
+ /**
+ * Creates a new ScannerOptionNode object.
+ *
+ * @param option DOCUMENT ME!
+ * @param config DOCUMENT ME!
+ */
public ScannerOptionNode(ConfigOption option, ScannerWorkerConfig config) {
this.config = config;
***************
*** 40,43 ****
--- 96,122 ----
}
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public String getKey() {
+ return key;
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public ConfigOption getMetaInfo() {
+ return this.optionMeta;
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @param value DOCUMENT ME!
+ */
public void setNewValue(String value) {
this.value = value;
***************
*** 45,62 ****
}
! public String toString() {
! return key + "=" + value;
! }
!
public String getValue() {
return value;
}
! public String getKey() {
! return key;
! }
!
! public ConfigOption getMetaInfo() {
! return this.optionMeta;
}
}
--- 124,143 ----
}
! /**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
! */
public String getValue() {
return value;
}
! /**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
! */
! public String toString() {
! return key + "=" + value;
}
}
Index: ScannerMonitorFrame_AboutBoxPanel.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ScannerMonitorFrame_AboutBoxPanel.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ScannerMonitorFrame_AboutBoxPanel.java 1 Apr 2003 14:19:28 -0000 1.1
--- ScannerMonitorFrame_AboutBoxPanel.java 27 Jun 2003 14:00:14 -0000 1.2
***************
*** 1,39 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
*
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package com.babeldoc.scanner.gui;
import javax.swing.*;
import javax.swing.border.Border;
- import java.awt.*;
public class ScannerMonitorFrame_AboutBoxPanel extends JPanel {
private Border border = BorderFactory.createEtchedBorder();
private GridBagLayout layoutMain = new GridBagLayout();
private JLabel labelCompany = new JLabel();
private JLabel labelCopyright = new JLabel();
- private JLabel labelAuthor = new JLabel();
private JLabel labelTitle = new JLabel();
public ScannerMonitorFrame_AboutBoxPanel() {
try {
--- 1,92 ----
! /* ====================================================================
! * The Apache Software License, Version 1.1
*
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * reserved.
*
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
*
! * 1. Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
*
! * 2. Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in
! * the documentation and/or other materials provided with the
! * distribution.
! *
! * 3. The end-user documentation included with the redistribution,
! * if any, must include the following acknowledgment:
! * "This product includes software developed by the
! * Apache Software Foundation (http://www.apache.org/)."
! * Alternately, this acknowledgment may appear in the software itself,
! * if and wherever such third-party acknowledgments normally appear.
! *
! * 4. The names "Apache" and "Apache Software Foundation" must
! * not be used to endorse or promote products derived from this
! * software without prior written permission. For written
! * permission, please contact ap...@ap....
! *
! * 5. Products derived from this software may not be called "Apache",
! * nor may "Apache" appear in their name, without prior written
! * permission of the Apache Software Foundation.
! *
! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! * SUCH DAMAGE.
! * ====================================================================
! *
! * This software consists of voluntary contributions made by many
! * individuals on behalf of the Apache Software Foundation. For more
! * information on the Apache Software Foundation, please see
! * <http://www.apache.org/>.
! *
! * Portions of this software are based upon public domain software
! * originally written at the National Center for Supercomputing Applications,
! * University of Illinois, Urbana-Champaign.
! * ====================================================================
! *
! * Babeldoc: The Universal Document Processor
! *
! * $Header$
! * $DateTime$
! * $Author$
*
*/
package com.babeldoc.scanner.gui;
+ import java.awt.*;
+
import javax.swing.*;
import javax.swing.border.Border;
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
public class ScannerMonitorFrame_AboutBoxPanel extends JPanel {
private Border border = BorderFactory.createEtchedBorder();
private GridBagLayout layoutMain = new GridBagLayout();
+ private JLabel labelAuthor = new JLabel();
private JLabel labelCompany = new JLabel();
private JLabel labelCopyright = new JLabel();
private JLabel labelTitle = new JLabel();
+ /**
+ * Creates a new ScannerMonitorFrame_AboutBoxPanel object.
+ */
public ScannerMonitorFrame_AboutBoxPanel() {
try {
***************
*** 44,47 ****
--- 97,105 ----
}
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @throws Exception DOCUMENT ME!
+ */
private void jbInit() throws Exception {
this.setLayout(layoutMain);
***************
*** 52,66 ****
labelCompany.setText("Company");
this.add(labelTitle,
! new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(5, 15, 0, 15), 0, 0));
this.add(labelAuthor,
! new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
this.add(labelCopyright,
! new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
this.add(labelCompany,
! new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 5, 15), 0, 0));
}
}
--- 110,124 ----
labelCompany.setText("Company");
this.add(labelTitle,
! new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(5, 15, 0, 15), 0, 0));
this.add(labelAuthor,
! new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
this.add(labelCopyright,
! new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 0, 15), 0, 0));
this.add(labelCompany,
! new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, GridBagConstraints.WEST,
! GridBagConstraints.NONE, new Insets(0, 15, 5, 15), 0, 0));
}
}
Index: ScannerWorkerNode.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ScannerWorkerNode.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ScannerWorkerNode.java 3 Jun 2003 10:40:29 -0000 1.2
--- ScannerWorkerNode.java 27 Jun 2003 14:00:14 -0000 1.3
***************
*** 1,23 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
*
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package com.babeldoc.scanner.gui;
--- 1,66 ----
! /* ====================================================================
! * The Apache Software License, Version 1.1
*
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * reserved.
*
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
*
! * 1. Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
*
! * 2. Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in
! * the documentation and/or other materials provided with the
! * distribution.
! *
! * 3. The end-user documentation included with the redistribution,
! * if any, must include the following acknowledgment:
! * "This product includes software developed by the
! * Apache Software Foundation (http://www.apache.org/)."
! * Alternately, this acknowledgment may appear in the software itself,
! * if and wherever such third-party acknowledgments normally appear.
! *
! * 4. The names "Apache" and "Apache Software Foundation" must
! * not be used to endorse or promote products derived from this
! * software without prior written permission. For written
! * permission, please contact ap...@ap....
! *
! * 5. Products derived from this software may not be called "Apache",
! * nor may "Apache" appear in their name, without prior written
! * permission of the Apache Software Foundation.
! *
! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! * SUCH DAMAGE.
! * ====================================================================
! *
! * This software consists of voluntary contributions made by many
! * individuals on behalf of the Apache Software Foundation. For more
! * information on the Apache Software Foundation, please see
! * <http://www.apache.org/>.
! *
! * Portions of this software are based upon public domain software
! * originally written at the National Center for Supercomputing Applications,
! * University of Illinois, Urbana-Champaign.
! * ====================================================================
! *
! * Babeldoc: The Universal Document Processor
! *
! * $Header$
! * $DateTime$
! * $Author$
*
*/
package com.babeldoc.scanner.gui;
***************
*** 32,66 ****
public class ScannerWorkerNode {
private IRemoteScanner scanner;
- private String workerName = "";
private ScannerWorkerConfig configOptions;
private String lastDescription = "";
public ScannerWorkerNode(String workerName, IRemoteScanner scanner,
! ScannerWorkerConfig config) {
this.scanner = scanner;
! this.workerName = workerName;
! this.configOptions = config;
}
! /*
! public ScannerThread getScanner() {
! return scanner;
! }
! */
! void resumeScanner() throws ScannerException, RemoteException {
! scanner.restartWorker(workerName);
}
! public void pauseScanner() throws ScannerException, RemoteException {
! scanner.stopWorker(workerName);
}
public String toString() {
! try {
ScannerWorkerVO worker = scanner.getWorker(workerName);
! lastDescription = worker.status.toString() + "....";
} catch (Exception re) {
//
--- 75,162 ----
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
public class ScannerWorkerNode {
private IRemoteScanner scanner;
private ScannerWorkerConfig configOptions;
private String lastDescription = "";
+ private String workerName = "";
+ /**
+ * Creates a new ScannerWorkerNode object.
+ *
+ * @param workerName DOCUMENT ME!
+ * @param scanner DOCUMENT ME!
+ * @param config DOCUMENT ME!
+ */
public ScannerWorkerNode(String workerName, IRemoteScanner scanner,
! ScannerWorkerConfig config) {
this.scanner = scanner;
! this.workerName = workerName;
! this.configOptions = config;
}
! /**
! * TODO: DOCUMENT ME!
! *
! * @param newConfigOptions DOCUMENT ME!
! */
! public void setConfigOptions(ScannerWorkerConfig newConfigOptions) {
! configOptions = newConfigOptions;
}
! /**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
! */
! public ScannerWorkerConfig getConfigOptions() {
! return configOptions;
! }
!
! /**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
! */
! public String getName() {
! return workerName;
! }
!
! /**
! * TODO: DOCUMENT ME!
! *
! * @return DOCUMENT ME!
! *
! * @throws RemoteException DOCUMENT ME!
! * @throws ScannerException DOCUMENT ME!
! */
! public boolean isScanning() throws RemoteException, ScannerException {
! return false;
}
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @throws ScannerException DOCUMENT ME!
+ * @throws RemoteException DOCUMENT ME!
+ */
+ public void pauseScanner() throws ScannerException, RemoteException {
+ scanner.stopWorker(workerName);
+ }
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
public String toString() {
! try {
ScannerWorkerVO worker = scanner.getWorker(workerName);
! lastDescription = worker.status.toString() + "....";
} catch (Exception re) {
//
***************
*** 70,88 ****
}
! public String getName() {
! return workerName;
! }
!
! public boolean isScanning() throws RemoteException, ScannerException {
!
! return false;
! }
!
! public ScannerWorkerConfig getConfigOptions() {
! return configOptions;
! }
!
! public void setConfigOptions(ScannerWorkerConfig newConfigOptions) {
! configOptions = newConfigOptions;
}
}
--- 166,176 ----
}
! /*
! public ScannerThread getScanner() {
! return scanner;
! }
! */
! void resumeScanner() throws ScannerException, RemoteException {
! scanner.restartWorker(workerName);
}
}
Index: ScannerMonitor.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ScannerMonitor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ScannerMonitor.java 1 Apr 2003 14:19:28 -0000 1.1
--- ScannerMonitor.java 27 Jun 2003 14:00:14 -0000 1.2
***************
*** 1,23 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
*
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package com.babeldoc.scanner.gui;
--- 1,66 ----
! /* ====================================================================
! * The Apache Software License, Version 1.1
*
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * reserved.
*
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
*
! * 1. Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
*
! * 2. Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in
! * the documentation and/or other materials provided with the
! * distribution.
! *
! * 3. The end-user documentation included with the redistribution,
! * if any, must include the following acknowledgment:
! * "This product includes software developed by the
! * Apache Software Foundation (http://www.apache.org/)."
! * Alternately, this acknowledgment may appear in the software itself,
! * if and wherever such third-party acknowledgments normally appear.
! *
! * 4. The names "Apache" and "Apache Software Foundation" must
! * not be used to endorse or promote products derived from this
! * software without prior written permission. For written
! * permission, please contact ap...@ap....
! *
! * 5. Products derived from this software may not be called "Apache",
! * nor may "Apache" appear in their name, without prior written
! * permission of the Apache Software Foundation.
! *
! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! * SUCH DAMAGE.
! * ====================================================================
! *
! * This software consists of voluntary contributions made by many
! * individuals on behalf of the Apache Software Foundation. For more
! * information on the Apache Software Foundation, please see
! * <http://www.apache.org/>.
! *
! * Portions of this software are based upon public domain software
! * originally written at the National Center for Supercomputing Applications,
! * University of Illinois, Urbana-Champaign.
! * ====================================================================
! *
! * Babeldoc: The Universal Document Processor
! *
! * $Header$
! * $DateTime$
! * $Author$
*
*/
package com.babeldoc.scanner.gui;
***************
*** 25,35 ****
import com.babeldoc.core.EnvironmentLoader;
- import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class ScannerMonitor {
public ScannerMonitor() {
Frame frame = new ScannerMonitorFrame();
--- 68,88 ----
import com.babeldoc.core.EnvironmentLoader;
import java.awt.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
+ import javax.swing.*;
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
public class ScannerMonitor {
+ /**
+ * Creates a new ScannerMonitor object.
+ */
public ScannerMonitor() {
Frame frame = new ScannerMonitorFrame();
***************
*** 46,58 ****
frame.setLocation((screenSize.width - frameSize.width) / 2,
! (screenSize.height - frameSize.height) / 2);
frame.addWindowListener(new WindowAdapter() {
! public void windowClosing(WindowEvent e) {
! System.exit(0);
! }
! });
frame.setVisible(true);
}
public static void main(String[] args) {
try {
--- 99,116 ----
frame.setLocation((screenSize.width - frameSize.width) / 2,
! (screenSize.height - frameSize.height) / 2);
frame.addWindowListener(new WindowAdapter() {
! public void windowClosing(WindowEvent e) {
! System.exit(0);
! }
! });
frame.setVisible(true);
}
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @param args DOCUMENT ME!
+ */
public static void main(String[] args) {
try {
Index: ConnectionDlg.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/gui/ConnectionDlg.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConnectionDlg.java 1 Apr 2003 14:19:27 -0000 1.1
--- ConnectionDlg.java 27 Jun 2003 14:00:14 -0000 1.2
***************
*** 1,46 ****
! /*
! * $Header$
! * $DateTime: 2002/07/24 18:15:55 $
*
*
! * babeldoc: universal document processor
! * Copyright (C) 2002 Dejan Krsmanovic.
*
! * This program is free software; you can redistribute it and/or
! * modify it under the terms of the GNU General Public License
! * as published by the Free Software Foundation; either version 2
! * of the License, or (at your option) any later version.
*
! * This program is distributed in the hope that it will be useful,
! * but WITHOUT ANY WARRANTY; without even the implied warranty of
! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! * GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
package com.babeldoc.scanner.gui;
- import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class ConnectionDlg extends JDialog {
private JLabel lblHost = new JLabel();
- private JTextField txtHost = new JTextField();
private JLabel lblPort = new JLabel();
private JTextField txtPort = new JTextField();
- private JLabel lblDescript = new JLabel();
- private JButton btnConnect = new JButton();
- private int port;
private String host;
public ConnectionDlg() {
this(null, "", false);
}
public ConnectionDlg(Frame parent, String title, boolean modal) {
super(parent, title, modal);
--- 1,106 ----
! /* ====================================================================
! * The Apache Software License, Version 1.1
*
+ * Copyright (c) 2000 The Apache Software Foundation. All rights
+ * reserved.
*
! * Redistribution and use in source and binary forms, with or without
! * modification, are permitted provided that the following conditions
! * are met:
*
! * 1. Redistributions of source code must retain the above copyright
! * notice, this list of conditions and the following disclaimer.
*
! * 2. Redistributions in binary form must reproduce the above copyright
! * notice, this list of conditions and the following disclaimer in
! * the documentation and/or other materials provided with the
! * distribution.
! *
! * 3. The end-user documentation included with the redistribution,
! * if any, must include the following acknowledgment:
! * "This product includes software developed by the
! * Apache Software Foundation (http://www.apache.org/)."
! * Alternately, this acknowledgment may appear in the software itself,
! * if and wherever such third-party acknowledgments normally appear.
! *
! * 4. The names "Apache" and "Apache Software Foundation" must
! * not be used to endorse or promote products derived from this
! * software without prior written permission. For written
! * permission, please contact ap...@ap....
! *
! * 5. Products derived from this software may not be called "Apache",
! * nor may "Apache" appear in their name, without prior written
! * permission of the Apache Software Foundation.
! *
! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
! * SUCH DAMAGE.
! * ====================================================================
! *
! * This software consists of voluntary contributions made by many
! * individuals on behalf of the Apache Software Foundation. For more
! * information on the Apache Software Foundation, please see
! * <http://www.apache.org/>.
! *
! * Portions of this software are based upon public domain software
! * originally written at the National Center for Supercomputing Applications,
! * University of Illinois, Urbana-Champaign.
! * ====================================================================
! *
! * Babeldoc: The Universal Document Processor
! *
! * $Header$
! * $DateTime$
! * $Author$
*
*/
package com.babeldoc.scanner.gui;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
+ import javax.swing.*;
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @author $author$
+ * @version $Revision$
+ */
public class ConnectionDlg extends JDialog {
+ private JButton btnConnect = new JButton();
+ private JLabel lblDescript = new JLabel();
private JLabel lblHost = new JLabel();
private JLabel lblPort = new JLabel();
+ private JTextField txtHost = new JTextField();
private JTextField txtPort = new JTextField();
private String host;
+ private int port;
+ /**
+ * Creates a new ConnectionDlg object.
+ */
public ConnectionDlg() {
this(null, "", false);
}
+ /**
+ * Creates a new ConnectionDlg object.
+ *
+ * @param parent DOCUMENT ME!
+ * @param title DOCUMENT ME!
+ * @param modal DOCUMENT ME!
+ */
public ConnectionDlg(Frame parent, String title, boolean modal) {
super(parent, title, modal);
***************
*** 53,56 ****
--- 113,170 ----
}
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public String getHost() {
+ return host;
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @return DOCUMENT ME!
+ */
+ public int getPort() {
+ return port;
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ */
+ public void show() {
+ //Centralize!
+ int x = this.getParent().getX() + (this.getParent().getWidth() / 2);
+ int y = this.getParent().getY() + (this.getParent().getHeight() / 2);
+ x = x - (this.getWidth() / 2);
+ y = y - (this.getHeight() / 2);
+ this.setLocation(x, y);
+ super.show();
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @param e DOCUMENT ME!
+ */
+ private void btnConnect_actionPerformed(ActionEvent e) {
+ //check Values
+ host = txtHost.getText();
+ port = -1;
+
+ try {
+ port = Integer.parseInt(txtPort.getText());
+ } catch (Exception ex) {
+ }
+
+ this.hide();
+ }
+
+ /**
+ * TODO: DOCUMENT ME!
+ *
+ * @throws Exception DOCUMENT ME!
+ */
private void jbInit() throws Exception {
this.setSize(new Dimension(258, 224));
***************
*** 83,90 ****
btnConnect.setBounds(new Rectangle(80, 160, 80, 25));
btnConnect.addActionListener(new ActionListener() {
! public void actionPerformed(ActionEvent e) {
! btnConnect_actionPerformed(e);
! }
! });
this.getContentPane().add(btnConnect, null);
this.getContentPane().add(lblDescript, null);
--- 197,204 ----
btnConnect.setBounds(new Rectangle(80, 160, 80, 25));
btnConnect.addActionListener(new ActionListener() {
! public void actionPerformed(ActionEvent e) {
! btnConnect_actionPerformed(e);
! }
! });
this.getContentPane().add(btnConnect, null);
this.getContentPane().add(lblDescript, null);
***************
*** 93,127 ****
this.getContentPane().add(txtHost, null);
this.getContentPane().add(lblHost, null);
- }
-
- private void btnConnect_actionPerformed(ActionEvent e) {
- //check Values
- host = txtHost.getText();
- port = -1;
-
- try {
- port = Integer.parseInt(txtPort.getText());
- } catch (Exception ex) {
- }
-
- this.hide();
- }
-
- public int getPort() {
- return port;
- }
-
- public String getHost() {
- return host;
- }
-
- public void show() {
- //Centralize!
- int x = this.getParent().getX() + (this.getParent().getWidth() / 2);
- int y = this.getParent().getY() + (this.getParent().getHeight() / 2);
- x = x - (this.getWidth() / 2);
- y = y - (this.getHeight() / 2);
- this.setLocation(x, y);
- super.show();
}
}
--- 207,210 ----
|
|
From: <de...@us...> - 2003-06-27 14:09:44
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx In directory sc8-pr-cvs1:/tmp/cvs-serv20202/modules/scanner/src/com/babeldoc/scanner/jmx Modified Files: ScannerService.java ScannerServiceMBean.java Log Message: Changing licence to Apache and fixed MailboxScanner Index: ScannerService.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx/ScannerService.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ScannerService.java 3 Jun 2003 10:56:57 -0000 1.4 --- ScannerService.java 27 Jun 2003 14:00:15 -0000 1.5 *************** *** 1,22 **** ! /* ! * $Header$ ! * $DateTime: 2002/07/21 17:01:20 $ * * ! * babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.babeldoc.scanner.jmx; --- 1,66 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ package com.babeldoc.scanner.jmx; *************** *** 28,36 **** * MBean service support for jboss. Start up the scanner */ - /** ! * MBean implementor - this is for embedding the scanner into a mbean ! * container like jboss or weblogic, etc, etc. Generally a good idea, the ! * only problem is classpath issues. * * @author Bmcdonald --- 72,79 ---- * MBean service support for jboss. Start up the scanner */ /** ! * MBean implementor - this is for embedding the scanner into a mbean container ! * like jboss or weblogic, etc, etc. Generally a good idea, the only problem ! * is classpath issues. * * @author Bmcdonald *************** *** 44,79 **** /** ! * Start the service mbean */ ! public void start() throws Exception { ! scanner = new Scanner(new String[]{}); ! //TODO: Double check this since it maybe won't work... Did anyone used this anyway??? ! scanner.start(); ! System.out.println(com.babeldoc.core.I18n.get("scanner.001")); } /** * Start the service mbean */ ! public void stop() throws Exception { ! scanner.stop(); ! System.out.println(com.babeldoc.core.I18n.get("scanner.002")); } /** ! * Stop the service mbean */ ! public void setConfigUrl(String configUrl) throws Exception { ! this.configUrl = configUrl; ! System.out.println("setConfigUrl: " + configUrl); } /** * Start the service mbean */ ! public String getConfigUrl() throws Exception { ! System.out.println("getConfigUrl: " + configUrl); ! ! return this.configUrl; } } --- 87,135 ---- /** ! * Stop the service mbean ! * ! * @param configUrl DOCUMENT ME! ! * ! * @throws Exception DOCUMENT ME! */ ! public void setConfigUrl(String configUrl) throws Exception { ! this.configUrl = configUrl; ! System.out.println("setConfigUrl: " + configUrl); } /** * Start the service mbean + * + * @return DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! */ ! public String getConfigUrl() throws Exception { ! System.out.println("getConfigUrl: " + configUrl); ! ! return this.configUrl; } /** ! * Start the service mbean ! * ! * @throws Exception DOCUMENT ME! */ ! public void start() throws Exception { ! scanner = new Scanner(new String[] { }); ! ! //TODO: Double check this since it maybe won't work... Did anyone used this anyway??? ! scanner.start(); ! System.out.println(com.babeldoc.core.I18n.get("scanner.001")); } /** * Start the service mbean + * + * @throws Exception DOCUMENT ME! */ ! public void stop() throws Exception { ! scanner.stop(); ! System.out.println(com.babeldoc.core.I18n.get("scanner.002")); } } Index: ScannerServiceMBean.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/jmx/ScannerServiceMBean.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ScannerServiceMBean.java 15 Mar 2003 23:45:32 -0000 1.2 --- ScannerServiceMBean.java 27 Jun 2003 14:00:15 -0000 1.3 *************** *** 1,26 **** ! /* ! * $Header$ ! * $DateTime: 2002/07/21 17:01:20 $ * * ! * babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.babeldoc.scanner.jmx; - /** * Simple mbean interface for controlling a pipeline feeder scanner. Works --- 1,69 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ package com.babeldoc.scanner.jmx; /** * Simple mbean interface for controlling a pipeline feeder scanner. Works *************** *** 31,40 **** */ public interface ScannerServiceMBean { ! public void start() throws Exception; ! ! public void stop() throws Exception; ! public void setConfigUrl(String url) throws Exception; public String getConfigUrl() throws Exception; } --- 74,107 ---- */ public interface ScannerServiceMBean { ! /** ! * TODO: DOCUMENT ME! ! * ! * @param url DOCUMENT ME! ! * ! * @throws Exception DOCUMENT ME! ! */ public void setConfigUrl(String url) throws Exception; + /** + * TODO: DOCUMENT ME! + * + * @return DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ public String getConfigUrl() throws Exception; + + /** + * TODO: DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ + public void start() throws Exception; + + /** + * TODO: DOCUMENT ME! + * + * @throws Exception DOCUMENT ME! + */ + public void stop() throws Exception; } |
|
From: <de...@us...> - 2003-06-27 14:09:22
|
Update of /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/module In directory sc8-pr-cvs1:/tmp/cvs-serv20202/modules/scanner/src/com/babeldoc/scanner/module Modified Files: ScannerModule.java Log Message: Changing licence to Apache and fixed MailboxScanner Index: ScannerModule.java =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/scanner/src/com/babeldoc/scanner/module/ScannerModule.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ScannerModule.java 22 May 2003 03:20:30 -0000 1.2 --- ScannerModule.java 27 Jun 2003 14:00:16 -0000 1.3 *************** *** 1,22 **** ! /* ! * $Header$ ! * $DateTime$ * * ! * babeldoc: universal document processor * ! * This program is free software; you can redistribute it and/or ! * modify it under the terms of the GNU General Public License ! * as published by the Free Software Foundation; either version 2 ! * of the License, or (at your option) any later version. * ! * This program is distributed in the hope that it will be useful, ! * but WITHOUT ANY WARRANTY; without even the implied warranty of ! * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! * GNU General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package com.babeldoc.scanner.module; --- 1,66 ---- ! /* ==================================================================== ! * The Apache Software License, Version 1.1 * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. * ! * Redistribution and use in source and binary forms, with or without ! * modification, are permitted provided that the following conditions ! * are met: * ! * 1. Redistributions of source code must retain the above copyright ! * notice, this list of conditions and the following disclaimer. * ! * 2. Redistributions in binary form must reproduce the above copyright ! * notice, this list of conditions and the following disclaimer in ! * the documentation and/or other materials provided with the ! * distribution. ! * ! * 3. The end-user documentation included with the redistribution, ! * if any, must include the following acknowledgment: ! * "This product includes software developed by the ! * Apache Software Foundation (http://www.apache.org/)." ! * Alternately, this acknowledgment may appear in the software itself, ! * if and wherever such third-party acknowledgments normally appear. ! * ! * 4. The names "Apache" and "Apache Software Foundation" must ! * not be used to endorse or promote products derived from this ! * software without prior written permission. For written ! * permission, please contact ap...@ap.... ! * ! * 5. Products derived from this software may not be called "Apache", ! * nor may "Apache" appear in their name, without prior written ! * permission of the Apache Software Foundation. ! * ! * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED ! * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ! * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ! * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ! * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ! * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT ! * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF ! * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ! * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, ! * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ! * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ! * SUCH DAMAGE. ! * ==================================================================== ! * ! * This software consists of voluntary contributions made by many ! * individuals on behalf of the Apache Software Foundation. For more ! * information on the Apache Software Foundation, please see ! * <http://www.apache.org/>. ! * ! * Portions of this software are based upon public domain software ! * originally written at the National Center for Supercomputing Applications, ! * University of Illinois, Urbana-Champaign. ! * ==================================================================== ! * ! * Babeldoc: The Universal Document Processor ! * ! * $Header$ ! * $DateTime$ ! * $Author$ * */ package com.babeldoc.scanner.module; *************** *** 31,51 **** * This is the scanner module - please look around but dont touch. * ! * @author bmcdonald * @version 1.0 */ ! ! public class ScannerModule ! extends BabeldocModule { ! ! public final static String MODULE = "scanner"; ! ! /** ! * The Name of the module is scanner - and dont you forget it! ! * ! * @return ! */ ! public String getName() { ! return MODULE; ! } /** --- 75,83 ---- * This is the scanner module - please look around but dont touch. * ! * @author bmcdonald * @version 1.0 */ ! public class ScannerModule extends BabeldocModule { ! public static final String MODULE = "scanner"; /** *************** *** 58,62 **** --- 90,104 ---- set.add("core"); set.add("sql"); + return set; + } + + /** + * The Name of the module is scanner - and dont you forget it! + * + * @return + */ + public String getName() { + return MODULE; } } |
|
From: <de...@us...> - 2003-06-27 13:49:16
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder
In directory sc8-pr-cvs1:/tmp/cvs-serv18561/modules/core/src/com/babeldoc/core/pipeline/feeder
Modified Files:
DiskQueue.java
Log Message:
Removed unecessery System.out.println statement.
Index: DiskQueue.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/pipeline/feeder/DiskQueue.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** DiskQueue.java 27 Jun 2003 02:19:59 -0000 1.5
--- DiskQueue.java 27 Jun 2003 13:49:12 -0000 1.6
***************
*** 157,162 ****
try {
File file = this.serializeDocument(feedDoc);
! queue.addFirst(file);
! System.out.println("Current queue size = " + queue.size());
} catch (Exception e) {
e.printStackTrace();
--- 157,161 ----
try {
File file = this.serializeDocument(feedDoc);
! queue.addFirst(file);
} catch (Exception e) {
e.printStackTrace();
|
|
From: Bruce M. <br...@mc...> - 2003-06-27 04:04:56
|
Jon,
Sorry - I was going to do a HttpPostPipelineStage but I never got around to it
- Please go ahead and start this. Writing a pipeline stage is not a
difficult thing - please do not hesitate to ask for advice, etc.
regards,
Bruce.
On Thursday 26 June 2003 01:02 pm, Leech, Jonathan wrote:
> Bruce,
>
> Thanks for the information on the local configuration.
>
> I have found the demons causing my No suitable driver error.
> java.sql.DriverManager attempts to load the drivers in the jdbc.drivers
> system property explicitly using the system class loader, whereas the
> classes12.jar for oracle was not in my system classpath. What was
> confusing was that I could load the class, using Class.forName(), or call
> DriverManager.registerDriver() using a new instance of the oracle driver,
> which made things work, because the babeldoc classloader is loading it. So
> the answer is to explicity add it to the classpath.
>
> Also, the line that's missing from query.properties that makes the oracle
> journal able to store documents is:
> journalSelectBlobForUpdate-oracle=select jrn_data from journal where
> jrn_log_id=? and jrn_log_step=? for update
>
> Dejan mentioned in the Open Discussion forum to me that you might have
> written a pipeline stage that uses the HttpClient library... Is that true?
>
> Sincerely,
> Jonathan Leech
> Senior Software Engineer
> Virtela Communications, Inc.
>
>
> -----Original Message-----
> From: Bruce McDonald [mailto:br...@mc...]
> Sent: Wednesday, June 25, 2003 7:27 PM
> To: Leech, Jonathan; bab...@li...
> Subject: Re: [Babeldoc-devel] retrieving a document from the journal
>
>
> Hmm,
>
> Yes, that should do it. Are you sure its in the classpath?
>
> But, what I mean about local configuration path is this:
>
> You override the babeldoc configurations (as given in the babeldoc module
> jar
> files) by setting the BABELDOC_USER environment variable to a configuration
> directory of your own. This is always takes precedence over whatever is
> built into babeldoc. So, a practical example, in windows:
>
> 1. Your babeldoc is installed in c:\babeldoc, and therefore the
> BABELDOC_HOME=c:\babeldoc
> 2. Your configuration data is stored in c:\work, and therefore the
> BABELDOC_USER=c:\work
> 3. Create a subdirectory c:\work\env
> 4. Create a file in there called config.properties. Set the property (or
> whatever properties) needed for your code to run.
>
> Try this, let me know.
>
> regards,
> Bruce.
>
> On Wednesday 25 June 2003 07:20 pm, Leech, Jonathan wrote:
> > Bruce,
> >
> > I'm not sure what you mean by local configuration directory... I changed
> > the babeldoc/modules/sql/config/env/config.properties to have the
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver, rebuilt from scratch, and
> > still
> > get the No suitable driver error.
> >
> > Sincerely,
> > Jonathan Leech
> > Senior Software Engineer
> > Virtela Communications, Inc.
> >
> > -----Original Message-----
> > From: Bruce McDonald [mailto:br...@mc...]
> > Sent: Wednesday, June 25, 2003 4:43 PM
> > To: Leech, Jonathan; bab...@li...
> > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> >
> >
> > Jon,
> >
> > In the config/env/config.properties (this file contains properties which
> > are
> >
> > added to the system properties) - so in your local configuration
>
> directory,
>
> > create an identical env/config.properties and add the line:
> >
> > jdbc.drivers=oracle.jdbc.driver.OracleDriver
> >
> > regards,
> > Bruce.
> >
> > On Wednesday 25 June 2003 06:09 pm, Leech, Jonathan wrote:
> > > Stefan,
> > >
> > > I tried the system property approach
> > > (-Djdbc.drivers=oracle.jdbc.driver.OracleDriver), on the command line
> > > to babeldoc, but that didn't work. Where did you add your JVM system
> > > property?
> > >
> > > -Jonathan
> > >
> > > -----Original Message-----
> > > From: Stefan Krieger [mailto:ste...@co...]
> > > Sent: Wednesday, June 25, 2003 4:55 PM
> > > To: bab...@li...
> > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > >
> > >
> > > Jonathan,
> > >
> > > we had the same problems with the query.properties und driver.
>
> Obviously,
>
> > > the property is missing.
> > > A workmate added a statement, but I don't know which. I will post our
> > > query.properties for Oracle tomorrow.
> > >
> > > We added the driver as system property to the JVM. Anyway, in
> > > production
> >
> > we
> >
> > > will retrieve a preconfigured datastore from JNDI.
> > >
> > > Regards,
> > > Stefan
> > >
> > > ----- Original Message -----
> > > From: "Leech, Jonathan" <jl...@vi...>
> > > To: <bab...@li...>
> > > Sent: Wednesday, June 25, 2003 10:35 PM
> > > Subject: RE: [Babeldoc-devel] retrieving a document from the journal
> > >
> > > > Thanks Dejan,
> > > > That makes sense and I found the spot in the userguide that says
> > > > that.
> >
> > I
> >
> > > > tested it out with the SimpleJournal and I can retrieve documents
> > > > just
> > >
> > > fine.
> > >
> > > > However, now I'm trying out the Oracle journal and I am having
> > > > problems.
> > >
> > > It
> > >
> > > > looks to me like the code in CVS isn't quite in sync with the
> > > > query.properties in CVS, because the
> > > > journalSelectBlobForUpdate-oracle property doesn't exist in
> > > > query.properties, but OracleJournal.java needs
> > >
> > > it.
> > >
> > > > This causes a SQLException. Can somebody tell me what the value
>
> should
>
> > > > be for this?
> > > >
> > > > I had another problem with OracleJournal that I got past, which was a
> > > > No Suitable driver exception. I suspect whoever uses the
>
> OracleJournal
>
> > > > has
> > >
> > > the
> > >
> > > > code that fixes the problem and it just isn't checked in, or is using
> > > > babeldoc in an environment that registers the Oracle driver for them.
> > > > I would be happy to check the code in, what do I need to do to get
> > > > CVS
> > >
> > > commit
> > >
> > > > access? Here's the code I would add to OracleJournal.java:
> > > >
> > > > static {
> > > > try {
> > > > DriverManager.registerDriver(new
> > > > oracle.jdbc.driver.OracleDriver()); }
> > > > catch (SQLException sqle) {
> > > > throw new RuntimeException(sqle);
> > > > }
> > > > }
> > > >
> > > > Sincerely,
> > > > Jonathan Leech
> > > > Senior Software Engineer
> > > > Virtela Communications, Inc.
> > > >
> > > > -----Original Message-----
> > > > From: Dejan Krsmanovic [mailto:dej...@ya...]
> > > > Sent: Wednesday, June 25, 2003 1:47 PM
> > > > To: 'bab...@li...'
> > > > Subject: Re: [Babeldoc-devel] retrieving a document from the journal
> > > >
> > > >
> > > > By default document are NOT stored into jjournal
> > > > because it is time-consuming operation. If you want to
> > > > store document into journal, you should set tracked
> > > > property to true (tracked=true) for pipeline stage in
> > > > which you want to store document.
> > > >
> > > > Dejan
> > > >
> > > > --- "Leech, Jonathan" <jl...@vi...> wrote:
> > > > > Hi,
> > > > >
> > > > > I am getting started with babeldoc and trying to
> > > > > understand the journal
> > > > > capabilities. From what I've read in the
> > > > > documentation, I should be able to
> > > > > retrieve a document from the journal, and even
> > > > > replay tickets etc. However,
> > > > > if I run the svg-transcode example, and then try
> > > > > babeldoc journal -D
> > > > > 1056495510901.2, I get a JornalException: No
> > > > > document stored at (
> > > >
> > > > com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901],2
>
> <mailto:com.babeldoc.core.journal.JournalTicket@763f5d[value=1056495510901]
>
> > >,
> > >
> > > > > 2> ). I added some debug code and rebuilt it, and
> > > > > the cause is a
> > > > > ClassCastException trying to cast a String into a
> > > > > PipelineDocument. I have
> > > > > looked through the code to some extent, and I am
> > > > > quite confused. I am
> > > > > getting the same problem in babeldoc-1.0.1 and the
> > > > > current version I checked
> > > > > out from CVS yesterday. What am I doing wrong?
> > > > >
> > > > > Sincerely,
> > > > > Jonathan Leech
> > > > > Senior Software Engineer
> > > > > Virtela Communications, Inc.
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > SBC Yahoo! DSL - Now only $29.95 per month!
> > > > http://sbc.yahoo.com
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.Net email is sponsored by: INetU
> > > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > > Commission! INetU Dedicated Managed Hosting
> > > > http://www.inetu.net/partner/index.php
> > > > _______________________________________________
> > > > Babeldoc-devel mailing list
> > > > Bab...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by: INetU
> > > Attention Web Developers & Consultants: Become An INetU Hosting
> > > Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly
> > > Commission! INetU Dedicated Managed Hosting
> > > http://www.inetu.net/partner/index.php
> > > _______________________________________________
> > > Babeldoc-devel mailing list
> > > Bab...@li...
> > > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: INetU
> > Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> > _______________________________________________
> > Babeldoc-devel mailing list
> > Bab...@li...
> > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> Babeldoc-devel mailing list
> Bab...@li...
> https://lists.sourceforge.net/lists/listinfo/babeldoc-devel
|
|
From: <tr...@us...> - 2003-06-27 03:50:03
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/i18n
In directory sc8-pr-cvs1:/tmp/cvs-serv9691/config/i18n
Modified Files:
messages.properties
Log Message:
update the runtime module handling to use same algorithm as build module handler. Also placed missing i18n messages for ModuleCommand.
Index: messages.properties
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/i18n/messages.properties,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** messages.properties 8 Jun 2003 18:23:30 -0000 1.12
--- messages.properties 27 Jun 2003 03:36:21 -0000 1.13
***************
*** 383,384 ****
--- 383,390 ----
core.pipeline.stageinfo.tracked=Is this stage tracked
core.pipeline.stageinfo.error.complex=Can't apply pipeline stage configuration data to non-complex option
+
+ core.module.command.desc=Manipulate the babeldoc modules
+ core.module.command.option.list=List the modules and dependants
+ 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
|
|
From: <tr...@us...> - 2003-06-27 03:49:43
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/module
In directory sc8-pr-cvs1:/tmp/cvs-serv9691/src/com/babeldoc/core/module
Modified Files:
BabeldocModuleCommand.java BabeldocModuleList.java
Log Message:
update the runtime module handling to use same algorithm as build module handler. Also placed missing i18n messages for ModuleCommand.
Index: BabeldocModuleCommand.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/module/BabeldocModuleCommand.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** BabeldocModuleCommand.java 27 Jun 2003 02:19:58 -0000 1.14
--- BabeldocModuleCommand.java 27 Jun 2003 03:36:21 -0000 1.15
***************
*** 82,86 ****
* @author bruce
*/
! public class BabeldocModuleCommand extends BabeldocCommand {
/**
* Setup the babeldoc command class
--- 82,87 ----
* @author bruce
*/
! public class BabeldocModuleCommand
! extends BabeldocCommand {
/**
* Setup the babeldoc command class
***************
*** 123,135 ****
*/
public void listModules() {
! BabeldocModule[] modules = BabeldocModuleList.getInstance()
! .getSortedModules();
! for (int i = 0; i < modules.length; ++i) {
! BabeldocModule module = modules[i];
! String deps = getDependantsAsCVS(module.getDependsOn());
! System.out.println(I18n.get("core.module.command.list.output",
! module.getName(), deps));
}
}
--- 124,140 ----
*/
public void listModules() {
! BabeldocModule[] modules = BabeldocModuleList.getInstance().getSortedModules();
! if(modules!=null) {
! for (int i = 0; i < modules.length; ++i) {
! BabeldocModule module = modules[i];
! String deps = getDependantsAsCVS(module.getDependsOn());
! System.out.println(I18n.get("core.module.command.list.output",
! module.getName(), deps));
! }
! } else {
! System.out.println("No modules found!!!");
}
+
}
***************
*** 160,177 ****
*/
private String getDependantsAsCVS(Set depSet) {
! String[] depsArray = new String[depSet.size()];
! depSet.toArray(depsArray);
! StringBuffer deps = new StringBuffer();
! for (int j = 0; j < depsArray.length; ++j) {
! if (j != 0) {
! deps.append(", ").append(depsArray[j]);
! } else {
! deps.append(depsArray[j]);
}
- }
! return deps.toString();
}
}
--- 165,186 ----
*/
private String getDependantsAsCVS(Set depSet) {
! if(depSet!=null) {
! String[] depsArray = new String[depSet.size()];
! depSet.toArray(depsArray);
! StringBuffer deps = new StringBuffer();
! for (int j = 0; j < depsArray.length; ++j) {
! if (j != 0) {
! deps.append(", ").append(depsArray[j]);
! } else {
! deps.append(depsArray[j]);
! }
}
! return deps.toString();
! } else {
! return "";
! }
}
}
Index: BabeldocModuleList.java
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/module/BabeldocModuleList.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** BabeldocModuleList.java 27 Jun 2003 02:19:58 -0000 1.3
--- BabeldocModuleList.java 27 Jun 2003 03:36:21 -0000 1.4
***************
*** 68,75 ****
import org.apache.commons.discovery.tools.Service;
! import java.util.Enumeration;
! import java.util.HashMap;
! import java.util.Iterator;
! import java.util.Map;
--- 68,72 ----
import org.apache.commons.discovery.tools.Service;
! import java.util.*;
***************
*** 80,84 ****
* is a tie-in with the build process in that the name of the module must
* match the name returned by the getName method. This is important.
! *
* <p>
* This is a singleton class. There is an static instance.
--- 77,81 ----
* is a tie-in with the build process in that the name of the module must
* match the name returned by the getName method. This is important.
! *
* <p>
* This is a singleton class. There is an static instance.
***************
*** 86,92 ****
*/
public class BabeldocModuleList {
/** Instance variable */
private static BabeldocModuleList instance = null;
! BabeldocModule[] modules = null;
private Map map = new HashMap();
--- 83,93 ----
*/
public class BabeldocModuleList {
+ private static final String CORE = "core";
+ private static final String VISITING = "VISITING";
+ private static final String VISITED = "VISITED";
+
/** Instance variable */
private static BabeldocModuleList instance = null;
! private BabeldocModule[] modules = null;
private Map map = new HashMap();
***************
*** 98,114 ****
}
- /*
- private String printOutArrayList(IBabeldocModule [] list) {
- StringBuffer buffer = new StringBuffer();
- buffer.append("[ ");
- for(int i = 0; i < list.length; ++i) {
- buffer.append((list[i].getName()+" "));
- }
- buffer.append("]");
-
- return buffer.toString();
- }
- */
-
/**
* Get the instance variable. Instantiate the object if necessary.
--- 99,102 ----
***************
*** 135,139 ****
}
! /**
* Get the sorted list from the least dependant to the most dependant.
*
--- 123,140 ----
}
! private static RuntimeException makeCircularException(String end, Stack stk) {
! StringBuffer sb = new StringBuffer("Circular dependency: ");
! sb.append(end);
! String c;
! do {
! c = (String) stk.pop();
! sb.append(" <- ");
! sb.append(c);
! } while (!c.equals(end));
!
! return new RuntimeException(new String(sb));
! }
!
! /**
* Get the sorted list from the least dependant to the most dependant.
*
***************
*** 142,205 ****
public BabeldocModule[] getSortedModules() {
if (modules == null) {
! modules = new BabeldocModule[map.size()];
! map.values().toArray(modules);
! for (int i = 0; i < modules.length; ++i) {
! for (int j = 0; j < modules.length; ++j) {
! if (i == j) {
! continue;
! }
! BabeldocModule mod1 = modules[i];
! BabeldocModule mod2 = modules[j];
! if (dependsOn(mod1, mod2)) {
! BabeldocModule tmp = modules[i];
! modules[i] = modules[j];
! modules[j] = tmp;
! }
! }
}
}
! return modules;
}
/**
! * Add the module to the list of modules
*
! * @param module
*/
! public void addModule(BabeldocModule module) {
! module.initialize();
! map.put(module.getName(), module);
! modules = null; // Set the cached list of modules to null.
! }
! /**
! * Returns true if mod1 depends on mod2. This is a fairly expensive
! * operation.
! *
! * @param mod1
! * @param mod2
! *
! * @return
! */
! private boolean dependsOn(BabeldocModule mod1, BabeldocModule mod2) {
! if (mod1.getDependsOn() != null) {
! for (Iterator iter = mod1.getDependsOn().iterator(); iter.hasNext();) {
! String depName = (String) iter.next();
! if (depName.equals(mod2.getName())) {
! return true;
! } else {
! BabeldocModule depMod = getModule(depName);
! return dependsOn(depMod, mod2);
}
}
}
! return false;
}
--- 143,248 ----
public BabeldocModule[] getSortedModules() {
if (modules == null) {
! modules = getPrivSortedModules();
! }
! return modules;
! }
! /**
! * Get an array of sorted modules. The first element in the array should be be
! * the least dependant modules (ie core, etc)
! * @return array of modules, sorted from least dependant to most.
! */
! private BabeldocModule[] getPrivSortedModules() {
! Collection ret = new ArrayList();
! Map state = new HashMap();
! Stack visiting = new Stack();
! /** Handle the core module - always first in list */
! state.put(CORE, VISITED);
! ret.add(map.get(CORE));
! /** Now iterate over each of the modules, sorting as we go */
! for (Iterator en = map.keySet().iterator(); en.hasNext();) {
! String currModuleName = (String)en.next();
! String currModuleState = (String) state.get(currModuleName);
!
! if (currModuleState == null) {
! treeSort(currModuleName, state, visiting, ret);
! } else if (currModuleState == VISITING) {
! throw new RuntimeException("Unexpected node in visiting state: " + currModuleName);
}
}
! return (BabeldocModule[])ret.toArray(new BabeldocModule[0]);
}
/**
! * Sort the nodes from the root node. This is a topographical sort
*
! * @param root
! * @param state
! * @param visiting
! * @param ret
*/
! private final void treeSort(String root, Map state, Stack visiting,
! Collection ret) {
! state.put(root, VISITING);
! visiting.push(root);
! BabeldocModule module = (BabeldocModule) map.get(root);
! // Make sure we exist
! if (module == null) {
! StringBuffer sb = new StringBuffer("Module `");
! sb.append(root);
! sb.append("' does not exist. ");
!
! visiting.pop();
! if (!visiting.empty()) {
! String parent = (String) visiting.peek();
!
! sb.append("It is used from module `");
! sb.append(parent);
! sb.append("'.");
! }
!
! throw new RuntimeException(new String(sb));
! }
!
! if(module.getDependsOn()!=null) {
! for (Iterator iterator = module.getDependsOn().iterator(); iterator.hasNext();) {
! String currModuleName = (String) iterator.next();
! String currModuleState = (String) state.get(currModuleName);
!
! if (currModuleState == null) {
! // Not been visited
! treeSort(currModuleName, state, visiting, ret);
! } else if (currModuleState == VISITING) {
! // Currently visiting this node, so have a cycle
! throw makeCircularException(currModuleName, visiting);
}
}
}
! String p = (String) visiting.pop();
!
! if (root != p) {
! throw new RuntimeException("Unexpected internal error: expected to " + "pop " + root + " but got " + p);
! }
!
! state.put(root, VISITED);
! ret.add(module);
! }
!
! /**
! * Add the module to the list of modules
! *
! * @param module
! */
! public void addModule(BabeldocModule module) {
! module.initialize();
! map.put(module.getName(), module);
! modules = null; // Set the cached list of modules to null.
}
***************
*** 217,228 ****
}
}
-
- /*
- public static String performDynamicSort() {
- BabeldocModuleList modlist = new BabeldocModuleList();
- modlist.loadDynamicModules();
- IBabeldocModule [] modules = modlist.getSortedModulesLeastToMost();
- return modlist.printOutArrayList(modules);
- }
- */
}
--- 260,262 ----
|
|
From: <tr...@us...> - 2003-06-27 03:10:15
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/simple In directory sc8-pr-cvs1:/tmp/cvs-serv6524 Modified Files: documentation.properties Log Message: use "real" comment characters. Index: documentation.properties =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/modules/core/config/pipeline/simple/documentation.properties,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** documentation.properties 21 May 2003 22:46:34 -0000 1.5 --- documentation.properties 27 Jun 2003 03:10:00 -0000 1.6 *************** *** 1,10 **** entryStage=attrdefault ! ;attrcheck.stageType=Scripting ! ;attrcheck.nextStage=choose ! ;attrcheck.language=javascript ! ;attrcheck.scriptFile=core/scripts/attrcheck.js ! ;attrcheck.attrs.style=Attribute 'Style' required. This attribute determines the output document type. One of: html, xhtml, text ! ;attrcheck.failOnError=true attrdefault.stageType=Scripting --- 1,10 ---- entryStage=attrdefault ! #attrcheck.stageType=Scripting ! #attrcheck.nextStage=choose ! #attrcheck.language=javascript ! #attrcheck.scriptFile=core/scripts/attrcheck.js ! #attrcheck.attrs.style=Attribute 'Style' required. This attribute determines the output document type. One of: html, xhtml, text ! #attrcheck.failOnError=true attrdefault.stageType=Scripting |
|
From: <tr...@us...> - 2003-06-27 03:06:03
|
Update of /cvsroot/babeldoc/babeldoc/modules/init
In directory sc8-pr-cvs1:/tmp/cvs-serv3517/modules/init
Modified Files:
build.xml
Log Message:
updated the license file
Index: build.xml
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/init/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** build.xml 27 Jun 2003 00:14:55 -0000 1.3
--- build.xml 27 Jun 2003 02:43:19 -0000 1.4
***************
*** 42,47 ****
<target name="format">
- <echo message="Formatting ${Module}"/>
<!--
<jalopy fileformat="${jalopy.fileformat}"
convention="${jalopy.convention}"
--- 42,47 ----
<target name="format">
<!--
+ <echo message="Formatting ${Module}"/>
<jalopy fileformat="${jalopy.fileformat}"
convention="${jalopy.convention}"
|
|
From: <tr...@us...> - 2003-06-27 03:05:50
|
Update of /cvsroot/babeldoc/babeldoc/modules/crypto
In directory sc8-pr-cvs1:/tmp/cvs-serv3517/modules/crypto
Modified Files:
build.xml
Log Message:
updated the license file
Index: build.xml
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/crypto/build.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** build.xml 27 Jun 2003 01:50:07 -0000 1.7
--- build.xml 27 Jun 2003 02:43:18 -0000 1.8
***************
*** 87,91 ****
</fileset>
</jalopy>
- </target>
-->
</project>
--- 87,91 ----
</fileset>
</jalopy>
-->
+ </target>
</project>
|
|
From: <tr...@us...> - 2003-06-27 03:05:50
|
Update of /cvsroot/babeldoc/babeldoc In directory sc8-pr-cvs1:/tmp/cvs-serv3517 Modified Files: quickstart-en.txt Log Message: updated the license file Index: quickstart-en.txt =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/quickstart-en.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** quickstart-en.txt 14 Mar 2003 17:59:37 -0000 1.4 --- quickstart-en.txt 27 Jun 2003 02:43:17 -0000 1.5 *************** *** 15,21 **** 3. Building (if required) ----------- ! a. Windows: build ! b. Unix: ./build.sh (you might need to make this executable) 4. Environment variables --- 15,23 ---- 3. Building (if required) ----------- ! a1. Windows: build setup ! a2. Windows: build ! b1. Unix: ./build.sh setup (you might need to make this executable) ! b1. Unix: ./build.sh 4. Environment variables |
|
From: <tr...@us...> - 2003-06-27 03:05:48
|
Update of /cvsroot/babeldoc/babeldoc/readme/userguide In directory sc8-pr-cvs1:/tmp/cvs-serv3517/readme/userguide Modified Files: appendix1.xml Log Message: updated the license file Index: appendix1.xml =================================================================== RCS file: /cvsroot/babeldoc/babeldoc/readme/userguide/appendix1.xml,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** appendix1.xml 24 Feb 2003 22:50:26 -0000 1.1.1.1 --- appendix1.xml 27 Jun 2003 02:43:19 -0000 1.2 *************** *** 1,34 **** <?xml version="1.0" encoding="ISO-8859-1"?> <appendix> ! <title>The Gnu General Public License</title> ! <para> <ulink url="http://www.gnu.org/licenses/gpl.html#TOC1"/> </para> ! <para>Version 2, June 1991 </para> ! <para>Copyright (C) 1989, 1991 Free Software Foundation, Inc. </para> ! <para>59 Temple Place - Suite 330, Boston, MA 02111-1307, USA</para> ! <para/> ! <para>Everyone is permitted to copy and distribute verbatim copies</para> ! <para>of this license document, but changing it is not allowed.</para> ! <ulink url="http://www.gnu.org/licenses/gpl.html#TOC2">Preamble</ulink> ! <para>The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. </para> ! <para>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. </para> ! <para>To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. </para> ! <para>For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. </para> ! <para>We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. </para> ! <para>Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. </para> ! <para>Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. </para> ! <para>The precise terms and conditions for copying, distribution and modification follow. </para> ! <ulink url="http://www.gnu.org/licenses/gpl.html#TOC3">TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</ulink> ! <para>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. </para> ! <para>You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. </para> ! <para>These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. </para> ! <para>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. </para> ! <para>In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. </para> ! <para>The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. </para> ! <para>If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. </para> ! <para>If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. </para> ! <para>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. </para> ! <para>This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. </para> ! <para>Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. </para> ! <para>END OF TERMS AND CONDITIONS</para> </appendix> --- 1,19 ---- <?xml version="1.0" encoding="ISO-8859-1"?> <appendix> ! <title>The Apache Software License, Version 1.1</title> ! <para>Copyright (c) 2000 The Apache Software Foundation. All rights reserved.</para> ! <para>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:</para> ! <para>1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.</para> ! <para>2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.</para> ! <para>3. The end-user documentation included with the redistribution, if any, must include the following acknowledgment:</para> ! <para>"This product includes software developed by the Apache Software Foundation (http://www.apache.org/).</para> ! <para>Alternately, this acknowledgment may appear in the software itself, if and wherever such third-party acknowledgments normally appear.</para> ! <para>4. The names "Apache" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact ap...@ap....</para> ! <para>5. Products derived from this software may not be called "Apache", nor may "Apache" appear in their name, without prior written permission of the Apache Software Foundation.</para> ! <para>THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</para> ! <para>====================================================================</para> ! <para>This software consists of voluntary contributions made by many individuals on behalf of the Apache Software Foundation. For more information on the Apache Software Foundation, please see http://www.apache.org.</para> ! <para>Portions of this software are based upon public domain software originally written at the National Center for Supercomputing Applications, University of Illinois, Urbana-Champaign.</para> ! <para>====================================================================</para> </appendix> |
|
From: Bruce M. <br...@mc...> - 2003-06-27 02:25:33
|
All, The reformatting is done (except scanner module - Dejan - you do this when you are ready for it). Sorry about this major update but we are not going to do this at all often. So the build has been updated. The module sorting routine has been improved so that dependencies do not get missed (like the old system). Also the first time that you build you will have to build setup. This creates directories and will in the future copy all required ant jars for the actual build. You will also have to build setup if you build clean. regards, Bruce. |
|
From: <tr...@us...> - 2003-06-27 02:24:33
|
Update of /cvsroot/babeldoc/babeldoc/modules/gui
In directory sc8-pr-cvs1:/tmp/cvs-serv32581
Modified Files:
build.xml
Log Message:
moved the echo into the commented area
Index: build.xml
===================================================================
RCS file: /cvsroot/babeldoc/babeldoc/modules/gui/build.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** build.xml 12 Jun 2003 04:51:04 -0000 1.9
--- build.xml 27 Jun 2003 02:12:47 -0000 1.10
***************
*** 77,82 ****
<target name="format">
- <echo message="Formatting ${Module}"/>
<!--
<jalopy fileformat="${jalopy.fileformat}"
convention="${jalopy.convention}"
--- 77,82 ----
<target name="format">
<!--
+ <echo message="Formatting ${Module}"/>
<jalopy fileformat="${jalopy.fileformat}"
convention="${jalopy.convention}"
|
|
From: <tr...@us...> - 2003-06-27 02:20:31
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/command In directory sc8-pr-cvs1:/tmp/cvs-serv700/src/com/babeldoc/core/journal/command Modified Files: JournalCommand.java Log Message: reformatted and updated license header |
|
From: <tr...@us...> - 2003-06-27 02:20:31
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/simple In directory sc8-pr-cvs1:/tmp/cvs-serv700/src/com/babeldoc/core/journal/simple Modified Files: SimpleJournal.java Log Message: reformatted and updated license header |
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/journal/query In directory sc8-pr-cvs1:/tmp/cvs-serv700/src/com/babeldoc/core/journal/query Modified Files: JournalQuery.java JournalQueryException.java JournalQueryTest.java QueryOption.java QueryTicket.java Log Message: reformatted and updated license header |
|
From: <tr...@us...> - 2003-06-27 02:20:31
|
Update of /cvsroot/babeldoc/babeldoc/modules/core/src/com/babeldoc/core/config/light In directory sc8-pr-cvs1:/tmp/cvs-serv700/src/com/babeldoc/core/config/light Modified Files: LightConfig.java LightConfigService.java Log Message: reformatted and updated license header |