Permalink
Browse files

* Added COPYING FILE with GPL License

 * renamed README file
 * removed build.xml and moved it to using lein
  • Loading branch information...
icylisper committed Jan 17, 2010
1 parent 717e982 commit 331be6a613192709ed151069888301c0cf385c6f
Showing with 701 additions and 92 deletions.
  1. +674 −0 COPYING
  2. +0 −27 README.markdown
  3. +17 −0 README.md
  4. +0 −56 build.xml
  5. +0 −8 fetchdeps.sh
  6. +9 −0 project.clj
  7. +1 −1 src/{com/github/icylisper → org/clojars}/rabbitmq.clj
View
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,27 +0,0 @@
-# Clojure client for RabbitMQ (AMQP) #
-
-## Installation ##
-
-Get the latest java rabbitmq-client from <http://www.rabbitmq.com/java-client.html>.
-
-You can use the `fetchdeps.sh` script to do this; the RabbitMQ 1.7.0 Java
-client will be fetched and unpacked into `lib/`, where `build.xml` expects it.
-
-Build `clojure-rabbitmq.jar` by invoking `ant` with the appropriate
-arguments, e.g.:
-
- ant -Dclojure.jar=/opt/clojure/clojure.jar -Dcontrib.jar=/opt/clojure-contrib/clojure-contrib.jar
-
-
-## Usage and API ##
-
-Ensure that `clojure-rabbitmq.jar` and the RabbitMQ jars are in your classpath.
-
-`.clojure` is set up appropriately for the common `clj` script.
-
-Then:
-
- (use 'com.github.icylisper.rabbitmq)
-
-
-See `example/publisher.clj` and `example/consumer.clj` for usage.
View
@@ -0,0 +1,17 @@
+# Clojure client for RabbitMQ (AMQP) #
+
+
+## Installation ##
+ get lein from http://github.com/technomancy/leiningen
+
+ lein deps
+
+
+## Usage and API ##
+
+ add below to the dependencies list in your project.clj
+
+ [clojure-rabbitmq "0.2.1"]
+
+
+See `example/publisher.clj` and `example/consumer.clj` for usage.
View
@@ -1,56 +0,0 @@
-<project name="rabbit" default="jar">
- <description>
- Clojure Rabbitmq client
- </description>
-
- <property name="build.dir" location="classes"/>
- <property name="source.dir" location="src"/>
- <property name="jar.name" location="clojure-rabbitmq.jar"/>
- <property file="local.properties"/>
- <available property="hasclojure" file="${clojure.jar}"/>
- <available property="hascontrib" file="${contrib.jar}"/>
-
- <target name="checkforjars" depends="init">
- <condition property="hasjars">
- <and>
- <isset property="hasclojure"/>
- <isset property="hascontrib"/>
- </and>
- </condition>
- </target>
-
- <target name="clean" description="Remove generated classfiles">
- <delete dir="${build.dir}"/>
- </target>
-
- <target name="init" depends="clean">
- <tstamp/>
- <mkdir dir="${build.dir}"/>
- </target>
-
- <target name="compile" depends="checkforjars" description="Compile sources" if="hasjars">
- <java classname="clojure.lang.Compile">
- <classpath>
- <path location="${clojure.jar}"/>
- <path location="${contrib.jar}"/>
- <path location="${build.dir}"/>
- <path location="${source.dir}"/>
-
- <path location="lib/commons-cli-1.1.jar"/>
- <path location="lib/commons-io-1.2.jar"/>
- <path location="lib/rabbitmq-client.jar"/>
- </classpath>
- <sysproperty key="clojure.compile.path" value="${build.dir}"/>
- <arg value="com.github.icylisper.rabbitmq"/>
- </java>
- </target>
-
- <target name="jar" description="Create jar file" depends="compile">
- <jar jarfile="${jar.name}" index="true">
- <path location="MIT.txt"/>
- <fileset dir="${source.dir}" includes="**/*.clj"/>
- <fileset dir="${build.dir}" includes="**/*.class"/>
- </jar>
- </target>
-
-</project>
View
@@ -1,8 +0,0 @@
-mkdir -p lib
-cd lib
-wget http://www.rabbitmq.com/releases/rabbitmq-java-client/v1.7.0/rabbitmq-java-client-bin-1.7.0.tar.gz
-tar xzf rabbitmq-java-client-bin-1.7.0.tar.gz
-mv rabbitmq-java-client-bin-1.7.0/commons-cli-1.1.jar .
-mv rabbitmq-java-client-bin-1.7.0/commons-io-1.2.jar .
-mv rabbitmq-java-client-bin-1.7.0/rabbitmq-client.jar .
-rm -r rabbitmq-java-client-bin-1.7.0*
View
@@ -0,0 +1,9 @@
+(defproject clojure-rabbitmq "0.2.1"
+ :description "rabbitmq client in clojure"
+ :dependencies [[org.clojure/clojure "1.1.0"]
+ [org.clojure/clojure-contrib "1.0-SNAPSHOT"]
+ [commons-io "1.2"]
+ [commons-cli "1.1"]
+ [rabbitmq-client "1.7.0"]]
+
+ :dev-dependencies [[leiningen/lein-swank "1.0.0-SNAPSHOT"]])
@@ -1,6 +1,6 @@
(set! *warn-on-reflection* true)
-(ns com.github.icylisper.rabbitmq
+(ns org.clojars.rabbitmq
(:gen-class)
(:import (com.rabbitmq.client
ConnectionParameters

0 comments on commit 331be6a

Please sign in to comment.