Skip to content

Commit

Permalink
Moved export to main - Otherwise Leiningen complains about
Browse files Browse the repository at this point in the history
ClassNotFoundException
  • Loading branch information
konrad-garus committed Sep 7, 2012
1 parent 3aa2ad5 commit 2e2bff2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ghijira/core.clj
Expand Up @@ -93,5 +93,9 @@
(repeat (- MAXCMT (count comments)) "") ; pad out field count
)))

(with-open [out-file (io/writer "JIRA.csv")]
(csv/write-csv out-file (concat [columns] (map issue2row issues))))
(defn export-issues-to-file [filename]
(with-open [out-file (io/writer filename)]
(csv/write-csv out-file (concat [columns] (map issue2row issues)))))

(defn -main [& args]
(export-issues-to-file "JIRA.csv"))

0 comments on commit 2e2bff2

Please sign in to comment.