Skip to content

Commit 6794d5c

Browse files
committed
Improve about info
1 parent 496982e commit 6794d5c

File tree

5 files changed

+75
-7
lines changed

5 files changed

+75
-7
lines changed
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1-
aboutText=Eclipse PMD Plugin\n\
2-
\n\
3-
(c) 1997-2024 PMD Team\n\
4-
https://pmd.github.io
5-
1+
# about.ini
2+
# contains information about a feature
3+
# java.io.Properties file (ISO 8859-1 with "\" escapes)
4+
# "%key" are externalized strings defined in about.properties
5+
# This file does not need to be translated.
6+
7+
# Property "aboutText" contains blurb for "About" dialog (translated)
8+
aboutText=%blurb
9+
10+
# Property "featureImage" contains path to feature image (32x32)
611
featureImage=icons/pmd-icon-32.gif
7-
8-
welcomePage=$nl$/welcome.xml
12+
13+
# Property "welcomePage" contains path to welcome page (special XML-based format)
14+
# optional
15+
welcomePage=$nl$/welcome.xml
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# about.mappings
2+
# contains fill-ins for about.properties
3+
# java.io.Properties file (ISO 8859-1 with "\" escapes)
4+
# This file does not need to be translated.
5+
6+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# about.properties
2+
# contains externalized strings for about.ini
3+
# java.io.Properties file (ISO 8859-1 with "\" escapes)
4+
# fill-ins are supplied by about.mappings
5+
# This file should be translated.
6+
7+
blurb=Eclipse PMD Plugin\n\
8+
\n\
9+
Version: {featureVersion}\n\
10+
PMD Version: {0}\n\
11+
\n\
12+
(c) 1997-2024 PMD for Eclipse Development Team\n\
13+
Visit https://pmd.github.io and https://github.com/pmd/pmd-eclipse-plugin\n\

net.sourceforge.pmd.eclipse.plugin/build.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ bin.includes = .,\
1212
plugin_tr.properties,\
1313
schema/,\
1414
about.ini,\
15+
about.mappings,\
16+
about.properties,\
1517
toc.xml,\
1618
welcome.xml,\
1719
doc/,\

net.sourceforge.pmd.eclipse.plugin/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,46 @@
171171
</execution>
172172
</executions>
173173
</plugin>
174+
<plugin>
175+
<groupId>org.apache.maven.plugins</groupId>
176+
<artifactId>maven-resources-plugin</artifactId>
177+
<executions>
178+
<execution>
179+
<id>process-about.mappings</id>
180+
<phase>prepare-package</phase>
181+
<configuration>
182+
<outputDirectory>${project.build.directory}</outputDirectory>
183+
<overwrite>true</overwrite>
184+
<resources>
185+
<resource>
186+
<directory>${basedir}</directory>
187+
<includes>
188+
<include>about.mappings</include>
189+
</includes>
190+
<filtering>true</filtering>
191+
</resource>
192+
</resources>
193+
</configuration>
194+
<goals>
195+
<goal>copy-resources</goal>
196+
</goals>
197+
</execution>
198+
</executions>
199+
</plugin>
200+
<plugin>
201+
<groupId>org.eclipse.tycho</groupId>
202+
<artifactId>tycho-packaging-plugin</artifactId>
203+
<configuration>
204+
<additionalFileSets>
205+
<fileSet>
206+
<directory>${project.build.directory}</directory>
207+
<includes>
208+
<include>about.mappings</include>
209+
</includes>
210+
</fileSet>
211+
</additionalFileSets>
212+
</configuration>
213+
</plugin>
174214
</plugins>
175215
<pluginManagement>
176216
<plugins>

0 commit comments

Comments
 (0)