Author: boisvert
Date: Mon Nov 22 17:43:20 2010
New Revision: 1037798

URL: http://svn.apache.org/viewvc?rev=1037798&view=rev
Log:
Add HTTP authentication example

Modified:
    buildr/trunk/doc/artifacts.textile

Modified: buildr/trunk/doc/artifacts.textile
URL: 
http://svn.apache.org/viewvc/buildr/trunk/doc/artifacts.textile?rev=1037798&r1=1037797&r2=1037798&view=diff
==============================================================================
--- buildr/trunk/doc/artifacts.textile (original)
+++ buildr/trunk/doc/artifacts.textile Mon Nov 22 17:43:20 2010
@@ -102,6 +102,12 @@ When you call @repositories.remote@, you
 repositories.remote << 'http://www.ibiblio.org/maven2/'
 {% endhighlight %}
 
+If your repository requires HTTP authentication, you can write,
+
+{% highlight ruby %}
+repositories.remote << URI.parse("http://user:[email protected]";)
+{% endhighlight %}
+
 If you need to use a proxy server to access remote repositories, you can set 
the environment variable @HTTP_PROXY@ to the proxy server URL (use 
@HTTPS_PROXY@ for proxying HTTPS connections).  You can also work without a 
proxy for certain hosts by specifying the @NO_PROXY@ environment variable.  For 
example:
 
 {% highlight sh %}


Reply via email to