Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
raydac committed Jan 13, 2024
1 parent e406c59 commit 7d4c26b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![Logo](assets/github1280x640.png)

[![License Apache 2.0](https://img.shields.io/badge/license-Apache%20License%202.0-green.svg)](http://www.apache.org/licenses/LICENSE-2.0)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jcp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.1.0|jar)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jcp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.1.1|jar)
[![Java 1.8+](https://img.shields.io/badge/java-1.8%2b-green.svg)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)
[![Maven 3.0+](https://img.shields.io/badge/maven-3.0%2b-green.svg)](https://maven.apache.org/)
[![Gradle 3.0+](https://img.shields.io/badge/gradle-3.0%2b-green.svg)](https://gradle.org/)
Expand All @@ -11,19 +11,19 @@

# Changelog

__7.1.1 (13-jan-2024)__

- fixed NPE for empty or null global variable value in Maven and
Gradle [#47](https://github.com/raydac/java-comment-preprocessor/issues/47)
- updated dependencies

__7.1.0 (10-dec-2023)__

- refactoring of internal API
- updated dependencies
- improved keep comments processing, added `/M:<type>` CLI
option [#46](https://github.com/raydac/java-comment-preprocessor/issues/46)

__7.0.5 (11-dec-2021)__

- fixed compatibility with Gradle 7.x
- added support of build under JDK 16
- updated dependencies

[Full changelog](https://github.com/raydac/java-comment-preprocessor/blob/master/changelog.txt)

# Introduction
Expand Down Expand Up @@ -58,7 +58,7 @@ The preprocessor has been published in [the Maven Central](https://search.maven.
<plugin>
<groupId>com.igormaznitsa</groupId>
<artifactId>jcp</artifactId>
<version>7.1.0</version>
<version>7.1.1</version>
<executions>
<execution>
<id>preprocessSources</id>
Expand All @@ -77,13 +77,13 @@ The preprocessor has been published in [the Maven Central](https://search.maven.
# How to use from command line
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:
```
java -jar jcp-7.1.0.jar --i:./test --o:./result
java -jar jcp-7.1.1.jar --i:./test --o:./result
```
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)

More complex example:
```
java -jar jcp-7.1.0.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
java -jar jcp-7.1.1.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
```
- --c clear the destination folder before work
- --r remove all Java-style comments from preprocessed result files
Expand Down Expand Up @@ -142,6 +142,6 @@ In opposite a regular document, a Java document has as minimum two sections - pr
# How to remove all comments from sources
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:
```
java -jar ./jcp-7.1.0.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
java -jar ./jcp-7.1.1.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
```

4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
__7.1.1 (13-jan-2024)__
- fixed NPE for empty or null global variable value in Maven and Gradle [#47](https://github.com/raydac/java-comment-preprocessor/issues/47)
- updated dependencies

__7.1.0 (10-dec-2023)__

- refactoring of internal API
Expand Down

0 comments on commit 7d4c26b

Please sign in to comment.