Skip to content

Commit 74a11a0

Browse files
committed
release 7.3.0
1 parent bd047d1 commit 74a11a0

File tree

9 files changed

+30
-23
lines changed

9 files changed

+30
-23
lines changed

README.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
![Logo](assets/banner.png)
22

33
[![License Apache 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)
4-
[![Maven central](https://img.shields.io/badge/maven%20central-7.2.1-green.svg)](https://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.2.1|jar)
4+
[![Maven central](https://img.shields.io/badge/maven%20central-7.3.0-green.svg)](https://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.3.0|jar)
55
[![Java 11+](https://img.shields.io/badge/java-11%2b-green.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
66
[![Maven 3.0+](https://img.shields.io/badge/maven-3.0%2b-green.svg)](https://maven.apache.org/)
77
[![Gradle 6.0+](https://img.shields.io/badge/gradle-6.0%2b-green.svg)](https://gradle.org/)
@@ -10,19 +10,21 @@
1010

1111
# Changelog
1212

13+
__7.3.0 (11-okt-2025)__
14+
15+
- added way to manipulate current JCP text buffers as string variables: `jcp.text.buffer.all`,`jcp.text.buffer.middle`,
16+
`jcp.text.buffer.prefix` and `jcp.text.buffer.postfix`
17+
- added way to find `PreprocessorExtension` and `SpecialVariableProcessor` among Java services
18+
- refactoring of API for `SpecialVariableProcessor` and `CommentTextProcessor`
19+
- replaced single string property `actionPreprocessorExtension` by string list `actionPreprocessorExtensions` to provide
20+
way for many preprocessor extensions.
21+
- internal refactoring mainly to provide way for multiple external services implementing extensions
22+
1323
__7.2.1 (21-jul-2025)__
1424

1525
- refactoring of CommentTextProcessor call
1626
- refactoring
1727

18-
__7.2.0 (13-jul-2025)__
19-
20-
- minimum JDK version 11
21-
- added support for external processors calls during uncommenting actions `//$` and `//$$`, processors can be provided
22-
as services
23-
- removed support of Gradle 5
24-
- updated dependencies
25-
2628
[Full changelog](https://github.com/raydac/java-comment-preprocessor/blob/master/changelog.txt)
2729

2830
# Introduction
@@ -57,7 +59,7 @@ The preprocessor has been published in [the Maven Central](https://search.maven.
5759
<plugin>
5860
<groupId>com.igormaznitsa</groupId>
5961
<artifactId>jcp</artifactId>
60-
<version>7.2.1</version>
62+
<version>7.3.0</version>
6163
<executions>
6264
<execution>
6365
<id>preprocessSources</id>
@@ -76,13 +78,13 @@ The preprocessor has been published in [the Maven Central](https://search.maven.
7678
# How to use from command line
7779
The uber-jar can be started directly under Java through CLI interface. Let's take a look at short example below how to start it in command line under Linux:
7880
```
79-
java -jar jcp-7.2.1.jar --i:./test --o:./result
81+
java -jar jcp-7.3.0.jar --i:./test --o:./result
8082
```
8183
The example above just preprocessing files from ./test folder (which extensions allowed to be preprocessed by default), and placing result files into ./result folder. Keep in your mind that the preprocessor processing not all files, for instance XML files will not be preprocessed by default. Files which extension not marked for preprocessing will be just copied (of course if the extensions is not in the excluded extension list)
8284

8385
More complex example:
8486
```
85-
java -jar jcp-7.2.1.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
87+
java -jar jcp-7.3.0.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
8688
```
8789
- --c clear the destination folder before work
8890
- --r remove all Java-style comments from preprocessed result files
@@ -141,6 +143,6 @@ In opposite a regular document, a Java document has as minimum two sections - pr
141143
# How to remove all comments from sources
142144
Sometimes it is very useful to remove totally all comments from sources, such possibility included into JCP and can be activated with either a special flag or command line switcher. The example below shows how to remove all comments with CLI use:
143145
```
144-
java -jar ./jcp-7.2.1.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
146+
java -jar ./jcp-7.3.0.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
145147
```
146148

changelog.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
__7.3.0 (SNAPSHOT)__
1+
__7.3.0 (11-okt-2025)__
22

33
- added way to manipulate current JCP text buffers as string variables: `jcp.text.buffer.all`,`jcp.text.buffer.middle`,`jcp.text.buffer.prefix` and `jcp.text.buffer.postfix`
44
- added way to find `PreprocessorExtension` and `SpecialVariableProcessor` among Java services
55
- refactoring of API for `SpecialVariableProcessor` and `CommentTextProcessor`
66
- replaced single string property `actionPreprocessorExtension` by string list `actionPreprocessorExtensions` to provide way for many preprocessor extensions.
7-
- internal refactoring
7+
- internal refactoring mainly to provide way for multiple external services implementing extensions
88

99
__7.2.1 (21-jul-2025)__
1010

jcp-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<packaging>pom</packaging>
99

1010
<properties>
11-
<jcp.test.version>7.3.0-SNAPSHOT</jcp.test.version>
11+
<jcp.test.version>7.3.0</jcp.test.version>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<junit.version>5.13.3</junit.version>
1414
<maven.compiler.source>11</maven.compiler.source>

jcp/pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.igormaznitsa</groupId>
77
<artifactId>jcp-pom</artifactId>
8-
<version>7.3.0-SNAPSHOT</version>
8+
<version>7.3.0</version>
99
</parent>
1010

1111
<artifactId>jcp</artifactId>
@@ -118,9 +118,10 @@
118118
<configuration>
119119
<!--<failOnError>false</failOnError>-->
120120
<source>${maven.compiler.release}</source>
121+
<legacyMode>true</legacyMode>
122+
<failOnError>false</failOnError>
121123
<sourceFileExcludes>
122124
<exclude>**/HelpMojo.java</exclude>
123-
<exclude>**/AntPathMatcher.java</exclude>
124125
</sourceFileExcludes>
125126
</configuration>
126127
</execution>

jcp/src/main/java/com/igormaznitsa/jcp/exceptions/FilePositionInfo.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ public int getLineNumber() {
7272
return this.stringIndex < 0 ? -1 : this.stringIndex + 1;
7373
}
7474

75+
public String toShortString() {
76+
return this.file.getName() + ':' + this.getLineNumber();
77+
}
78+
7579
@Override
7680
public String toString() {
7781
final String filePath = PreprocessorUtils.getFilePath(this.file);

jcp/src/site/markdown/examples/hello-world.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Just add the snippet into pom.xml
99
<plugin>
1010
<groupId>com.igormaznitsa</groupId>
1111
<artifactId>jcp</artifactId>
12-
<version>7.2.1</version>
12+
<version>7.3.0</version>
1313
<executions>
1414
<execution>
1515
<id>preprocessSources</id>

jcp/src/site/markdown/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Just add code-snippet below into build section and the plugin will be started du
1414
<plugin>
1515
<groupId>com.igormaznitsa</groupId>
1616
<artifactId>jcp</artifactId>
17-
<version>7.2.1</version>
17+
<version>7.3.0</version>
1818
<executions>
1919
<execution>
2020
<id>preprocess-sources</id>

jcp/src/test/resources/com/igormaznitsa/jcp/maven/test.pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<plugin>
2121
<groupId>com.igormaznitsa</groupId>
2222
<artifactId>jcp</artifactId>
23-
<version>7.0.6-SNAPSHOT</version>
23+
<version>7.3.0</version>
2424
<goals>
2525
<goal>preprocess</goal>
2626
</goals>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.igormaznitsa</groupId>
77
<artifactId>jcp-pom</artifactId>
8-
<version>7.3.0-SNAPSHOT</version>
8+
<version>7.3.0</version>
99
<packaging>pom</packaging>
1010

1111
<url>https://github.com/raydac/java-comment-preprocessor</url>
@@ -129,7 +129,7 @@
129129
<plugin>
130130
<groupId>org.apache.maven.plugins</groupId>
131131
<artifactId>maven-javadoc-plugin</artifactId>
132-
<version>3.2.0</version>
132+
<version>3.12.0</version>
133133
</plugin>
134134
<plugin>
135135
<groupId>org.apache.maven.plugins</groupId>

0 commit comments

Comments
 (0)