Skip to content

Commit

Permalink
Add :system to list of profiles applied by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Mar 18, 2013
1 parent d27ec33 commit a23f4be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions leiningen-core/src/leiningen/core/project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@
(def default-profiles
"Profiles get merged into the project map. The :dev, :provided, and :user
profiles are active by default."
(atom {:default [:base :user :provided :dev]
(atom {:default [:base :system :user :provided :dev]
:base {:resource-paths ["dev-resources"]
:jvm-opts ["-XX:+TieredCompilation" "-XX:TieredStopAtLevel=1"]
:test-selectors {:default (with-meta '(constantly true)
Expand Down Expand Up @@ -369,7 +369,8 @@
[profiles profile]
(cond (keyword? profile)
(let [result (get profiles profile)]
(when-not (or result (#{:provided :dev :user :test :production} profile))
(when-not (or result (#{:provided :dev :user :test :production :system}
profile))
(println "Warning: profile" profile "not found."))
(vary-meta (lookup-profile profiles result)
update-in [:active-profiles] (fnil conj []) profile))
Expand Down

0 comments on commit a23f4be

Please sign in to comment.