Created
March 7, 2011 20:23
-
-
Save knowuh/859140 to your computer and use it in GitHub Desktop.
MavenJnlp::VersiondJnlpUrl returning the wrong href?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I delete all jnlp resources using the rake task | |
"rake rigse:jnlp:delete_maven_jnlp_resources " | |
Then I try and get the default jnlp_url: | |
ruby> jnlp_url = @jnlp_family.versioned_jnlp_urls.find_by_version_str(default_version_str) | |
=> nil | |
Looks good, its not there. | |
Then I run the rake task to generate those resources: | |
rake rigse:jnlp:generate_maven_jnlp_resources | |
> default_version_str | |
=> "0.1.0-20110209.180235" | |
> first = @jnlp_family.versioned_jnlp_urls.find_by_version_str(default_version_str) | |
> first.url | |
=> "http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20110209.180235.jnlp" | |
first.path | |
=> "/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20110209.180235.jnlp" | |
> first.versioned_jnlp.href | |
=> "http://jnlp.concord.org/dev/org/concord/maven-jnlp/all-otrunk-snapshot/all-otrunk-snapshot-0.1.0-20091013.161730.jnlp" | |
> MavenJnlp::VersionedJnlp.all.size | |
=> 2 | |
> MavenJnlp::VersionedJnlp.all.last.name | |
=> "gui-testing-0.1.0-20100608.134456.jnlp" | |
> MavenJnlp::VersionedJnlp.all.first.name | |
=> "all-otrunk-snapshot-0.1.0-20091013.161730.jnlp" | |
What? | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment