mirror of
https://github.com/gnosygnu/xowa.git
synced 2024-10-27 20:34:16 +00:00
Js: Update references to mobile lib; change Add_core to Add_baselib
This commit is contained in:
parent
a4380b6d48
commit
5967c75433
@ -57,7 +57,7 @@ public class Xoa_update_html extends Xow_special_wtr__base {
|
|||||||
}
|
}
|
||||||
@Override protected void Bld_tags(Xoa_app app, Io_url addon_dir, Xopage_html_data page_data) {
|
@Override protected void Bld_tags(Xoa_app app, Io_url addon_dir, Xopage_html_data page_data) {
|
||||||
Xopg_tag_mgr head_tags = page_data.Head_tags();
|
Xopg_tag_mgr head_tags = page_data.Head_tags();
|
||||||
Xopg_tag_wtr_.Add__core (head_tags, app.Fsys_mgr().Http_root());
|
Xopg_tag_wtr_.Add__baselib (head_tags, app.Fsys_mgr().Http_root());
|
||||||
Xopg_tag_wtr_.Add__xocss (head_tags, app.Fsys_mgr().Http_root());
|
Xopg_tag_wtr_.Add__xocss (head_tags, app.Fsys_mgr().Http_root());
|
||||||
Xopg_tag_wtr_.Add__xohelp (head_tags, app.Fsys_mgr().Http_root());
|
Xopg_tag_wtr_.Add__xohelp (head_tags, app.Fsys_mgr().Http_root());
|
||||||
Xopg_tag_wtr_.Add__xolog (head_tags, app.Fsys_mgr().Http_root());
|
Xopg_tag_wtr_.Add__xolog (head_tags, app.Fsys_mgr().Http_root());
|
||||||
|
@ -15,7 +15,7 @@ Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|||||||
*/
|
*/
|
||||||
package gplx.xowa.wikis.pages.tags; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.pages.*;
|
package gplx.xowa.wikis.pages.tags; import gplx.*; import gplx.xowa.*; import gplx.xowa.wikis.*; import gplx.xowa.wikis.pages.*;
|
||||||
public class Xopg_tag_wtr_ {
|
public class Xopg_tag_wtr_ {
|
||||||
public static void Add__core(Xopg_tag_mgr head_tags, Io_url http_root) {
|
public static void Add__baselib(Xopg_tag_mgr head_tags, Io_url http_root) {
|
||||||
Io_url css_dir = http_root.GenSubDir_nest("bin", "any", "xowa", "html", "res", "src", "xowa", "core");
|
Io_url css_dir = http_root.GenSubDir_nest("bin", "any", "xowa", "html", "res", "src", "xowa", "core");
|
||||||
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("Namespace_.js")));
|
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("Namespace_.js")));
|
||||||
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("String_.js")));
|
head_tags.Add(Xopg_tag_itm.New_js_file(css_dir.GenSubFil_nest("String_.js")));
|
||||||
|
@ -3,11 +3,11 @@
|
|||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry combineaccessrules="false" kind="src" path="/100_core"/>
|
<classpathentry combineaccessrules="false" kind="src" path="/100_core"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-analyzers-common-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-analyzers-common-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-core-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-core-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-highlighter-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-highlighter-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-memory-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-memory-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-queryparser-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-queries-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/6.4.2/lucene-queries-6.4.2.jar"/>
|
<classpathentry kind="lib" path="lib/5.3.0.drd/lucene-queryparser-5.3.0-mobile-2.jar"/>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -71,7 +71,12 @@ public class Gflucene_highlighter_mgr {
|
|||||||
|
|
||||||
// get token stream
|
// get token stream
|
||||||
String text = doc_data.body;
|
String text = doc_data.body;
|
||||||
TokenStream tokenStream = analyzer.tokenStream("body", text);
|
TokenStream tokenStream = null;
|
||||||
|
try {
|
||||||
|
tokenStream = analyzer.tokenStream("body", text);
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw Err_.new_exc(e, "lucene_index", "failed to get stream", "query", qry_data.query);
|
||||||
|
}
|
||||||
|
|
||||||
// get fragments from stream
|
// get fragments from stream
|
||||||
TextFragment[] frags;
|
TextFragment[] frags;
|
||||||
|
@ -16,8 +16,8 @@ Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
|||||||
package gplx.gflucene.indexers; import gplx.*; import gplx.gflucene.*;
|
package gplx.gflucene.indexers; import gplx.*; import gplx.gflucene.*;
|
||||||
import gplx.gflucene.core.*;
|
import gplx.gflucene.core.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Path;
|
import org.lukhnos.portmobile.file.Path;
|
||||||
import java.nio.file.Paths;
|
import org.lukhnos.portmobile.file.Paths;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.Analyzer;
|
import org.apache.lucene.analysis.Analyzer;
|
||||||
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
import org.apache.lucene.analysis.standard.StandardAnalyzer;
|
||||||
|
@ -17,8 +17,8 @@ package gplx.gflucene.searchers; import gplx.*; import gplx.gflucene.*;
|
|||||||
import gplx.gflucene.core.*;
|
import gplx.gflucene.core.*;
|
||||||
import gplx.gflucene.analyzers.*;
|
import gplx.gflucene.analyzers.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.nio.file.Path;
|
import org.lukhnos.portmobile.file.Path;
|
||||||
import java.nio.file.Paths;
|
import org.lukhnos.portmobile.file.Paths;
|
||||||
|
|
||||||
import org.apache.lucene.analysis.Analyzer;
|
import org.apache.lucene.analysis.Analyzer;
|
||||||
import org.apache.lucene.document.Document;
|
import org.apache.lucene.document.Document;
|
||||||
|
Loading…
Reference in New Issue
Block a user