Permalink
Browse files

Set http proxy system properties. Addresses half of #281.

  • Loading branch information...
1 parent eb3806d commit 2307991c1a46af44c57667ce51d19f6763d1a221 @technomancy committed Apr 4, 2012
Showing with 11 additions and 4 deletions.
  1. +4 −0 leiningen-core/src/leiningen/core/main.clj
  2. +7 −4 todo.org
@@ -1,6 +1,7 @@
(ns leiningen.core.main
(:require [leiningen.core.user :as user]
[leiningen.core.project :as project]
+ [leiningen.core.classpath :as classpath]
[clojure.java.io :as io]
[clojure.string :as string]))
@@ -126,6 +127,9 @@ or by executing \"lein upgrade\". ")
(let [project (if (.exists (io/file "project.clj")) (project/read))]
(when (:min-lein-version project)
(verify-min-version project))
+ (when-let [{:keys [host port]} (classpath/get-proxy-settings)]
+ (System/setProperty "http.proxyHost" host)
+ (System/setProperty "http.proxyPort" (str port)))
(when-not project
(project/load-plugins (project/merge-profiles {} [:user :default])))
(doseq [[task-name & args] (group-args args)
View
@@ -5,18 +5,21 @@ See also https://github.com/technomancy/leiningen/issues
* For 2.0.0
** Low-hanging fruit (newbies, try one of these!)
- [X] Look for :java-cmd in project map
+ - [X] Remove task-specific silent flags in favour of global bit (#473)
+ - [ ] Collapse all :repl-* settings into :repl-options map (#432)
- [ ] Port arbitrary upgrade functionality from 1.x branch
- [ ] Document subcommands in newnew
+ - [ ] Move newnew template listing into subtasks (newnew #11)
- [ ] Suppress stack trace when getting help on non-existent task
- - [ ] Remove task-specific silent flags in favour of global bit (#473)
- - [ ] Collapse all :repl-* settings into :repl-options map (#432)
** Intermediate
- [X] Pretty-print pom
- [X] deps :tree
+ - [X] Use blocking instead of polling for repl task (#433)
- [ ] Show aliases in lein help (#407)
- [ ] Use pomegranate to dynamically resolve missing "lein new" templates
- - [ ] Mirror/proxy support, also for search indices (#281), (#271)
- - [ ] Use locking instead of polling for repl task (#433)
+ (newnew #12)
+ - [ ] Mirror support (#271)
+ - [ ] Honor mirror for search indices (#281)
- [ ] Re-enable transitive cleaning for compile
- [ ] Re-enable shell wrappers
** Complex

0 comments on commit 2307991

Please sign in to comment.