Skip to content

Commit

Permalink
Fix parsing java proxy password (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
idlelearner committed Jan 14, 2019
1 parent 0bb11b3 commit a1b7868
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions java/template/bin/build
Expand Up @@ -32,7 +32,7 @@ if [[ -n "$HTTPS_PROXY" ]]; then
<host>`awk -F"http.proxyHost=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</host>
<port>`awk -F"http.proxyPort=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</port>
<username>`awk -F"http.proxyUser=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</username>
<password>`awk -F"http.proxyPassword=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</password>
<password>`awk -F"http.proxyPass=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</password>
<nonProxyHosts>`awk -F"http.nonProxyHosts=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</nonProxyHosts>
</proxy>
<proxy>
Expand All @@ -41,7 +41,7 @@ if [[ -n "$HTTPS_PROXY" ]]; then
<host>`awk -F"https.proxyHost=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</host>
<port>`awk -F"https.proxyPort=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</port>
<username>`awk -F"https.proxyUser=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</username>
<password>`awk -F"https.proxyPassword=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</password>
<password>`awk -F"https.proxyPass=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</password>
<nonProxyHosts>`awk -F"http.nonProxyHosts=" '{print $2}' <<< $JAVA_TOOL_OPTIONS | cut -d' ' -f1`</nonProxyHosts>
</proxy>
</proxies>
Expand Down

0 comments on commit a1b7868

Please sign in to comment.