hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1559996 - /httpcomponents/httpclient-android/branches/test-branch/build.gradle
Date Tue, 21 Jan 2014 12:41:22 GMT
Author: olegk
Date: Tue Jan 21 12:41:22 2014
New Revision: 1559996

URL: http://svn.apache.org/r1559996
Log:
Console interaction bug fix; minor tweaks

Modified:
    httpcomponents/httpclient-android/branches/test-branch/build.gradle

Modified: httpcomponents/httpclient-android/branches/test-branch/build.gradle
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient-android/branches/test-branch/build.gradle?rev=1559996&r1=1559995&r2=1559996&view=diff
==============================================================================
--- httpcomponents/httpclient-android/branches/test-branch/build.gradle (original)
+++ httpcomponents/httpclient-android/branches/test-branch/build.gradle Tue Jan 21 12:41:22
2014
@@ -104,7 +104,7 @@ android.libraryVariants.all { variant ->
 
         task createAndroidSrcJar(type: Jar) {
             dependsOn variant.javaCompile
-            from android.sourceSets.main.allSource // need this to include resources
+            from variant.javaCompile.source
             from 'NOTICE.txt'
             from 'LICENSE.txt'
             rename '(NOTICE|LICENSE).txt', '$1'
@@ -155,12 +155,11 @@ gradle.taskGraph.whenReady { TaskExecuti
                         console.println("Publishing to repository \'${repo.name}\': ${repo.url}")
                         PasswordCredentials creds = repo.credentials
                         if (!creds.username) {
-                            console.println("> Please enter user name:")
-                            creds.username = console.readLine()
+                            creds.username = console.readLine("> Please enter user name:
")
                         }
                         if (!creds.password) {
-                            console.println("> Please enter password:")
-                            creds.password = console.readPassword()
+                            char[] raw = console.readPassword("> Please enter password:
")
+                            creds.password = new String(raw)
                         }
                     }
                 }



Mime
View raw message