Read file contents as map

2014-01-26 Thread Paul Smith
Hi, I have a config file that contains a Clojure map. If I slurp that file it obviously returns a string. Is it possible to return that read file as a map (its original data structure) and not a string? Thanks Paul -- -- You received this message because you are subscribed to the Google G

Issues with the keyword :as aliasing

2014-01-26 Thread Paul Smith
Hi, I am requiring clojure.java.io as such (ns sample-project.core (:require [clojure.java.io :as io])) However, the first expression creates a file object (clojure.java.io/file "test") # The second expression explodes with "java.lang.RuntimeException: No such namespace: io" (io/file "/tmp/pa

Re: Java interoperability

2014-01-27 Thread Paul Smith
, it looks like it doesn't exist. > > Paul Smith > January 27, 2014 8:21 AM > Hi, > > I am attempting to use Java interoperability. > > I have downloaded a dependency through Leiningen > > [com.jayway.jsonpath/json-path "0.9.1"] > > I import the d

Re: Java interoperability

2014-01-27 Thread Paul Smith
Hi Jarrod > Any reason not to use a Clojure library like cheshire for JSON? Yes, I am probably taking the wrong approach. Is the Clojure way to put the JSON in Clojure data structures and manipulate it with filters etc? Many Thanks Paul On Mon, Jan 27, 2014 at 3:35 PM, Jarrod Swart wrote: >

Java interoperability

2014-01-27 Thread Paul Smith
Hi, I am attempting to use Java interoperability. I have downloaded a dependency through Leiningen [com.jayway.jsonpath/json-path "0.9.1"] I import the dependency into a namespace (:import (com.jayway.jsonpath JsonPath) The Java class, JsonPath has a static method 'read' that takes two string

'lein pom' and 'mvn package'

2014-02-27 Thread Paul Smith
Hi, Through restrictions, I am prevented from using Leiningen on the CI server and I am attempting to package Clojure through Maven. I have a core.clj with a (:gen-class) in the namespace and a (-main). My project.clj includes a :main and :aot with the value of the main namespace. I can 'lein u