[ 
http://issues.ops4j.org/jira/browse/PAXRUNNER-164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11699#action_11699
 ] 

David Leangen commented on PAXRUNNER-164:
-----------------------------------------

Wow! I just love it when so many people are so passionate about an issue like 
this. It gives me warm fuzzy feelings. :-)

Really, it's not a big deal, just a question, since in my case it would help 
make things cleaner on my various distribution machines. And no, the real 
question is about removing the version number from the jar file in the distro. 
;-)

Here is my script. I highly doubt it will be useful to anyone. It is for use 
with daemontools[1], which AFAIK I'm the only one in this gang who uses it. It 
is run in a totally clean environment, with environment variables supplied by 
envdir[2].
******************
#!/bin/sh
exec 2>&1

RUNDIR=/home/runtime
SERVICEDIR=${RUNDIR}/service
RUNNERDIR=${SERVICEDIR}/runner
ENVDIR=${SERVICEDIR}/env
SH="/bin/sh -c"

echo "Starting daemon..."

mkdir -p ${RUNNERDIR}
chown -R runtime.runtime ${RUNNERDIR}

exec envdir ${ENVDIR} setuidgid runtime $SH '${JAVA_HOME}/bin/java -jar 
${PAX_HOME}/bin/pax-runner.jar --noConsole --
clean --debug=${DEBUG_LEVEL} --platform=${PLATFORM} 
--version=${PLATFORM_VERSION} "--vmOptions=-${XMN} -${XMS} -$
{XMX}" "--repositories=${REPOSITORIES}" 
mvn:${GROUPID}/${ARTIFACTID}/${VERSION}/pom'
******************

[1] http://cr.yp.to/daemontools.html
[2] http://cr.yp.to/daemontools/envdir.html

> 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
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to