forked from djpowell/liverepl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Structure: - `liverepl-agent` becomes `client` and `agent` (duplicates LOCALHOST definition) - `liverepl-server` becomes `server` - project.clj munging, including use of lein-jdk-tools Code changes: - Server incorporates Clojure as uberjar - Agent checks whether server is loaded, not whether clojure is - Main and shell script no longer pass location of clojure jar - Fix generics in Discovery (gets rid of warning) - shell script uses new build locations - shell script specifies bash in shebang Documentation: - Change README to Markdown, include contributors - Fix licensing in project.clj to mention MIT License and refer to README for contributors
- Loading branch information
1 parent
417fb2d
commit c32d56e
Showing
23 changed files
with
163 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
LiveRepl | ||
======== | ||
|
||
Start a Clojure REPL connected to any running Java or Clojure process | ||
without needing the process to be setup in any special way beforehand. | ||
|
||
Now supports connecting to Tomcat web applications. | ||
|
||
You can use the repl to run code, inspect variables, and | ||
redefine Clojure functions. | ||
|
||
Build | ||
----- | ||
|
||
To build: | ||
|
||
``` | ||
(cd client; lein uberjar) && (cd agent; lein jar) && (cd server; lein uberjar) | ||
``` | ||
|
||
This produces jar files in the following locations: | ||
|
||
``` | ||
client/target/liverepl-client-standalone.jar | ||
agent/target/liverepl-agent.jar | ||
server/target/liverepl-server-standalone.jar | ||
``` | ||
|
||
Operation | ||
--------- | ||
|
||
Call liverepl.sh as follows: | ||
|
||
``` | ||
export JDK_HOME=/usr/lib/jvm/java-7-oracle | ||
./liverepl.sh | ||
``` | ||
|
||
To see a list of running Java processes on the system, and their | ||
process ids, enter: | ||
|
||
liverepl.sh | ||
|
||
To see the available ClassLoaders for a specific process, enter: | ||
|
||
liverepl.sh <pid> | ||
|
||
-- where the pid is the process id for the process, obtained in | ||
the step above. | ||
|
||
To connect a repl to the process, enter: | ||
|
||
liverepl.sh <pid> <classloader-id> | ||
|
||
-- where the pid is the process id for the process. | ||
-- and the classloader-id was obtained in the step above. | ||
|
||
If you aren't sure which ClassLoader to use, try '0', which will | ||
always be the System ClassLoader. | ||
|
||
If the directory `./jars/` is present in the same location as | ||
liverepl.sh, any jars inside will be loaded and made available inside | ||
the target JVM. They must be at the top level inside the directory and | ||
have a name ending in `.jar`. | ||
|
||
License and credits | ||
------------------- | ||
|
||
This software is distributed under the MIT licence. | ||
|
||
http://github.com/djpowell/liverepl | ||
|
||
Original author: David Powell <djpowell@djpowell.net> 2009-10-18 | ||
|
||
Other contributions by: | ||
|
||
- Kurt Harriger | ||
- Kevin A. Archie | ||
- Brightcove, Inc. (authors Chris Jeris, Tim McCormack) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
(defproject com.brightcove.liverepl/agent "0.1.1-SNAPSHOT" | ||
:description "LiveREPL agent" | ||
:license {:name "MIT License" | ||
:distribution :repo | ||
:comments "Copyright (C) 2009 David J. Powell and others. See README for contributors."} | ||
:url "https://github.com/djpowell/liverepl" | ||
:min-lein-version "2.0.0" | ||
:dependencies [] | ||
:source-paths [] | ||
:java-source-paths ["src"] | ||
:manifest {"Agent-Class" "net.djpowell.liverepl.agent.Agent"} | ||
:lein-release {:scm :git, :deploy-via :lein-install} | ||
:jar-name "liverepl-agent.jar") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(defproject com.brightcove.liverepl/client "0.1.1-SNAPSHOT" | ||
:description "LiveREPL client" | ||
:license {:name "MIT License" | ||
:distribution :repo | ||
:comments "Copyright (C) 2009 David J. Powell and others. See README for contributors."} | ||
:url "https://github.com/djpowell/liverepl" | ||
:min-lein-version "2.0.0" | ||
:dependencies [] | ||
:source-paths [] | ||
:java-source-paths ["src"] | ||
:plugins [[lein-jdk-tools "0.1.1"]] | ||
;; Mention :skip-aot to suppress warning | ||
:main ^:skip-aot net.djpowell.liverepl.client.Main | ||
:lein-release {:scm :git, :deploy-via :lein-install} | ||
:uberjar-exclusions [#"^.*\.jar$"] | ||
:uberjar-name "liverepl-client-standalone.jar") |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.