-
Notifications
You must be signed in to change notification settings - Fork 16
Developer profiles #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
As the pom-scijava pom.xml now contains multiple properties ranges, it is not enough to search and replace within the properties tag. A special start/end anchor was added to the pom.xml to define the non-profiled properties section, so this is used instead.
When bumping pom properties, also bump the corresponding properties in any profile sections to the latest SNAPSHOT versions.
I fear that we cannot really ask Imagine, for example, if someone deploys a new release of, say, |
Note that I, as the inconsiderate person that I am, merged I would like to find a different approach to fixing the |
@ctrueden yep I am on board. |
Thanks! |
Just for you, Dscho! Unfortunately, and surprisingly, performance is not much better: export jar1=org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar export jar2=org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar == Using javap == $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51.0) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49.0) real 0m2.538s user 0m4.616s sys 0m0.810s $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51.0) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49.0) real 0m2.382s user 0m4.467s sys 0m0.786s == Using unzip == $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51.0) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49.0) real 0m3.026s user 0m4.443s sys 0m1.158s $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51.0) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49.0) real 0m3.061s user 0m4.486s sys 0m1.161s == Simplifying further == Even if you cut out the sed and expr commands like so: # extract byte #7 major="$(unzip -p "$jar" "$(jar tf "$jar" | grep \.class$ | head -n 1)" | head -c 8 | hexdump -s 7 -e '1/1 "%d\n"')" The results are no more impressive: $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49) real 0m3.053s user 0m4.526s sys 0m1.151s $ time class-version.sh $jar1 $jar2 org/python/jython-standalone/2.7-b3/jython-standalone-2.7-b3.jar: J2SE 7 (51) org/python/jython-standalone/2.5.3/jython-standalone-2.5.3.jar: J2SE 5.0 (49) real 0m3.063s user 0m4.656s sys 0m1.151s
@dscho @ctrueden this PR updates bump-pom-scijava.sh to work with the developer-profiles branch of pom-scijava.
I just wanted @dscho especially to sign off on these changes, that I'm updating the profile properties correctly.
Thanks!