[
https://issues.apache.org/jira/browse/BUILDR-69?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597100#action_12597100
]
Shane Witbeck commented on BUILDR-69:
-------------------------------------
I found more information on the bomb icon from an old mailing list post:
"If you use Apache to automatically generate a fancy index, it will auto-
matically give you icons for various files and types. If the file ends
with the string "core," apache assumes it is a core file and sends back
the bomb icon be default"
So it seems that just by virtue of struts-core ending in core is why we see the
bomb icon instead of the folder icon.
I've also verified the same download from the same repo works on a Mac for both
versions of Buildr (1.2.10 and 1.3.0).
Below is a trace of the failure on Windows XP with Buildr version 1.2.10:
Downloading org.apache.struts:struts2-core:jar:2.0.11.1
Downloading org.apache.struts:struts2-core:jar:2.0.11.1
Requesting
http://repo1.maven.org/maven2/org/apache/struts/struts2-core/2.0.11.1/struts2-c
ore-2.0.11.1.jar
Downloading
http://repo1.maven.org/maven2/org/apache/struts/struts2-core/2.0.11.1/struts2-
core-2.0.11.1.jar
undefined method `zero?' for nil:NilClass
c:/ruby/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/progressbar.rb:166:in
`show_p
rogress'
c:/ruby/lib/ruby/gems/1.8/gems/facets-1.8.54/lib/facets/more/progressbar.rb:50:in
`initial
ize'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:248:in `new'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:248:in
`with_progress_
bar'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:330:in
`read'
c:/ruby/lib/ruby/1.8/net/http.rb:1062:in `request'
c:/ruby/lib/ruby/1.8/net/http.rb:2145:in `reading_body'
c:/ruby/lib/ruby/1.8/net/http.rb:1061:in `request'
c:/ruby/lib/ruby/1.8/net/http.rb:957:in `request_get'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:317:in
`read'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:355:in `[]'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:355:in
`read'
c:/ruby/lib/ruby/1.8/net/http.rb:547:in `start'
c:/ruby/lib/ruby/1.8/net/http.rb:440:in `start'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:355:in
`read'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:153:in
`download'
c:/ruby/lib/ruby/1.8/tempfile.rb:172:in `open'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:151:in
`download'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/transports.rb:77:in
`download'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:312:in
`download'
c:/ruby/lib/ruby/1.8/fileutils.rb:243:in `find'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in `find'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:309:in
`download'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/artifact.rb:258:in
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in
`execute'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in
`execute'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in
`synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/compile.rb:219:in
`invoke_prerequisi
tes'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/java/compile.rb:219:in
`invoke_prerequisi
tes'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:12:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in
`synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:244:in
`local_task'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:280:in `[]'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:280:in
`local_projects'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:280:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:280:in
`local_projects'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/project.rb:242:in
`local_task'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `call'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in
`execute'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:27:in
`execute'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:13:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in
`synchronize'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/rake_ext.rb:6:in `invoke'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling
'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:54:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in
`standard_exception_handling
'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/lib/core/application.rb:51:in `run'
c:/ruby/lib/ruby/gems/1.8/gems/buildr-1.2.10/bin/buildr:7
c:/ruby/bin/buildr:19:in `load'
c:/ruby/bin/buildr:19
> Certain artifacts don't download properly from remote repository
> ----------------------------------------------------------------
>
> Key: BUILDR-69
> URL: https://issues.apache.org/jira/browse/BUILDR-69
> Project: Buildr
> Issue Type: Bug
> Components: Dependency management
> Affects Versions: 1.2.10
> Environment: Windoze
> Reporter: Shane Witbeck
> Priority: Minor
>
> Certain dependencies don't download as expected from a remote repository. I
> notice that the icon for the struts2-core on the repository is different (not
> a folder like the others) if I use a browser. I suspect it's a
> symlink/redirect that Buildr doesn't know how to handle?
> Downloading org.apache.struts:struts2-core:jar:2.0.11.1
> Downloading
> http://repo1.maven.org/maven2/org/apache/struts/struts2-core/2.0.11.1/struts2-core-2.0.11.1.jar
> undefined method `zero?' for nil:NilClass
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.