Changeset 6408


Ignore:
Timestamp:
07/23/15 09:55:32 (9 years ago)
Author:
Twan Goosen
Message:

filtering of VloConfig?.xml with different build profiles

Location:
vlo/trunk/vlo-commons
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo-commons/pom.xml

    r6218 r6408  
    1515    <properties>
    1616        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     17       
     18        <!-- default config values -->
     19        <vloconfig.deleteAllFirst>true</vloconfig.deleteAllFirst>
     20        <vloconfig.maxDaysInSolr>0</vloconfig.maxDaysInSolr>
     21        <vloconfig.homeUrl>http://www.clarin.eu/vlo</vloconfig.homeUrl>
     22        <vloconfig.helpUrl>http://www.clarin.eu/vlo</vloconfig.helpUrl>
    1723    </properties>
     24   
     25    <build>
     26        <resources>
     27            <resource>
     28                <directory>src/main/resources</directory>
     29                <filtering>true</filtering>
     30            </resource>
     31        </resources>
     32    </build>
     33   
     34    <!-- Build profiles prepare VloConfig.xml for different deployment enviroments -->
     35    <profiles>
     36        <profile>
     37            <!-- For local testing, default profile -->
     38            <id>local-testing</id>
     39            <activation>
     40                <activeByDefault>true</activeByDefault>
     41            </activation>
     42            <properties>
     43                <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl>
     44                <!--TODO: xinclude dataroots -->
     45            </properties>
     46        </profile>
     47       
     48        <profile>
     49            <!-- For deployment to vlo.clarin.eu -->
     50            <id>production</id>
     51            <properties>
     52                <vloconfig.deleteAllFirst>false</vloconfig.deleteAllFirst>
     53                <vloconfig.maxDaysInSolr>7</vloconfig.maxDaysInSolr>
     54                <vloconfig.solrUrl>http://localhost:8080/solr/core0/</vloconfig.solrUrl>
     55                <vloconfig.homeUrl>http://vlo.clarin.eu</vloconfig.homeUrl>
     56                <!--TODO: xinclude dataroots -->
     57            </properties>
     58        </profile>
     59       
     60        <profile>
     61            <!-- For deployment to vlo.clarin.eu -->
     62            <id>dev-vm</id>
     63            <properties>
     64                <vloconfig.solrUrl>http://localhost:8080/vlo-solr/core0/</vloconfig.solrUrl>
     65                <!--TODO: xinclude dataroots -->
     66            </properties>
     67        </profile>
     68       
     69        <profile>
     70            <!--  For deployment to beta.vlo.clarin.eu -->
     71            <id>beta</id>
     72            <properties>
     73                <vloconfig.solrUrl><!-- TODO!!! --></vloconfig.solrUrl>
     74                <vloconfig.homeUrl>http://beta.vlo.clarin.eu</vloconfig.homeUrl>
     75                <!--TODO: xinclude dataroots -->
     76            </properties>
     77        </profile>
     78    </profiles>
     79   
    1880    <dependencies>
    1981        <dependency>
  • vlo/trunk/vlo-commons/src/main/resources/VloConfig.xml

    r6284 r6408  
    11<VloConfig>
    22   
    3     <!-- Sets the maximum number of page instances which will be stored in the application scoped second level cache for faster retrieval -->
    4     <pagesInApplicationCache>40</pagesInApplicationCache>
     3    <deleteAllFirst>${vloconfig.deleteAllFirst}</deleteAllFirst>
    54   
    6     <!-- Sets the maximum size (in KILOBYTES) of the File where page instances per session are stored. -->
    7     <sessionCacheSize>10000</sessionCacheSize>
    8    
    9     <deleteAllFirst>true</deleteAllFirst>
     5    <maxDaysInSolr>${vloconfig.maxDaysInSolr}</maxDaysInSolr>
    106   
    11     <maxDocsInList>128</maxDocsInList>
     7    <solrUrl>${vloconfig.solrUrl}</solrUrl>
    128   
    13     <minDocsInSolrQueue>128</minDocsInSolrQueue>
     9    <homeUrl>${vloconfig.homeUrl}</homeUrl>
    1410   
    15     <solrTimeOut>300</solrTimeOut>
    16    
    17     <maxFileSize>10000000</maxFileSize>
    18    
    19     <maxDaysInSolr>0</maxDaysInSolr>
    20    
    21     <useHandleResolver>false</useHandleResolver>
    22    
    23     <printMapping>false</printMapping>
     11    <helpUrl>${vloconfig.helpUrl}</helpUrl>
    2412   
    2513    <dataRoots>
     
    4129    </dataRoots>
    4230   
    43     <solrUrl>http://localhost:8080/vlo-solr/core0/</solrUrl>
     31    <!-- Sets the maximum number of page instances which will be stored in the application scoped second level cache for faster retrieval -->
     32    <pagesInApplicationCache>40</pagesInApplicationCache>
    4433   
    45     <homeUrl>http://www.clarin.eu/vlo</homeUrl>
     34    <!-- Sets the maximum size (in KILOBYTES) of the File where page instances per session are stored. -->
     35    <sessionCacheSize>10000</sessionCacheSize>
     36   
     37    <maxDocsInList>128</maxDocsInList>
    4638   
    47     <helpUrl>http://www.clarin.eu/vlo</helpUrl>
     39    <minDocsInSolrQueue>128</minDocsInSolrQueue>
     40   
     41    <solrTimeOut>300</solrTimeOut>
     42   
     43    <maxFileSize>10000000</maxFileSize>
     44   
     45    <useHandleResolver>false</useHandleResolver>
     46   
     47    <printMapping>false</printMapping>
    4848   
    4949    <!-- leave empty to use default packaged definition -->
Note: See TracChangeset for help on using the changeset viewer.