Skip to content

Commit

Permalink
An unnecessary regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorwood committed Sep 5, 2018
1 parent 8ba51cb commit 9c742cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/native_image.clj
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
(:import (java.io File)))

(defn classpath
"Returns the classpath string minus *this* project's path and plus *compile-path*."
"Returns the classpath string minus clj.native-image path and plus *compile-path*."
[]
(as-> (System/getProperty "java.class.path") $
(cs/split $ (re-pattern (str File/pathSeparatorChar)))
(remove #(re-find #"clj\.native\-image" %) $) ;; exclude ourselves
(remove #(cs/includes? "clj.native-image" %) $) ;; exclude ourselves
(cons *compile-path* $) ;; prepend compile path for classes
(cs/join File/pathSeparatorChar $)))

Expand Down

0 comments on commit 9c742cc

Please sign in to comment.