• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Ant Ivy settings for github download

 
Ranch Hand
Posts: 258
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,

I have a requirement where i want to download jar files required for my build from one of our GIT repository which needs authentication. I am using below in my build.xml,

///
<target name="vijay" unless="ivy.installed">
<mkdir dir="${ivy.home}"/>
<get src="https://github.com/abc/module/raw/lib/apache-ant-1.7.0/ant.jar" dest="${ivy.home}/h.jar"/>
</target>
///
to download above jar. But i am getting below exception,
[get] Error opening connection java.io.FileNotFoundException:
///

Is this due to thing that my github repository needs authentication? Can I achieve this thing of downloading some jars build time from github?
 
Saloon Keeper
Posts: 28316
207
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That URL returns "404 Not Found". It's not a lack of authorization, it's because the file doesn't live there.

Actually, I'd expect to find a jar like that at apache.org, not github.

But unless someone has done some questionalble naming, it would appear that you are trying to use Ant to download Ant if Ant isn't already downloaded.  
 
vijay jamadade
Ranch Hand
Posts: 258
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Tim.

but when i try to access normal GIT file which is accessible without authentication can be downloaded. Problem here is authentication might not getting applied. And its not throwing authentication related error. Other files in other repositories like https://jcenter.bintray.com/ are getting downloaded. So I think there is no issue with connection. But whatever i am trying, Is it possible? I am not getting any samples on internet. There is very limited information.

 
The longest recorded flight time of a chicken is 13 seconds. But that was done without this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic