InstallingFedoraGSearch: configvalues.xml

File configvalues.xml, 27.1 kB (added by chi, 3 months ago)
Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--  $Id: build.xml 6534 2008-01-30 16:22:28Z gertsp $ -->
3 <project name="FgsConfig" default="configOnWebServer" basedir=".">
4         <description>
5                 Fedora Generic Search Service configuration.
6                 Set the property values for your environment.
7                 Select the default config in configDefault.
8                 Save this edited file outside of the web server.
9                 Run target configOnWebServer after deployment from command line:
10                                         >ant -f configvalues.xml configOnWebServer
11         </description>
12
13         <property environment="env" />
14         <property name="log.path" location="${env.FEDORA_HOME}/server/logs" />
15         <!-- The three soap properties are used for the deployment of the deploy.wsdd file for soap access -->
16         <property name="soap.deploy.hostport" value="localhost:8080" />
17         <property name="soap.deploy.user" value="fedoraAdmin" />
18         <property name="soap.deploy.pass" value="ADMIN_PASSWORD" />
19
20         <target name="configDefault"
21                   description="select the default config, by setting these three properties">
22                 <property name="default.config.path" location="${solr.config.path}" />
23                 <property name="default.config.prefix" value="${solr.config.prefix}" />
24                 <property name="default.index.1" value="${solr.index.1}" />
25                 <delete dir="${configs.path}/config" />
26                 <mkdir dir="${configs.path}/config" />
27                 <copy todir="${configs.path}/config">
28                         <fileset dir="${default.config.path}"/>
29                 </copy>
30                 <replace file="${configs.path}/config/rest/${default.config.prefix}UpdateIndexToHtml.xslt" token="${default.configs.path}" value="${configs.path}/config"/>
31                 <replace file="${configs.path}/config/rest/${default.config.prefix}GfindObjectsToHtml.xslt" token="${default.configs.path}" value="${configs.path}/config"/>
32                 <replace file="${configs.path}/config/rest/${default.config.prefix}BrowseIndexToHtml.xslt" token="${default.configs.path}" value="${configs.path}/config"/>
33                 <replace file="${configs.path}/config/rest/${default.config.prefix}GetIndexInfoToHtml.xslt" token="${default.configs.path}" value="${configs.path}/config"/>
34                 <replace file="${configs.path}/config/rest/${default.config.prefix}GetRepositoryInfoToHtml.xslt" token="${default.configs.path}" value="${configs.path}/config"/>
35
36         </target>
37
38         <target name="prepForWebServer"
39                 description="set values for the configs on web server">
40                 <property name="webserver.path" location="${env.TOMCAT_HOME}" />
41                 <property name="configs.path" location="${webserver.path}/webapps/fedoragsearch/WEB-INF/classes" />
42         </target>
43
44         <target name="configOnWebServer"
45                         depends="prepForWebServer, configBasic, configDemoOnLucene, configDemoOnSolr, configDemoOnZebra, configTestOnLucene, configDefault"
46                 description="set values for the configs on web server">
47                 <property name="debug.level" value="INFO" />
48                 <replace file="${configs.path}/log4j.xml" token="LOGPATH" value="${log.path}"/>
49                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELG" value="${debug.level}"/>
50                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELL" value="${debug.level}"/>
51                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELS" value="${debug.level}"/>
52                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELZ" value="${debug.level}"/>
53         </target>
54
55         <target name="prepForLocalDevelopment"
56                 description="set values for the local development configs">
57                 <property name="configs.path" location="../FgsBuild/webapp/WEB-INF/classes" />
58         </target>
59
60         <target name="configForLocalDevelopment"
61                         depends="prepForLocalDevelopment, configBasic, configDemoOnLucene, configDemoOnSolr, configDemoOnZebra, configTestOnLucene, configDefault"
62                 description="set values for the local development configs">
63                 <property name="debug.level" value="DEBUG" />
64                 <replace file="${configs.path}/log4j.xml" token="LOGPATH" value="${log.path}"/>
65                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELG" value="${debug.level}"/>
66                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELL" value="${debug.level}"/>
67                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELS" value="${debug.level}"/>
68                 <replace file="${configs.path}/log4j.xml" token="DEBUGLEVELZ" value="${debug.level}"/>
69         </target>
70
71         <target name="configBasic"
72                 description="set values for configBasic">
73                
74                 <property name="basic.config.name" value="configBasic" />
75                 <property name="basic.config.path" value="${configs.path}/${basic.config.name}" />
76                 <property name="basic.config.prefix" value="basic" />
77                 <property name="basic.mimetypes" value="text/plain text/xml text/html application/pdf" />
78                 <property name="basic.index.1" value="BasicIndex" />
79                 <property name="basic.index.1.indexdir" value="${env.FEDORA_HOME}/gsearch/${basic.index.1}" />
80                 <property name="basic.index.names" value="${basic.index.1}" />
81                 <property name="basic.repos.1" value="BasicRepos" />
82                 <property name="basic.repos.1.fedorasoap" value="http://localhost:8080" />
83                 <property name="basic.repos.1.fedorauser" value="fedoraAdmin" />
84                 <property name="basic.repos.1.fedorapass" value="ADMIN_PASSWORD" />
85                 <property name="basic.repos.1.fedoraobjectdir" value="${env.FEDORA_HOME}/data/objects" />
86                 <property name="basic.repos.names" value="${basic.repos.1}" />
87                
88                 <replace file="${basic.config.path}/fedoragsearch.properties" token="SOAPHOSTPORT" value="${soap.deploy.hostport}"/>
89                 <replace file="${basic.config.path}/fedoragsearch.properties" token="SOAPUSER" value="${soap.deploy.user}"/>
90                 <replace file="${basic.config.path}/fedoragsearch.properties" token="SOAPPASS" value="${soap.deploy.pass}"/>
91                 <replace file="${basic.config.path}/fedoragsearch.properties" token="CONFIGPATH" value="${basic.config.path}"/>
92                 <replace file="${basic.config.path}/fedoragsearch.properties" token="REPOSNAMES" value="${basic.repos.names}"/>
93                 <replace file="${basic.config.path}/fedoragsearch.properties" token="INDEXNAMES" value="${basic.index.names}"/>
94                 <replace file="${basic.config.path}/fedoragsearch.properties" token="DEFAULTUPDATEINDEXRESTXSLT" value="${basic.config.prefix}UpdateIndexToHtml"/>
95                 <replace file="${basic.config.path}/fedoragsearch.properties" token="DEFAULTGFINDOBJECTSRESTXSLT" value="${basic.config.prefix}GfindObjectsToHtml"/>
96                 <replace file="${basic.config.path}/fedoragsearch.properties" token="DEFAULTBROWSEINDEXRESTXSLT" value="${basic.config.prefix}BrowseIndexToHtml"/>
97                 <replace file="${basic.config.path}/fedoragsearch.properties" token="DEFAULTGETREPOSITORYINFORESTXSLT" value="${basic.config.prefix}GetRepositoryInfoToHtml"/>
98                 <replace file="${basic.config.path}/fedoragsearch.properties" token="DEFAULTGETINDEXINFORESTXSLT" value="${basic.config.prefix}GetIndexInfoToHtml"/>
99                 <replace file="${basic.config.path}/fedoragsearch.properties" token="MIMETYPES" value="${basic.mimetypes}"/>
100                
101                 <replace file="${basic.config.path}/rest/${basic.config.prefix}UpdateIndexToHtml.xslt" token="WEBSERVERPATH" value="${webserver.path}"/>
102                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GfindObjectsToHtml.xslt" token="WEBSERVERPATH" value="${webserver.path}"/>
103                 <replace file="${basic.config.path}/rest/${basic.config.prefix}BrowseIndexToHtml.xslt" token="WEBSERVERPATH" value="${webserver.path}"/>
104                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GetIndexInfoToHtml.xslt" token="WEBSERVERPATH" value="${webserver.path}"/>
105                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GetRepositoryInfoToHtml.xslt" token="WEBSERVERPATH" value="${webserver.path}"/>
106                
107                 <replace file="${basic.config.path}/rest/${basic.config.prefix}UpdateIndexToHtml.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
108                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GfindObjectsToHtml.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
109                 <replace file="${basic.config.path}/rest/${basic.config.prefix}BrowseIndexToHtml.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
110                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GetIndexInfoToHtml.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
111                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GetRepositoryInfoToHtml.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
112                
113                 <replace file="${basic.config.path}/rest/${basic.config.prefix}GfindObjectsToHtml.xslt" token="REPOS1FEDORABASE" value="${basic.repos.1.fedorasoap}"/>
114                
115                 <replace file="${basic.config.path}/repository/${basic.repos.1}/repository.properties" token="FEDORASOAP" value="${basic.repos.1.fedorasoap}"/>
116                 <replace file="${basic.config.path}/repository/${basic.repos.1}/repository.properties" token="FEDORAUSER" value="${basic.repos.1.fedorauser}"/>
117                 <replace file="${basic.config.path}/repository/${basic.repos.1}/repository.properties" token="FEDORAPASS" value="${basic.repos.1.fedorapass}"/>
118                 <replace file="${basic.config.path}/repository/${basic.repos.1}/repository.properties" token="FEDORAOBJECTDIR" value="${basic.repos.1.fedoraobjectdir}"/>
119                
120                 <replace file="${basic.config.path}/index/${basic.index.1}/index.properties" token="INDEXDIR" value="${basic.index.1.indexdir}"/>
121                 <replace file="${basic.config.path}/index/${basic.index.1}/index.properties" token="DEFAULTUPDATEINDEXDOCXSLT" value="${basic.config.prefix}FoxmlToLucene"/>
122                 <replace file="${basic.config.path}/index/${basic.index.1}/${basic.config.prefix}FoxmlToLucene.xslt" token="CONFIGPATH" value="${basic.config.path}"/>
123                
124         </target>
125
126         <target name="configDemoOnLucene"
127                 description="set values for configDemoOnLucene">
128                
129                 <property name="lucene.config.name" value="configDemoOnLucene" />
130                 <property name="lucene.config.path" value="${configs.path}/${lucene.config.name}" />
131                 <property name="lucene.config.prefix" value="demo" />
132                 <property name="lucene.mimetypes" value="text/plain text/xml text/html application/pdf" />
133                 <property name="lucene.index.1" value="DemoOnLucene" />
134                 <property name="lucene.index.1.indexdir" value="${env.FEDORA_HOME}/gsearch/${lucene.index.1}" />
135                 <property name="lucene.index.names" value="${lucene.index.1}" />
136                 <property name="lucene.repos.1" value="DemoAtDtu" />
137                 <property name="lucene.repos.1.fedorasoap" value="http://localhost:8080" />
138                 <property name="lucene.repos.1.fedorauser" value="fedoraAdmin" />
139                 <property name="lucene.repos.1.fedorapass" value="ADMIN_PASSWORD" />
140                 <property name="lucene.repos.1.fedoraobjectdir" value="${env.FEDORA_HOME}/data/objects" />
141                 <property name="lucene.repos.names" value="${lucene.repos.1}" />
142                
143                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="SOAPHOSTPORT" value="${soap.deploy.hostport}"/>
144                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="SOAPUSER" value="${soap.deploy.user}"/>
145                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="SOAPPASS" value="${soap.deploy.pass}"/>
146                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="CONFIGPATH" value="${lucene.config.path}"/>
147                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="REPOSNAMES" value="${lucene.repos.names}"/>
148                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="INDEXNAMES" value="${lucene.index.names}"/>
149                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="DEFAULTUPDATEINDEXRESTXSLT" value="${lucene.config.prefix}UpdateIndexToHtml"/>
150                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="DEFAULTGFINDOBJECTSRESTXSLT" value="${lucene.config.prefix}GfindObjectsToHtml"/>
151                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="DEFAULTBROWSEINDEXRESTXSLT" value="${lucene.config.prefix}BrowseIndexToHtml"/>
152                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="DEFAULTGETREPOSITORYINFORESTXSLT" value="${lucene.config.prefix}GetRepositoryInfoToHtml"/>
153                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="DEFAULTGETINDEXINFORESTXSLT" value="${lucene.config.prefix}GetIndexInfoToHtml"/>
154                 <replace file="${lucene.config.path}/fedoragsearch.properties" token="MIMETYPES" value="${lucene.mimetypes}"/>
155                
156                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}UpdateIndexToHtml.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
157                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}GfindObjectsToHtml.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
158                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}BrowseIndexToHtml.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
159                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}GetIndexInfoToHtml.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
160                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}GetRepositoryInfoToHtml.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
161                
162                 <replace file="${lucene.config.path}/rest/${lucene.config.prefix}GfindObjectsToHtml.xslt" token="REPOS1FEDORABASE" value="${lucene.repos.1.fedorasoap}"/>
163                
164                 <replace file="${lucene.config.path}/repository/${lucene.repos.1}/repository.properties" token="FEDORASOAP" value="${lucene.repos.1.fedorasoap}"/>
165                 <replace file="${lucene.config.path}/repository/${lucene.repos.1}/repository.properties" token="FEDORAUSER" value="${lucene.repos.1.fedorauser}"/>
166                 <replace file="${lucene.config.path}/repository/${lucene.repos.1}/repository.properties" token="FEDORAPASS" value="${lucene.repos.1.fedorapass}"/>
167                 <replace file="${lucene.config.path}/repository/${lucene.repos.1}/repository.properties" token="FEDORAOBJECTDIR" value="${lucene.repos.1.fedoraobjectdir}"/>
168
169                 <replace file="${lucene.config.path}/index/${lucene.index.1}/index.properties" token="INDEXDIR" value="${lucene.index.1.indexdir}"/>
170                 <replace file="${lucene.config.path}/index/${lucene.index.1}/index.properties" token="DEFAULTUPDATEINDEXDOCXSLT" value="${lucene.config.prefix}FoxmlToLucene"/>
171                 <replace file="${lucene.config.path}/index/${lucene.index.1}/${lucene.config.prefix}FoxmlToLucene.xslt" token="CONFIGPATH" value="${lucene.config.path}"/>
172                
173         </target>
174
175         <target name="configTestOnLucene"
176                 description="set values for configTestOnLucene">
177                
178                 <property name="test.config.name" value="configTestOnLucene" />
179                 <property name="test.config.path" value="${configs.path}/${test.config.name}" />
180                 <property name="test.config.prefix" value="demo" />
181                 <property name="test.mimetypes" value="text/plain text/xml text/html application/pdf" />
182                 <property name="test.index.1" value="BasicIndex" />
183                 <property name="test.index.1.indexdir" value="${env.FEDORA_HOME}/gsearch/${test.index.1}" />
184                 <property name="test.index.names" value="${test.index.1}" />
185                 <property name="test.repos.1" value="BasicRepos" />
186                 <property name="test.repos.1.fedorasoap" value="http://localhost:8080" />
187                 <property name="test.repos.1.fedorauser" value="fedoraAdmin" />
188                 <property name="test.repos.1.fedorapass" value="ADMIN_PASSWORD" />
189                 <property name="test.repos.1.fedoraobjectdir" value="${env.FEDORA_HOME}/data/objects" />
190                 <property name="test.repos.names" value="${test.repos.1}" />
191                
192                 <replace file="${test.config.path}/fedoragsearch.properties" token="SOAPHOSTPORT" value="${soap.deploy.hostport}"/>
193                 <replace file="${test.config.path}/fedoragsearch.properties" token="SOAPUSER" value="${soap.deploy.user}"/>
194                 <replace file="${test.config.path}/fedoragsearch.properties" token="SOAPPASS" value="${soap.deploy.pass}"/>
195                 <replace file="${test.config.path}/fedoragsearch.properties" token="CONFIGPATH" value="${test.config.path}"/>
196                 <replace file="${test.config.path}/fedoragsearch.properties" token="REPOSNAMES" value="${test.repos.names}"/>
197                 <replace file="${test.config.path}/fedoragsearch.properties" token="INDEXNAMES" value="${test.index.names}"/>
198                 <replace file="${test.config.path}/fedoragsearch.properties" token="DEFAULTUPDATEINDEXRESTXSLT" value="${test.config.prefix}UpdateIndexToHtml"/>
199                 <replace file="${test.config.path}/fedoragsearch.properties" token="DEFAULTGFINDOBJECTSRESTXSLT" value="${test.config.prefix}GfindObjectsToHtml"/>
200                 <replace file="${test.config.path}/fedoragsearch.properties" token="DEFAULTBROWSEINDEXRESTXSLT" value="${test.config.prefix}BrowseIndexToHtml"/>
201                 <replace file="${test.config.path}/fedoragsearch.properties" token="DEFAULTGETREPOSITORYINFORESTXSLT" value="${test.config.prefix}GetRepositoryInfoToHtml"/>
202                 <replace file="${test.config.path}/fedoragsearch.properties" token="DEFAULTGETINDEXINFORESTXSLT" value="${test.config.prefix}GetIndexInfoToHtml"/>
203                 <replace file="${test.config.path}/fedoragsearch.properties" token="MIMETYPES" value="${test.mimetypes}"/>
204                
205                 <replace file="${test.config.path}/rest/${test.config.prefix}UpdateIndexToHtml.xslt" token="CONFIGPATH" value="${test.config.path}"/>
206                 <replace file="${test.config.path}/rest/${test.config.prefix}GfindObjectsToHtml.xslt" token="CONFIGPATH" value="${test.config.path}"/>
207                 <replace file="${test.config.path}/rest/${test.config.prefix}BrowseIndexToHtml.xslt" token="CONFIGPATH" value="${test.config.path}"/>
208                 <replace file="${test.config.path}/rest/${test.config.prefix}GetIndexInfoToHtml.xslt" token="CONFIGPATH" value="${test.config.path}"/>
209                 <replace file="${test.config.path}/rest/${test.config.prefix}GetRepositoryInfoToHtml.xslt" token="CONFIGPATH" value="${test.config.path}"/>
210                
211                 <replace file="${test.config.path}/rest/${test.config.prefix}GfindObjectsToHtml.xslt" token="REPOS1FEDORABASE" value="${test.repos.1.fedorasoap}"/>
212                
213                 <replace file="${test.config.path}/repository/${test.repos.1}/repository.properties" token="FEDORASOAP" value="${test.repos.1.fedorasoap}"/>
214                 <replace file="${test.config.path}/repository/${test.repos.1}/repository.properties" token="FEDORAUSER" value="${test.repos.1.fedorauser}"/>
215                 <replace file="${test.config.path}/repository/${test.repos.1}/repository.properties" token="FEDORAPASS" value="${test.repos.1.fedorapass}"/>
216                 <replace file="${test.config.path}/repository/${test.repos.1}/repository.properties" token="FEDORAOBJECTDIR" value="${test.repos.1.fedoraobjectdir}"/>
217
218                 <replace file="${test.config.path}/index/${test.index.1}/index.properties" token="INDEXDIR" value="${test.index.1.indexdir}"/>
219                 <replace file="${test.config.path}/index/${test.index.1}/index.properties" token="DEFAULTUPDATEINDEXDOCXSLT" value="${test.config.prefix}FoxmlToLucene"/>
220                 <replace file="${test.config.path}/index/${test.index.1}/${test.config.prefix}FoxmlToLucene.xslt" token="CONFIGPATH" value="${test.config.path}"/>
221                
222         </target>
223
224         <target name="configDemoOnSolr"
225                 description="set values for configDemoOnSolr">
226                
227                 <property name="solr.config.name" value="configDemoOnSolr" />
228                 <property name="solr.config.path" value="${configs.path}/${solr.config.name}" />
229                 <property name="solr.config.prefix" value="demo" />
230                 <property name="solr.mimetypes" value="text/plain text/xml text/html application/pdf" />
231                 <property name="solr.index.1" value="DemoOnSolr" />
232                 <property name="solr.index.1.indexbase" value="http://localhost:8080/solr" />
233                 <property name="solr.index.1.indexdir" value="SOLR_HOME/example/solr/data/index/" />
234                 <property name="solr.index.names" value="${solr.index.1}" />
235                 <property name="solr.repos.1" value="DemoAtDtu" />
236                 <property name="solr.repos.1.fedorasoap" value="http://localhost:8080" />
237                 <property name="solr.repos.1.fedorauser" value="fedoraAdmin" />
238                 <property name="solr.repos.1.fedorapass" value="ADMIN_PASSWORD" />
239                 <property name="solr.repos.1.fedoraobjectdir" value="${env.FEDORA_HOME}/data/objects" />
240                 <property name="solr.repos.names" value="${solr.repos.1}" />
241                
242                 <replace file="${solr.config.path}/fedoragsearch.properties" token="SOAPHOSTPORT" value="${soap.deploy.hostport}"/>
243                 <replace file="${solr.config.path}/fedoragsearch.properties" token="SOAPUSER" value="${soap.deploy.user}"/>
244                 <replace file="${solr.config.path}/fedoragsearch.properties" token="SOAPPASS" value="${soap.deploy.pass}"/>
245                 <replace file="${solr.config.path}/fedoragsearch.properties" token="CONFIGPATH" value="${solr.config.path}"/>
246                 <replace file="${solr.config.path}/fedoragsearch.properties" token="REPOSNAMES" value="${solr.repos.names}"/>
247                 <replace file="${solr.config.path}/fedoragsearch.properties" token="INDEXNAMES" value="${solr.index.names}"/>
248                 <replace file="${solr.config.path}/fedoragsearch.properties" token="DEFAULTUPDATEINDEXRESTXSLT" value="${solr.config.prefix}UpdateIndexToHtml"/>
249                 <replace file="${solr.config.path}/fedoragsearch.properties" token="DEFAULTGFINDOBJECTSRESTXSLT" value="${solr.config.prefix}GfindObjectsToHtml"/>
250                 <replace file="${solr.config.path}/fedoragsearch.properties" token="DEFAULTBROWSEINDEXRESTXSLT" value="${solr.config.prefix}BrowseIndexToHtml"/>
251                 <replace file="${solr.config.path}/fedoragsearch.properties" token="DEFAULTGETREPOSITORYINFORESTXSLT" value="${solr.config.prefix}GetRepositoryInfoToHtml"/>
252                 <replace file="${solr.config.path}/fedoragsearch.properties" token="DEFAULTGETINDEXINFORESTXSLT" value="${solr.config.prefix}GetIndexInfoToHtml"/>
253                 <replace file="${solr.config.path}/fedoragsearch.properties" token="MIMETYPES" value="${solr.mimetypes}"/>
254                
255                 <replace file="${solr.config.path}/rest/${solr.config.prefix}UpdateIndexToHtml.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
256                 <replace file="${solr.config.path}/rest/${solr.config.prefix}GfindObjectsToHtml.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
257                 <replace file="${solr.config.path}/rest/${solr.config.prefix}BrowseIndexToHtml.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
258                 <replace file="${solr.config.path}/rest/${solr.config.prefix}GetIndexInfoToHtml.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
259                 <replace file="${solr.config.path}/rest/${solr.config.prefix}GetRepositoryInfoToHtml.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
260                
261                 <replace file="${solr.config.path}/rest/${solr.config.prefix}GfindObjectsToHtml.xslt" token="REPOS1FEDORABASE" value="${solr.repos.1.fedorasoap}"/>
262                
263                 <replace file="${solr.config.path}/repository/${solr.repos.1}/repository.properties" token="FEDORASOAP" value="${solr.repos.1.fedorasoap}"/>
264                 <replace file="${solr.config.path}/repository/${solr.repos.1}/repository.properties" token="FEDORAUSER" value="${solr.repos.1.fedorauser}"/>
265                 <replace file="${solr.config.path}/repository/${solr.repos.1}/repository.properties" token="FEDORAPASS" value="${solr.repos.1.fedorapass}"/>
266                 <replace file="${solr.config.path}/repository/${solr.repos.1}/repository.properties" token="FEDORAOBJECTDIR" value="${solr.repos.1.fedoraobjectdir}"/>
267
268                 <replace file="${solr.config.path}/index/${solr.index.1}/index.properties" token="INDEXBASE" value="${solr.index.1.indexbase}"/>
269                 <replace file="${solr.config.path}/index/${solr.index.1}/index.properties" token="INDEXDIR" value="${solr.index.1.indexdir}"/>
270                 <replace file="${solr.config.path}/index/${solr.index.1}/index.properties" token="DEFAULTUPDATEINDEXDOCXSLT" value="${solr.config.prefix}FoxmlToSolr"/>
271                 <replace file="${solr.config.path}/index/${solr.index.1}/${solr.config.prefix}FoxmlToSolr.xslt" token="CONFIGPATH" value="${solr.config.path}"/>
272                
273         </target>
274
275         <target name="configDemoOnZebra"
276                 description="set values for configDemoOnZebra">
277                
278                 <property name="zebra.config.name" value="configDemoOnZebra" />
279                 <property name="zebra.config.path" value="${configs.path}/${zebra.config.name}" />
280                 <property name="zebra.config.prefix" value="demo" />
281                 <property name="zebra.mimetypes" value="text/plain text/xml text/html application/pdf" />
282                 <property name="zebra.index.1" value="DemoOnZebra" />
283                 <property name="zebra.index.1.indexbase" value="http://localhost:8080/zebra" />
284                 <property name="zebra.index.1.indexdir" value="${env.FEDORA_HOME}/gsearch/${zebra.index.1}" />
285                 <property name="zebra.index.names" value="${zebra.index.1}" />
286                 <property name="zebra.repos.1" value="DemoAtDtu" />
287                 <property name="zebra.repos.1.fedorasoap" value="http://localhost:8080" />
288                 <property name="zebra.repos.1.fedorauser" value="fedoraAdmin" />
289                 <property name="zebra.repos.1.fedorapass" value="ADMIN_PASSWORD" />
290                 <property name="zebra.repos.1.fedoraobjectdir" value="${env.FEDORA_HOME}/data/objects" />
291                 <property name="zebra.repos.names" value="${zebra.repos.1}" />
292                
293                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="SOAPHOSTPORT" value="${soap.deploy.hostport}"/>
294                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="SOAPUSER" value="${soap.deploy.user}"/>
295                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="SOAPPASS" value="${soap.deploy.pass}"/>
296                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="CONFIGPATH" value="${zebra.config.path}"/>
297                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="REPOSNAMES" value="${zebra.repos.names}"/>
298                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="INDEXNAMES" value="${zebra.index.names}"/>
299                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="DEFAULTUPDATEINDEXRESTXSLT" value="${zebra.config.prefix}UpdateIndexToHtml"/>
300                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="DEFAULTGFINDOBJECTSRESTXSLT" value="${zebra.config.prefix}GfindObjectsToHtml"/>
301                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="DEFAULTBROWSEINDEXRESTXSLT" value="${zebra.config.prefix}BrowseIndexToHtml"/>
302                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="DEFAULTGETREPOSITORYINFORESTXSLT" value="${zebra.config.prefix}GetRepositoryInfoToHtml"/>
303                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="DEFAULTGETINDEXINFORESTXSLT" value="${zebra.config.prefix}GetIndexInfoToHtml"/>
304                 <replace file="${zebra.config.path}/fedoragsearch.properties" token="MIMETYPES" value="${zebra.mimetypes}"/>
305                
306                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}UpdateIndexToHtml.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
307                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}GfindObjectsToHtml.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
308                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}BrowseIndexToHtml.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
309                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}GetIndexInfoToHtml.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
310                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}GetRepositoryInfoToHtml.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
311                
312                 <replace file="${zebra.config.path}/rest/${zebra.config.prefix}GfindObjectsToHtml.xslt" token="REPOS1FEDORABASE" value="${zebra.repos.1.fedorasoap}"/>
313                
314                 <replace file="${zebra.config.path}/repository/${zebra.repos.1}/repository.properties" token="FEDORASOAP" value="${zebra.repos.1.fedorasoap}"/>
315                 <replace file="${zebra.config.path}/repository/${zebra.repos.1}/repository.properties" token="FEDORAUSER" value="${zebra.repos.1.fedorauser}"/>
316                 <replace file="${zebra.config.path}/repository/${zebra.repos.1}/repository.properties" token="FEDORAPASS" value="${zebra.repos.1.fedorapass}"/>
317                 <replace file="${zebra.config.path}/repository/${zebra.repos.1}/repository.properties" token="FEDORAOBJECTDIR" value="${zebra.repos.1.fedoraobjectdir}"/>
318
319                 <replace file="${zebra.config.path}/index/${zebra.index.1}/index.properties" token="INDEXBASE" value="${zebra.index.1.indexbase}"/>
320                 <replace file="${zebra.config.path}/index/${zebra.index.1}/index.properties" token="INDEXDIR" value="${zebra.index.1.indexdir}"/>
321                 <replace file="${zebra.config.path}/index/${zebra.index.1}/index.properties" token="DEFAULTUPDATEINDEXDOCXSLT" value="${zebra.config.prefix}FoxmlToZebra"/>
322                 <replace file="${zebra.config.path}/index/${zebra.index.1}/${zebra.config.prefix}FoxmlToZebra.xslt" token="CONFIGPATH" value="${zebra.config.path}"/>
323                
324         </target>
325
326 </project>