File tree Expand file tree Collapse file tree
java/com/igormaznitsa/jcp Expand file tree Collapse file tree Original file line number Diff line number Diff line change 289289 <directory >src/main/resources</directory >
290290 <filtering >true</filtering >
291291 <includes >
292- <include >**/*.prop </include >
292+ <include >**/*.props </include >
293293 </includes >
294294 </resource >
295295 </resources >
Original file line number Diff line number Diff line change @@ -43,14 +43,16 @@ public final class InfoHelper {
4343 public static final String DELIMITER = "-------------------------------------------------" ;
4444 public static final String SHORT_DELIMITER = "----------------------" ;
4545
46- private static final String version ;
46+ public static final String VERSION ;
47+ public static final String URL ;
4748
4849 static {
49- final String path = "/jcpversion.properties " ;
50+ final String path = "/jcpversion.props " ;
5051 try (final InputStream stream = InfoHelper .class .getResourceAsStream (path )) {
5152 final Properties props = new Properties ();
5253 props .load (stream );
53- version = Objects .requireNonNull (props .getProperty ("version" ));
54+ VERSION = Objects .requireNonNull (props .getProperty ("version" ));
55+ URL = Objects .requireNonNull (props .getProperty ("url" ));
5456 } catch (IOException ex ) {
5557 throw new Error ("Can't read resource: " + path , ex );
5658 }
@@ -60,7 +62,7 @@ private InfoHelper() {
6062 }
6163
6264 public static String getVersion () {
63- return "v" + version ;
65+ return "v" + VERSION ;
6466 }
6567
6668
@@ -70,7 +72,7 @@ public static String getCopyright() {
7072
7173
7274 public static String getSite () {
73- return "Project page: https://github.com/raydac/java-comment-preprocessor" ;
75+ return "Project page: " + URL ;
7476 }
7577
7678
Original file line number Diff line number Diff line change 11version=${project.version}
2+ url=${project.url}
You can’t perform that action at this time.
0 commit comments