Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3442920
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:43:42+00:00 2026-05-18T08:43:42+00:00

I am trying to make an ant build file to remote copy a war

  • 0

I am trying to make an ant build file to remote copy a war file.

Ant scp task uses a jsch library for remote copying.
How do I make it work through a proxy, the jsch library clearly supports it.

does not work for jsch.

Jsch does not read environment variables like http_proxy

is there another solution ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:43:42+00:00Added an answer on May 18, 2026 at 8:43 am

    Juriy is right, SCP task in ant does not support HTTP_PROXY environment variable.

    The http proxy can allow you to SSH using the ‘HTTP CONNECT’ method, an easy solution to get it working is modify the Jsch library which Ant uses for the Scp task.

    src/com/jcraft/jsch/JSch.java file needs to be patches to use the http_proxy environment variable in case it is available.
    For use in non-login shells like from inside eclipse we need to the set the environment variables for the project from inside eclipse

    I have blogged about the process here :
    http://xask.wordpress.com/2010/05/14/ant-scp-task-through-http_proxy/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was trying to deploy a WAR file using the Cargo Ant task version
I'm trying to make an executable war file ( java -jar myWarFile.war ) that
I have a packaged app.war file that I am trying to copy to the
I am trying to run a build file using Ant. I am using Maven
I'm trying to make work the example from hibernate reference. I've got simple table
im trying make one replace in string from a array but this dont work
I am trying to make an ant script for an EJB project. I am
I'm using FDT 3 and Ant to make a jsfl file that is then
Every time I create a new project I copy the last project's ant file
Trying to convert an existing Android build system using Ant with 'ant_rules_r3.xml' integration from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.