[sword-cvs] sword/bindings/corba/java/src/org/crosswire/sword/orb SwordOrb.java,1.3,1.4
sword@www.crosswire.org
sword@www.crosswire.org
Mon, 5 May 2003 20:27:58 -0700
- Previous message: [sword-cvs] sword/bindings/corba swordorb.idl,1.3,1.4
- Next message: [sword-cvs] sword/bindings/corba/orbitcpp Makefile,1.3,1.4 swordorb-impl.cpp,1.4,1.5 swordorb-impl.hpp,1.2,1.3 testclient.cpp,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/local/cvsroot/sword/bindings/corba/java/src/org/crosswire/sword/orb
In directory www:/tmp/cvs-serv2027/bindings/corba/java/src/org/crosswire/sword/orb
Modified Files:
SwordOrb.java
Log Message:
Index: SwordOrb.java
===================================================================
RCS file: /usr/local/cvsroot/sword/bindings/corba/java/src/org/crosswire/sword/orb/SwordOrb.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** SwordOrb.java 5 May 2003 19:07:38 -0000 1.3
--- SwordOrb.java 6 May 2003 03:27:56 -0000 1.4
***************
*** 38,43 ****
catch (Exception e) {} // we know this doesn't return property cuz we killed the orb! :)
- // release thread
- waitor.setFinished();
}
--- 38,41 ----
***************
*** 52,57 ****
private void startOrb() {
try {
- waitor = new Waitor ();
- new Thread (waitor).run ();
// start external process
java.lang.Process p = Runtime.getRuntime().exec("./swordorbserver");
--- 50,53 ----
***************
*** 95,101 ****
public static void main(String args[]) throws Exception {
- new SwordOrb ();
- Thread.sleep(100);
- /*
SWMgr mgr = new SwordOrb().getSWMgrInstance();
--- 91,94 ----
***************
*** 104,129 ****
ModInfo[] modInfoList = mgr.getModInfoList();
System.out.println("sequence size: " + modInfoList.length);
for (int i = 0; i < modInfoList.length; i++) {
System.out.println(modInfoList[i].name + ": " + modInfoList[i].type + ": " + modInfoList[i].lang);
}
! */
! }
!
! public class Waitor implements Runnable {
! protected boolean finished = false;
! public Waitor () {
! }
! public void setFinished () {
! finished = true;
! }
! public void run () {
! while (!finished) {
! try { Thread.sleep (100); } catch (Exception e) { e.printStackTrace(); }
! // possibly even:
! // System.gc();
! }
! }
! }
! protected Waitor waitor;
}
--- 97,112 ----
ModInfo[] modInfoList = mgr.getModInfoList();
System.out.println("sequence size: " + modInfoList.length);
+ SWModule module;
for (int i = 0; i < modInfoList.length; i++) {
System.out.println(modInfoList[i].name + ": " + modInfoList[i].type + ": " + modInfoList[i].lang);
+ module = mgr.getModuleByName(modInfoList[i].name);
+ module.setKeyText("jas1:19");
+ System.out.println(module.getRenderText());
}
! module = mgr.getModuleByName(modInfoList[0].name);
! String[] searchResults = module.search("God love world", SearchType.MULTIWORD, 0, "");
! for (int i = 0; i < searchResults.length; i++)
! System.out.println(searchResults[i]);
+ }
}
- Previous message: [sword-cvs] sword/bindings/corba swordorb.idl,1.3,1.4
- Next message: [sword-cvs] sword/bindings/corba/orbitcpp Makefile,1.3,1.4 swordorb-impl.cpp,1.4,1.5 swordorb-impl.hpp,1.2,1.3 testclient.cpp,1.4,1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]