==== Compile Hatch Java ====
+===== Windows =====
+
+[source,sh]
+-------------------------------------------------------------------------
+C:\> hatch.bat compile
+-------------------------------------------------------------------------
+
+===== Linux =====
+
[source,sh]
-------------------------------------------------------------------------
$ ./hatch.sh compile
Assuming the Java code compiles OK, this will run a series of tests.
+NOTE: print commands are disabled by default in the tests to avoid
+unexpected printing, but they can be added by un-commenting
+them in src/org/evergreen_ils/hatch/TestHatch.java and recompiling.
+
+===== Windows =====
+
[source,sh]
-------------------------------------------------------------------------
-$ ./hatch.sh test
+C:\> hatch.bat test
-------------------------------------------------------------------------
-NOTE: print commands are disabled by default in the tests to avoid
-unexpected printing, but they can be added by un-commenting
-them in src/org/evergreen_ils/hatch/TestHatch.java and recompiling.
+===== Linux =====
+[source,sh]
+-------------------------------------------------------------------------
+$ ./hatch.sh test
+-------------------------------------------------------------------------
-== Configure Chrome/Chromium for Native Messaging with Hatch ==
+== Configure Chrome for Native Messaging with Hatch ==
=== Setup Chrome Extension ===
==== Tweak Extension Values ====
-Edit extension/app/manifest.json and change the "egserver.example.org" value
+Edit extension/app/manifest.json and change the "evergreen.example.org" value
found here to the hostname of your Evergreen server.
[source,js]
-------------------------------------------------------------------------
...
"externally_connectable": {
- "matches": ["*://egserver.example.org/*"]
+ "matches": ["*://evergreen.example.org/*"]
}
...
-------------------------------------------------------------------------
=== Setup Chrome Native Messaging Host ===
-==== Linux ====
-
-Edit extension/host/org.evergreen_ils.hatch.json.LINUX and change the "path"
-value to match the location of your copy of "hatch.sh", found in the root
-directory of the Hatch repository.
+See also https://developer.chrome.com/extensions/nativeMessaging
==== Windows ====
-Edit extension/host/org.evergreen_ils.hatch.json.WINDOWS and change the
+Edit extension/host/org.evergreen_ils.hatch.WINDOWS.json and change the
"path" value to match the location of your copy of "hatch.bat", found in the
root directory of the Hatch repository.
+Create a Native Messaging registry key entry via the Windows command prompt.
+Modify the path value to point to your copy of
+HATCH/extension/host/org.evergreen_ils.hatch.WINDOWS.json.
-[source,js]
+[source,sh]
-------------------------------------------------------------------------
-...
- "path": "/home/berick/code/Hatch/hatchsh",
-...
+C:\> REG ADD "HKCU\Software\Google\Chrome\NativeMessagingHosts\org.evergreen_ils.hatch" /ve /t REG_SZ /d "C:\path\to\extension\host\org.evergreen_ils.hatch.WINDOWS.json" /f
-------------------------------------------------------------------------
-See also https://developer.chrome.com/extensions/nativeMessaging
-
-==== Windows ====
-
-TODO
-
==== Linux ====
+Edit extension/host/org.evergreen_ils.hatch.json and change the "path"
+value to match the location of your copy of "hatch.sh", found in the root
+directory of the Hatch repository.
+
Copy the host file into Chrome's configuration directory.
For Chrome:
[source,sh]
-------------------------------------------------------------------------
$ mkdir -p ~/.config/google-chrome/NativeMessagingHosts/
-$ cp extension/host/org.evergreen_ils.hatch.json.LINUX \
- ~/.config/google-chrome/NativeMessagingHosts/org.evergreen_ils.hatch.json
+$ cp extension/host/org.evergreen_ils.hatch.json ~/.config/google-chrome/NativeMessagingHosts/
-------------------------------------------------------------------------
For Chromium:
[source,sh]
-------------------------------------------------------------------------
$ mkdir -p ~/.config/chromium/NativeMessagingHosts/
-$ cp extension/host/org.evergreen_ils.hatch.json.LINUX \
- ~/.config/chromium/NativeMessagingHosts/org.evergreen_ils.hatch.json
+$ cp extension/host/org.evergreen_ils.hatch.json ~/.config/chromium/NativeMessagingHosts/
-------------------------------------------------------------------------