[
http://issues.ops4j.org/jira/browse/PAXRUNNER-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11703#action_11703
]
Niclas Hedhman commented on PAXRUNNER-164:
------------------------------------------
Ok, you can also obtain the version in your script. Since you will need to
locate the directory "somehow", then once there it is a matter of doing a
PAX_VERSION=`ls $PAX_HOME/bin/pax-runner*jar | sed 's/pax-runner-//' | sed
's/[.]jar//'`
(or so)
And the change the ${PAX_HOME}/bin/pax-runner.jar to
${PAX_HOME}/bin/pax-runner-$PAX_VERSION.jar
> Removing version number from jar file when distributing
> -------------------------------------------------------
>
> Key: PAXRUNNER-164
> URL: http://issues.ops4j.org/jira/browse/PAXRUNNER-164
> Project: Pax Runner
> Issue Type: Improvement
> Reporter: David Leangen
> Assignee: Alin Dreghiciu
> Priority: Minor
>
> Just wondering something...
> Would it be possible to remove the version number from the jar file when
> creating a distribution of pax-runner. The reason is this:
> When I install pax-runner to my file system, the directory structure looks
> like this:
> $PAX_HOME
> pax-runner-$VERSION
> bin
> pax-run
> pax-run.bat
> pax-runner-$VERSION.jar
> What I like to do is create a symbolic link in $PAX_HOME called "pax-runner"
> that points to the current pax-runner directory. This way, to update my
> pax-runner, all I need to do is copy the new files and update by symbolic
> link.
> Because, however, the jar holds the version number, this means that in
> addition to having to update just my symbolic link, I also have to update any
> scripts I have that make use of pax-runner, which is not a nice thing to have
> to do.
> So, it would be really nice to change pax-runner-$VERSION.jar to just
> pax-runner.jar.
> Thank you!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.ops4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
general mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/general