Getting the right data into the manifest; sadly, not succeeding in getting

it out again.
This commit is contained in:
Simon Brooke 2014-07-27 21:05:47 +01:00
parent 829bc1780a
commit c0d26f7cc7
5 changed files with 41 additions and 23 deletions

View file

@ -2,8 +2,7 @@
(ns mw-engine.core
(:use mw-engine.utils)
(:require [mw-engine.world :as world]
))
(:require [mw-engine.world :as world]))
;; Every rule is a function of two arguments, a cell and a world. If the rule
;; fires, it returns a new cell, which should have the same values for :x and

View file

@ -164,3 +164,5 @@
(map #(set-cell-property % x y property value)
row)))
world))))

11
src/mw_engine/version.clj Normal file
View file

@ -0,0 +1,11 @@
(ns mw-engine.version
(:gen-class))
(defn get-implementation-version
"Get the implementation version from the package of this namespace, which must
be compiled into a class (see clojure.java.interop)"
[namespace-class]
(.getImplementationVersion (.getPackage namespace-class)))
(defn -main []
(get-implementation-version (eval 'mw-engine.version)))