Converting Leiningen project.clj to Gradle
Unfortunately using Leiningen in this project is out of the question, as the CI environment i'm using doesn't support it. Therefore I would like to convert this project.clj to a gradle project so I can run the uberjar that is built as a standalone jar. This seems to work well with this in Leiningen: (defproject sqs-cleanup 0.1.0-SNAPSHOT :description SQS cleanup :url http://example.com/FIXME; :license {:name Eclipse Public License :url http://www.eclipse.org/legal/epl-v10.html} :dependencies [[org.clojure/clojure 1.6.0] [amazonica 0.2.24]] :main sqs-cleanup.core :uberjar-name sqs-cleanup.jar) This is proving to be more difficult than I thought, as the Gradle build script doesn't seem to put the main class in the mainfest. I'm following this guide: https://github.com/DevonStrawn/Clojuresque-Boilerplate/blob/master/UberJar/build.gradle Any pointers would be great. Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups Clojure group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Saving Java objects/Clojure forms to text file
I want to save a list of Clojure maps to a text file. The problem is I have a :date key which contains a java.util.Date object, At the moment I am using: (spit file.txt clj-map) to save the file. However the dates are printed in the format #Date Mon Apr 16 15:22:27 BST 2012 How can I store the date in a text file and read it back without falling back on Java serialization? Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Re: Saving Java objects/Clojure forms to text file
Thanks. Ended up going the Clojure 1.4 instant literal way as I just wanted to read and write the dates not use them for anything else. Thanks, Adam On Apr 16, 3:37 pm, David Powell djpow...@djpowell.net wrote: How can I store the date in a text file and read it back without falling back on Java serialization? Upgrade to Clojure 1.4, which includes extensible support for parsing and serializing custom data types, with dates being one of the built-in types. It will all work automatically. -- Dave -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Accessing defrecord from another namespace
I have two namespaces as follows: (ns app.one.a (:require [ns.app.two.b]) (:import [ns.app.two.b Book])) (def b (Book. A Book Adam)) (ns app.two.b) (defrecord Book [title author]) However whenever I try to import the defrecord I get a ClassNotFoundException thrown. I tried AOT compiling the namespace containing the defrecord with (:gen-class) but it made no difference. Is there anything that i'm doing wrong? Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Converting proxy to a macro
Hi, I am new to macros in general but am having a hard time trying to make a macro that wraps proxy. I am trying to convert the following: (proxy [java.util.Observer] [] (update [o arg] (println arg))) Is what i originally have but I want to convert it using a macro to: (observer java.util.Observer [] (update [o arg] (println arg))) I am having a hard time getting access to the arg parameter on the update method I am implementing outside of proxy. If anyone could help that would be great. Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Documenting Clojure Design without UML
I have always used UML to document the design of software projects I have worked on in object-oriented languages. I am now working on a Clojure project and am required to document the design so anyone reading these documents will understand the design of the software. I was wondering if there is anything like UML that can be applied to Clojure for these purposes? It is quite important that I document the design of the software on paper so any suggestions on doing this would be great. Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en
Good database for local storage in Clojure
I am looking for a database which I can use to store data about certain stock over a number of years. There will probably be a few thousand records to store. I am writing an application in Clojure and Java, but mostly Clojure, which will pull out data from this local database when required to display the data and the database will also be updated when new data about a particular stock is available each day. I was wondering if anyone knew of a good database to work with for this purpose? I only have experience with MySQL running on the server side. Which database would be easiest to work with in Clojure for local storage? Thanks, Adam -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en