Permalink
Switch branches/tags
unified-annotation-indexer prototype-1.7 prototype-1.5.1.1 jenkins-1.475 jenkins-1.474 jenkins-1.473 jenkins-1.472 jenkins-1.471 jenkins-1.470 jenkins-1.469 jenkins-1.468 jenkins-1.467 jenkins-1.466.1 jenkins-1.466.1-rc1 jenkins-1.466 jenkins-1.465 jenkins-1.464 jenkins-1.463 jenkins-1.462 jenkins-1.461 jenkins-1.460 jenkins-1.459 jenkins-1.458 jenkins-1.457 jenkins-1.456 jenkins-1.455 jenkins-1.454 jenkins-1.453 jenkins-1.452 jenkins-1.451 jenkins-1.450 jenkins-1.449 jenkins-1.448 jenkins-1.447.2 jenkins-1.447.1 jenkins-1.447.1-rc1 jenkins-1.447 jenkins-1.446 jenkins-1.445 jenkins-1.444 jenkins-1.443 jenkins-1.442 jenkins-1.441 jenkins-1.440 jenkins-1.439 jenkins-1.438 jenkins-1.437 jenkins-1.436 jenkins-1.435 jenkins-1.434 jenkins-1.433 jenkins-1.432 jenkins-1.431 jenkins-1.430 jenkins-1.429 jenkins-1.428 jenkins-1.427 jenkins-1.426 jenkins-1.425 jenkins-1.424.6 jenkins-1.424.5 jenkins-1.424.4 jenkins-1.424.3 jenkins-1.424.3-rc2 jenkins-1.424.2 jenkins-1.424.2-rc3 jenkins-1.424.2-rc2 jenkins-1.424.2-rc1 jenkins-1.424.1 jenkins-1.424.1-rc3 jenkins-1.424.1-rc2 jenkins-1.424.1-rc1 jenkins-1.424 jenkins-1.424-rc2 jenkins-1.423 jenkins-1.422 jenkins-1.421 jenkins-1.420 jenkins-1.419 jenkins-1.418 jenkins-1.417 jenkins-1.416 jenkins-1_415 jenkins-1_414 jenkins-1_413 jenkins-1_412 jenkins-1_411 jenkins-1_410 jenkins-1.409.3 jenkins-1.409.2 jenkins-1.409.2-rc jenkins-1.409.1 jenkins-1.409.1-rc1 jenkins-1_409 jenkins-1_408 jenkins-1_407 jenkins-1_406 jenkins-1_405 jenkins-1_404 jenkins-1_403
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (7 sloc) 320 Bytes
#!/usr/bin/ruby
# parse POM from stdin and prints the version number
require "rexml/document"
require "rexml/xpath"
pom = REXML::Document.new $stdin
# if the POM doesn't define the version by itself, it's inherited from the parent
puts (pom.elements["/project/version"] || pom.elements["/project/parent/version"]).text