|
352 | 352 | <directory>src/dashboard</directory>
|
353 | 353 | <filtering>false</filtering>
|
354 | 354 | </resource>
|
| 355 | + <resource> |
| 356 | + <directory>src/monex</directory> |
| 357 | + <filtering>false</filtering> |
| 358 | + </resource> |
355 | 359 | </resources>
|
356 | 360 |
|
357 | 361 | <plugins>
|
|
754 | 758 | </executions>
|
755 | 759 | </plugin>
|
756 | 760 |
|
757 |
| - <!-- Replace the eXist-db logo with the Elemental logo in the Dashboard XAR --> |
| 761 | + <!-- Replace the eXist-db logo with the Elemental logo in the Dashboard and Monex XAR files --> |
758 | 762 | <plugin>
|
759 | 763 | <groupId>org.apache.maven.plugins</groupId>
|
760 | 764 | <artifactId>maven-antrun-plugin</artifactId>
|
|
788 | 792 | </goals>
|
789 | 793 | <configuration>
|
790 | 794 | <target>
|
| 795 | + <replace file="${expath.pkg.dir}-dashboard-staging/admin.xql" token="title>existdb-dashboard<" value="title>Dashboard :: Elemental<" /> |
| 796 | + <replace file="${expath.pkg.dir}-dashboard-staging/build.html" token="title>existdb-dashboard<" value="title>Dashboard :: Elemental<" /> |
| 797 | + <replace file="${expath.pkg.dir}-dashboard-staging/doc.html" token="title>existdb-dashboard<" value="title>Dashboard :: Elemental<" /> |
| 798 | + <replace file="${expath.pkg.dir}-dashboard-staging/guest.html" token="title>existdb-dashboard<" value="title>Dashboard :: Elemental<" /> |
| 799 | + <replace file="${expath.pkg.dir}-dashboard-staging/index.html" token="title>existdb-dashboard<" value="title>Dashboard :: Elemental<" /> |
791 | 800 | <replace file="${expath.pkg.dir}-dashboard-staging/existdb-dashboard.html" token="existdb-web.svg" value="elemental-web.svg" />
|
792 | 801 | <loadfile property="elemental-web-svg" srcFile="${project.build.outputDirectory}/elemental-web.svg" />
|
793 | 802 | <replaceregexp file="${expath.pkg.dir}-dashboard-staging/bower_components/existdb-launcher/existdb-branding.html" match="<svg.+</svg>" replace="${elemental-web-svg}" />
|
|
811 | 820 | </target>
|
812 | 821 | </configuration>
|
813 | 822 | </execution>
|
| 823 | + <execution> |
| 824 | + <id>unzip-monex</id> |
| 825 | + <phase>process-resources</phase> |
| 826 | + <goals> |
| 827 | + <goal>run</goal> |
| 828 | + </goals> |
| 829 | + <configuration> |
| 830 | + <target> |
| 831 | + <fileset id="monex-fileset" dir="${expath.pkg.dir}" includes="monex-*.xar" /> |
| 832 | + <pathconvert property="monex-xar-path" refid="monex-fileset" /> |
| 833 | + <unzip src="${monex-xar-path}" dest="${expath.pkg.dir}-monex-staging/"> |
| 834 | + <patternset> |
| 835 | + <exclude name="resources/img/exist_icon_16x16.ico" /> |
| 836 | + <exclude name="resources/img/existdb-logo.png" /> |
| 837 | + <exclude name="resources/img/powered-by-whiteglass.svg" /> |
| 838 | + </patternset> |
| 839 | + </unzip> |
| 840 | + </target> |
| 841 | + </configuration> |
| 842 | + </execution> |
| 843 | + <execution> |
| 844 | + <id>patch-monex</id> |
| 845 | + <phase>process-resources</phase> |
| 846 | + <goals> |
| 847 | + <goal>run</goal> |
| 848 | + </goals> |
| 849 | + <configuration> |
| 850 | + <target> |
| 851 | + <replace file="${expath.pkg.dir}-monex-staging/console.html" token="eXist once" value="" /> |
| 852 | + <replace file="${expath.pkg.dir}-monex-staging/login.html" token="exist_icon_16x16.ico" value="elemental-favicon.ico" /> |
| 853 | + <replace file="${expath.pkg.dir}-monex-staging/login.html" token="existdb-logo.png" value="elemental-web.svg" /> |
| 854 | + <replace file="${expath.pkg.dir}-monex-staging/profiling.html" token="any eXist interface" value="any interface" /> |
| 855 | + <replace file="${expath.pkg.dir}-monex-staging/remotes.html" token="eXist's scheduler" value="the scheduler" /> |
| 856 | + <replace file="${expath.pkg.dir}-monex-staging/remotes.html" token="remote eXist-db instances" value="remote instances" /> |
| 857 | + <replace file="${expath.pkg.dir}-monex-staging/remotes.html" token="the eXist instance" value="the instance" /> |
| 858 | + <replace file="${expath.pkg.dir}-monex-staging/remotes.html" token="eXist versions before" value="eXist-db versions before" /> |
| 859 | + <replace file="${expath.pkg.dir}-monex-staging/templates/page.html" token="exist_icon_16x16.ico" value="elemental-favicon.ico" /> |
| 860 | + <replace file="${expath.pkg.dir}-monex-staging/templates/page.html" token="existdb-logo.png" value="elemental-web.svg" /> |
| 861 | + <replace file="${expath.pkg.dir}-monex-staging/templates/page.html" token="powered-by-whiteglass.svg" value="elemental-web.svg" /> |
| 862 | + </target> |
| 863 | + </configuration> |
| 864 | + </execution> |
| 865 | + <execution> |
| 866 | + <id>zip-patched-monex</id> |
| 867 | + <phase>process-resources</phase> |
| 868 | + <goals> |
| 869 | + <goal>run</goal> |
| 870 | + </goals> |
| 871 | + <configuration> |
| 872 | + <target> |
| 873 | + <fileset id="monex-fileset" dir="${expath.pkg.dir}" includes="monex-*.xar" /> |
| 874 | + <pathconvert property="monex-xar-path" refid="monex-fileset" /> |
| 875 | + <zip destfile="${monex-xar-path}"> |
| 876 | + <fileset dir="${expath.pkg.dir}-monex-staging" /> |
| 877 | + <zipfileset dir="${project.build.outputDirectory}" includes="elemental-favicon.ico" fullpath="resources/img/elemental-favicon.ico" /> |
| 878 | + <zipfileset dir="${project.build.outputDirectory}" includes="elemental-web.svg" fullpath="resources/img/elemental-web.svg" /> |
| 879 | + </zip> |
| 880 | + </target> |
| 881 | + </configuration> |
| 882 | + </execution> |
814 | 883 | </executions>
|
815 | 884 | </plugin>
|
816 | 885 |
|
|
0 commit comments