Issue 59985 - Build XmlSearch with upstream xt.jar
Summary: Build XmlSearch with upstream xt.jar
Status: CLOSED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: code (show other issues)
Version: OOo 2.0.1
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.2
Assignee: rene
QA Contact: Unknown
URL:
Keywords: oooqa
Depends on: 58308
Blocks: 21678
  Show dependency tree
 
Reported: 2006-01-03 12:12 UTC by mkretzschmar
Modified: 2008-05-16 03:33 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Patch (14.05 KB, patch)
2006-01-03 12:20 UTC, mkretzschmar
no flags Details | Diff
reworked xt diff -> xt module, configs, XmlSearch changes, depends on bug 52974 (40.37 KB, text/plain)
2006-02-06 23:30 UTC, geki
no flags Details
use system xt with native HelpLinker, depends on bug 54692 (1.09 KB, text/plain)
2006-02-06 23:35 UTC, geki
no flags Details
Fix Java 5 breakage (insert reference to an "closed invalid" issue here) (47.39 KB, patch)
2006-03-12 01:20 UTC, mkretzschmar
no flags Details | Diff
m179; delete cruft. (44.26 KB, text/plain)
2006-07-27 17:31 UTC, geki
no flags Details
m179; use system xt.jar with native HelpLinker (1.13 KB, text/plain)
2006-07-27 17:33 UTC, geki
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description mkretzschmar 2006-01-03 12:12:53 UTC
XmlSearch requires the xt.jar from external/common. As far as I can see this jar
is a binary-only, modified version of xt 19991105. That makes it unusable for
some distributions.

I'll attach a patch to build with an unpatched xt. I moved the modified class to
XmlSearch and renamed it so that it doesn't conflict with the unmodified class
from the unpatched xt. It is still in xt's namespace because it needs access to
package-private xt classes. I believe this is not a problem, because the class
is only necessary at build-time, where we can make sure that the xt.jar in use
has those package-private classes.

The patch depends on the patch from Issue 58308.

mh: what's the correct way (wrt. licensing) to integrate this patch? The patch
contains a modified file from xt, so it's not entirely covered by my JCA.
Comment 1 mkretzschmar 2006-01-03 12:20:11 UTC
Created attachment 32867 [details]
Patch
Comment 2 mkretzschmar 2006-01-20 14:27:46 UTC
I could also provide a patch to build xt from source (in its own module) and
build the xt-derived code in that module.
Comment 3 geki 2006-02-06 23:30:15 UTC
Created attachment 33893 [details]
reworked xt diff -> xt module, configs, XmlSearch changes, depends on bug 52974
Comment 4 geki 2006-02-06 23:35:44 UTC
Created attachment 33894 [details]
use system xt with native HelpLinker, depends on bug 54692
Comment 5 geki 2006-02-07 00:19:13 UTC
You may have a look at bug 61278 for a workaround to gcj 4.1 bug (gcc PR19870).
Building module xt with broken gcj versions.

I will add that workaround for ooo-build patch.
Comment 6 hennes.rohling 2006-02-15 14:53:57 UTC
@mh: Please find an appropriate owner and or component - at least it's not me.
I've no idea what you're talking about.
Comment 7 Martin Hollmichel 2006-02-24 09:09:05 UTC
set target
Comment 8 mkretzschmar 2006-03-12 01:20:13 UTC
Created attachment 34782 [details]
Fix Java 5 breakage (insert reference to an "closed invalid" issue here)
Comment 9 Martin Hollmichel 2006-07-27 16:32:03 UTC
so we need to review XSLTransformEngine.java by James Clark, what is the source
were this file comes from ?
Comment 10 geki 2006-07-27 17:13:07 UTC
original source is from:
http://www.blnz.com/xt/index.html
http://www.blnz.com/xt/xt-20051206-src.zip

stripped source used for OOo is from:
http://go-oo.org/packages/xt/xt-20051206-src-only.zip

stripped source is created by the script:
$SRC_ROOT/xt/download/build-xt-src-only.sh

I hope this information is helpful. :)

I will attach updated patches soon.
I do not want to see the gcj hack applied to the xt source.
Comment 11 geki 2006-07-27 17:31:42 UTC
Created attachment 38081 [details]
m179; delete cruft.
Comment 12 geki 2006-07-27 17:33:39 UTC
Created attachment 38082 [details]
m179; use system xt.jar with native HelpLinker
Comment 13 mkretzschmar 2006-07-27 18:16:45 UTC
mh: are you referring to the comment "Derived from: Id: XSLTransformEngine.java
96 2005-02-28 21:07:29Z blindsey"? in the XmlSearchXSLTransformEngine.java file?

The original file is in the xt source zip file that geki described (in
xt-20051206/src/xt/java/com/jclark/xsl/dom). The changes are (use diff -uw to
ignore whitespace changes caused by the longer class names):

- rename a copy of the class from XSLTransformEngine to XmlSearchXSLTransformEngine
- add a transform overload to the TransformImpl inner class, with the argument
list that XmlSearch expects. Implementation is obviously similar to the existing
transform method, but uses the internal xt types instead of the standard W3C DOM
types.
- add getNameTable and getSourceLoadContext, as expected by XmlSearch, both
simply forward the call to the internal Engine.

The current binary xt.jar made similar changes (without the rename, hence the
changes to XmlIndexBuilder.java); can't say for sure, as I don't have the
source, but after experiments with the binary xt.jar and reading of xt example
code; I believe the changes are similar.
Comment 14 rene 2006-11-24 16:00:56 UTC
reassign to me
Comment 15 rene 2006-11-24 16:01:29 UTC
fixed in cws systemxt
Comment 16 hjs 2006-12-22 13:06:41 UTC
where is xt-xmlsearch.jar expected to come from? can see it usage but not trace
of its origin
Comment 17 rene 2006-12-22 13:13:29 UTC
xt.

See xt/src/com/jclark/xsl/makefile.mk
Comment 18 hjs 2007-01-12 14:44:39 UTC
.
Comment 19 hjs 2007-01-12 14:46:41 UTC
setting target matching the CWS
Comment 20 ace_dent 2008-05-16 03:33:54 UTC
This Issue is 'Verified' and not updated in 1yr+, so Closing.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew
 
Cleaning-up and Closing old Issues as part of:
~ The Grand Bug Squash, pre v3 ~