[Hippo-cms7-user] repository-directory location

M Nair mnsweeps at yahoo.com
Thu Jun 23 08:09:14 CEST 2011


Unico 

Thanks for info..Rather than have the user pass parameter using -D in build 
process we would like to standardize the path to /tmp/<user-network-login>/hippo 
.... doing this in context.xml would be preferred..

Let me know.

Thanks
M




________________________________
From: Unico Hommes <u.hommes at onehippo.com>
To: Hippo CMS 7 development public mailinglist 
<hippo-cms7-user at lists.onehippo.com>
Sent: Wed, June 22, 2011 11:03:20 PM
Subject: Re: [Hippo-cms7-user] repository-directory location

You could also consider using filtering during the build process if
that suits your case. If you are new to filtering than basically you
can do:

web.xml:
<param-value>${repository.directory}</param-value>

cms/pom.xml:

    <build>
        <finalName>cms</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <configuration>
                    <webResources>
                        <resource>
                            <filtering>true</filtering>
                            <directory>${basedir}/src/main/webapp</directory>
                            <includes>
                                <include>**/*.xml</include>
                            </includes>
                        </resource>
                    </webResources>
                </configuration>
            </plugin>
        </plugins>
    </build>

The build with -Drepository.directory=WEB-INF/storage

Consult the maven war plugin documentation to find out more.

--
Unico


On Thu, Jun 23, 2011 at 2:24 AM, M Nair <mnsweeps at yahoo.com> wrote:
> Jeroen
> Yes the idea is to have the repository-directory parameter to be injected
> from outside the web.xml rather than within the war. In our environment we
> are trying to create a standard setup for all users and each user can later
> pass their repo location from outside the web.xml.
> Can you please email me an example of this pass in context.xml  ?
> Thanks
>
> ________________________________
> From: Jeroen Reijn <j.reijn at onehippo.com>
> To: Hippo CMS 7 development public mailinglist
> <hippo-cms7-user at lists.onehippo.com>
> Sent: Wed, June 22, 2011 2:11:05 PM
> Subject: Re: [Hippo-cms7-user] repository-directory location
>
> Hi,
>
> just wondering what your thoughts are about the repository-directory
> going into the repository.xml? Is there a reason why you would want
> that? Please share you thoughts. If you want it because it will be
> outside of the web.xml you can just configure the repository-directory
> as a context parameter in the context.xml of for instance tomcat.
>
> Jeroen
>
> On Wed, Jun 22, 2011 at 11:03 PM, M Nair <mnsweeps at yahoo.com> wrote:
>> <servlet>
>>
>>     <servlet-name>Repository</servlet-name>
>>
>>
>> <servlet-class>org.hippoecm.repository.RepositoryServlet</servlet-class>
>>
>>     <init-param>
>>
>>       <param-name>repository-directory</param-name>
>>
>>       <param-value>/tmp/mnair/hippocms76</param-value>
>>
>>       <description>The (relative) location where to store
>> files</description>
>>
>>     </init-param>
>>
>>     <init-param>
>>
>>       <param-name>repository-config</param-name>
>>
>>       <param-value>repository.xml</param-value>
>>
>>       <description>The location of the repository configuration file.
>> Unless
>> the location
>>
>>       starts with file://, the location is retrieved from within the
>> application package as
>>
>>       resource.</description>
>>
>>     </init-param>
>>
>>     <load-on-startup>4</load-on-startup>
>>
>>   </servlet>
>>
>>
>>
>> can repository-directory parameter be in anyway set in the repository.xml
>> file and passed to the servlet ?
>> _______________________________________________
>> Hippo-cms7-user mailing list and forums
>> http://www.onehippo.org/cms7/support/forums.html
>>
>
>
>
> --
> Amsterdam - Oosteinde 11, 1017 WT Amsterdam
> Boston - 1 Broadway, Cambridge, MA 02142
>
> US +1 877 414 4776 (toll free)
> Europe +31(0)20 522 4466
> www.onehippo.com
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
>
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/forums.html
>
_______________________________________________
Hippo-cms7-user mailing list and forums
http://www.onehippo.org/cms7/support/forums.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onehippo.org/pipermail/hippo-cms7-user/attachments/20110622/7af66a9e/attachment.htm>


More information about the Hippo-cms7-user mailing list