Skip to content

Commit 67d4a23

Browse files
committed
[bugfix] Improve the Elemental branding of the packaged Apps
1 parent 3bf9db6 commit 67d4a23

File tree

3 files changed

+5474
-1
lines changed

3 files changed

+5474
-1
lines changed

exist-distribution/pom.xml

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@
352352
<directory>src/dashboard</directory>
353353
<filtering>false</filtering>
354354
</resource>
355+
<resource>
356+
<directory>src/monex</directory>
357+
<filtering>false</filtering>
358+
</resource>
355359
</resources>
356360

357361
<plugins>
@@ -754,7 +758,7 @@
754758
</executions>
755759
</plugin>
756760

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 -->
758762
<plugin>
759763
<groupId>org.apache.maven.plugins</groupId>
760764
<artifactId>maven-antrun-plugin</artifactId>
@@ -788,6 +792,11 @@
788792
</goals>
789793
<configuration>
790794
<target>
795+
<replace file="${expath.pkg.dir}-dashboard-staging/admin.xql" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
796+
<replace file="${expath.pkg.dir}-dashboard-staging/build.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
797+
<replace file="${expath.pkg.dir}-dashboard-staging/doc.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
798+
<replace file="${expath.pkg.dir}-dashboard-staging/guest.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
799+
<replace file="${expath.pkg.dir}-dashboard-staging/index.html" token="title&gt;existdb-dashboard&lt;" value="title&gt;Dashboard :: Elemental&lt;" />
791800
<replace file="${expath.pkg.dir}-dashboard-staging/existdb-dashboard.html" token="existdb-web.svg" value="elemental-web.svg" />
792801
<loadfile property="elemental-web-svg" srcFile="${project.build.outputDirectory}/elemental-web.svg" />
793802
<replaceregexp file="${expath.pkg.dir}-dashboard-staging/bower_components/existdb-launcher/existdb-branding.html" match="&lt;svg.+&lt;/svg&gt;" replace="${elemental-web-svg}" />
@@ -811,6 +820,66 @@
811820
</target>
812821
</configuration>
813822
</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>
814883
</executions>
815884
</plugin>
816885

14.7 KB
Binary file not shown.

0 commit comments

Comments
 (0)