archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: new user question
Date Fri, 30 Nov 2012 21:04:21 GMT
2012/11/30 Leitch, Oblio <Oblio.Leitch@state.vt.us>:
> The ARGS line is missing a replace:
> ARGS=`cat conf/wrapper.conf | grep ^wrapper.app.parameter.[0-9]*= | sed 's/wrapper.app.parameter.[0-9]*=//'
| sed "s#%ARCHIVA_BASE%#$ARCHIVA_BASE#" | tr '\n' ' '`
>
Thanks I hope it works.
More generally I think we could provide an auto executable jar for
ease archiva testing.
something like: java -jar archiva.jar
This could startup embeded tomcat and run the webapp.



> -----Original Message-----
> From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
> Sent: Thursday, November 29, 2012 6:32 PM
> To: users@archiva.apache.org
> Subject: Re: new user question
>
> Sorry, replace CONTINUUM_BASE with ARCHIVA_BASE in this example - they both use the same
appassembler generated config.
>
> On 30/11/2012, at 10:30 AM, Brett Porter <brett@apache.org> wrote:
>
>> One option is to get a stock jetty download, and copy across our configuration &
application files - then you'll have all their scripts.
>>
>> Alternatively here's a quick and dirty start script you could use to pull the info
from wrapper.conf which should keep working with new versions:
>>
>> #!/bin/sh
>>
>> set -e
>>
>> (
>>   cd `dirname $0`/..
>>   if [ -z "$CONTINUUM_BASE" ]; then
>>     CONTINUUM_BASE=.
>>   fi
>>
>>   REPO_DIR=lib
>>   CP=`cat conf/wrapper.conf | grep ^wrapper.java.classpath.[0-9]*= | grep -v '.pom$'
| sed 's/wrapper.java.classpath.[0-9]*=//' | sed "s#%REPO_DIR%#$REPO_DIR#" | tr '\n' ':' |
sed 's/:$//'`
>>   ARGS=`cat conf/wrapper.conf | grep ^wrapper.app.parameter.[0-9]*= | sed 's/wrapper.app.parameter.[0-9]*=//'
| tr '\n' ' '`
>>   JVM_ARGS=`cat conf/wrapper.conf | egrep ^wrapper.java.additional.[0-9]*= | sed
's/wrapper.java.additional.[0-9]*=//' | sed "s#%CONTINUUM_BASE%#$CONTINUUM_BASE#" | tr '\n'
' '`
>>   JVM_MINMEM_ARG=`cat conf/wrapper.conf | egrep ^wrapper.java.minmemory= | sed 's/wrapper.java.minmemory=//'`
>>   if [ ! -z "$JVM_MINMEM_ARG" ]; then
>>     JVM_ARGS="-Xms${JVM_MINMEM_ARG}m $JVM_ARGS"
>>   fi
>>   JVM_MAXMEM_ARG=`cat conf/wrapper.conf | egrep ^wrapper.java.maxmemory= | sed 's/wrapper.java.maxmemory=//'`
>>   if [ ! -z "$JVM_MAXMEM_ARG" ]; then
>>     JVM_ARGS="-Xmx${JVM_MAXMEM_ARG}m $JVM_ARGS"
>>   fi
>>   java -cp $CP $JVM_ARGS $ARGS
>> )
>>
>>
>> On 30/11/2012, at 12:41 AM, "Leitch, Oblio" <Oblio.Leitch@state.vt.us> wrote:
>>
>>> Yeah, that sounds like a plan.  I see that Jetty's included in the stand-alone
version.  How would I get that started?
>>>
>>> -----Original Message-----
>>> From: Brett Porter [mailto:brett@porterclan.net] On Behalf Of Brett Porter
>>> Sent: Wednesday, November 28, 2012 7:00 PM
>>> To: users@archiva.apache.org
>>> Subject: Re: new user question
>>>
>>> Another option is to deploy the WAR into your application server of choice. Perhaps
we should have a wrapper-less startup script to do that with Jetty...
>>>
>>> - Brett
>>
>> --
>> Brett Porter
>> brett@apache.org
>> http://brettporter.wordpress.com/
>> http://au.linkedin.com/in/brettporter
>> http://twitter.com/brettporter
>>
>>
>>
>>
>>
>
> --
> Brett Porter
> brett@apache.org
> http://brettporter.wordpress.com/
> http://au.linkedin.com/in/brettporter
> http://twitter.com/brettporter
>
>
>
>
>



--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

Mime
View raw message