Revision 07de2b00
Added by Andreas Kohlbecker over 9 years ago
pom.xml | ||
---|---|---|
417 | 417 |
<serverId>wp5.e-taxonomy.eu</serverId> |
418 | 418 |
</configuration> |
419 | 419 |
</plugin> |
420 |
<plugin> |
|
421 |
<groupId>org.codehaus.mojo</groupId> |
|
422 |
<artifactId>exec-maven-plugin</artifactId> |
|
423 |
<version>1.2.1</version> |
|
424 |
<executions> |
|
425 |
<execution> |
|
426 |
<goals> |
|
427 |
<goal>exec</goal> |
|
428 |
</goals> |
|
429 |
</execution> |
|
430 |
</executions> |
|
431 |
<configuration> |
|
432 |
<!-- EXECUTE: ssh root@wp5.e-taxonomy.eu bash -c "cd /var/www/download/cdmserver;rm stable; ln -s ${project.version} stable"--> |
|
433 |
<executable>/usr/bin/ssh</executable> |
|
434 |
<arguments> |
|
435 |
<argument>root@wp5.e-taxonomy.eu</argument> |
|
436 |
<argument>bash -c "cd /var/www/download/cdmserver;rm stable; ln -s ${project.version} stable"</argument> |
|
437 |
</arguments> |
|
438 |
</configuration> |
|
439 |
</plugin> |
|
440 | 420 |
</plugins> |
441 | 421 |
<!-- EXTENSIONS --> |
442 | 422 |
<extensions> |
src/main/installer/templates/.cdmLibrary/datasources.xml | ||
---|---|---|
7 | 7 |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd |
8 | 8 |
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd |
9 | 9 |
"> |
10 |
|
|
10 |
|
|
11 | 11 |
<!-- ====================================================== |
12 |
NOTICE:
|
|
13 |
|
|
12 |
NOTICE: |
|
13 |
|
|
14 | 14 |
For each bean defined herein the cdm server will create |
15 | 15 |
and start an internal cdm server instance. |
16 |
|
|
17 |
These id of the datasource beans are being used as name
|
|
16 |
|
|
17 |
These id of the datasource beans are being used as name |
|
18 | 18 |
and root path for the dem server instances |
19 |
|
|
20 |
======================================================--> |
|
21 |
|
|
19 |
|
|
20 |
======================================================--> |
|
21 |
<!-- |
|
22 |
DataSourceProperties allow configuring specific properies of the datasources |
|
23 |
|
|
24 |
* cdmlib-remote.xslBasePath: |
|
25 |
alternative base path for REST services to retrieve XSL style sheets from. |
|
26 |
the base path must be on the same domain since cross domain xsl loading is |
|
27 |
not permitted |
|
28 |
--> |
|
29 |
<bean id="dataSourceProperties" class="eu.etaxonomy.cdm.remote.config.DataSourceProperties"> |
|
30 |
<property name="propsMap"> |
|
31 |
<map> |
|
32 |
<!-- |
|
33 |
<entry key="dataSourceBeanID"> |
|
34 |
<props> |
|
35 |
<prop key="cdmlib-remote.xslBasePath">/xsl</prop> |
|
36 |
</props> |
|
37 |
</entry> |
|
38 |
--> |
|
39 |
</map> |
|
40 |
</property> |
|
41 |
</bean> |
|
42 |
|
|
22 | 43 |
<!-- ====================================================== |
23 | 44 |
!!! THIS IS A TEMPLATE !!! |
24 |
|
|
45 |
|
|
25 | 46 |
In order to use it you must edit the 'url', 'username', 'password' |
26 | 47 |
and also 'driverClass' if you are not using mySQL. |
27 | 48 |
======================================================--> |
28 |
|
|
49 |
|
|
29 | 50 |
<!-- the default data sources can be mapped to a specific URL root folder --> |
30 | 51 |
<bean id="myCDMServerInstance1" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource"> |
31 | 52 |
<property name="driverClass" value="com.mysql.jdbc.Driver"/> |
... | ... | |
34 | 55 |
<property name="jdbcUrl" value="jdbc:mysql://192.168.1.100/myCDMdatabase_1"/> |
35 | 56 |
</bean> |
36 | 57 |
<!-- additional data sources mapped to other URL rot folders --> |
37 |
<!--
|
|
58 |
<!-- |
|
38 | 59 |
<bean id="myCDMServerInstance2" lazy-init="true" class="com.mchange.v2.c3p0.ComboPooledDataSource"> |
39 | 60 |
<property name="driverClass" value="com.mysql.jdbc.Driver"/> |
40 | 61 |
<property name="user" value="user"/> |
src/main/webapp/manage/index.jsp | ||
---|---|---|
82 | 82 |
String oddOrEven = i % 2 == 0 ? "odd" : "even"; |
83 | 83 |
String noBottomBorder = props.getStatus().equals(CdmInstanceProperties.Status.error) ? " style=\"border-bottom:none;\"" : ""; |
84 | 84 |
|
85 |
out.append("<tr id=\""+basePath+"\" class=\"entry " + oddOrEven + "\" " +noBottomBorder+ ">"); |
|
86 |
out.append("<td class=\"base-url\"><a href=\"" + fullURL + "\">" + basePath + "</a></td>"); |
|
87 |
out.append("<td class=\"test-url\"><a href=\"" + fullURL + "/portal/classification\">Test</a></td>"); |
|
85 |
out.append("<tr id=\""+basePath+"\" class=\"entry " + oddOrEven + "\" " +noBottomBorder+ ">");
|
|
86 |
out.append("<td class=\"base-url\"><a href=\"" + fullURL + "\">" + basePath + "</a></td>");
|
|
87 |
out.append("<td class=\"test-url\"><a href=\"" + fullURL + "/portal/classification\">Test</a></td>");
|
|
88 | 88 |
out.append("<td class=\"db-url\">" + props.getUrl() + "</td>"); |
89 | 89 |
out.append("<td class=\"status " + props.getStatus() + "\">" + props.getStatus() + "</td>"); |
90 | 90 |
|
Also available in: Unified diff
fixing #2966 (windows installer is no longer being build)