Skip to content

Commit

Permalink
release 7.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
raydac committed Sep 13, 2020
1 parent 13b87da commit f92667d
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 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.0.2|jar)
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jcp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.0.3|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 @@ -10,7 +10,7 @@
[![Yandex.Money donation](https://img.shields.io/badge/donation-Я.деньги-yellow.svg)](http://yasobe.ru/na/iamoss)

# Changelog
__7.0.3 (SNAPSHOT)__
__7.0.3 (13-sep-2020)__
- added way to get info about all input and produced files from preprocessor context
- reworked Gradle plug-in
- refactoring, removed some auxiliary plugins from build process and extra code
Expand Down Expand Up @@ -46,7 +46,7 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
<plugin>
<groupId>com.igormaznitsa</groupId>
<artifactId>jcp</artifactId>
<version>7.0.2</version>
<version>7.0.3</version>
<executions>
<execution>
<id>preprocessSources</id>
Expand All @@ -65,13 +65,13 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
# How to use from command line
The Preprocessor jar can be started under Java as a console application. Let's take a look at short example below how to start in command line under Linux The Easy variant of usage:
```
java -jar jcp-7.0.2.jar --i:./test --o:./result
java -jar jcp-7.0.3.jar --i:./test --o:./result
```
The Example just preprocess files from ./test folder which extensions allowed to be preprocessed by default, and places result into ./result folder, but keep in your mind that the preprocessor copies not all files, XML files will not be preprocessed by default. Files which extension are not marked for preprocessing will be just copied (of course if the extensions is not in the list of excluded file extensions)

More complex example:
```
java -jar jcp-7.0.2.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
java -jar jcp-7.0.3.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 @@ -130,5 +130,5 @@ In opposite a regular document, a Java document has as minimum two sections - pr
# How to remove all coments from sources
Sometime it is very useful to remove totally all comments from sources, such possiblitiy was included into JCP and can be activated through special flag or command line switcher. The Example of use for comment removing through CLI interface
```
java -jar ./jcp-7.0.2.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
java -jar ./jcp-7.0.3.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
```
18 changes: 9 additions & 9 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
7.0.3 (SNAPSHOT)
7.0.3 (13-sep-2020)
- added way to get info about all input and produced files from preprocessor context
- reworked Gradle plug-in
- refactoring, removed some auxiliary plugins from build process and extra code

7.0.2 (15 jul 2019)
7.0.2 (15-jul-2019)
- fixed leaks of system scoped dependencies in generated pom.xml

7.0.1 (19 apr 2019)
7.0.1 (19-apr-2019)
- minor refactoring

7.0.0 (31 mar 2019)
7.0.0 (31-mar-2019)
- reworked some parameters for Maven and ANT plug-ins
- added embedded Gradle plugin `com.igormaznitsa.jcp`
- removed maven `clear` goal
Expand All @@ -20,21 +20,21 @@
- minimal needed Java version changed to 1.8
- refactoring

6.1.4 (16 jun 2018)
6.1.4 (16-jun-2018)
- removed dependencies to meta packages (their sources moved into project) #19

6.1.3 (29 apr 2018)
6.1.3 (29-apr-2018)
- added automatic module name `igormaznitsa.jcp`
- CORE: added `/U` key to turn on mode to interpret unknown variables as FALSE (in Maven and ANT `unknownVarAsFalse`), [#17](https://github.com/raydac/java-comment-preprocessor/issues/17)

6.1.2 (02 apr 2017)
6.1.2 (02-apr-2017)
- CORE: added STR TRIMLINES(STR) function to trim lines represented as string and removing empty lines
- CORE: added `/A` command line option (`copyFileAttributes` in Maven and ANT) to copy file attributes
- CORE: added `/ED:` command line option to exclude sub-folders from preprocessing (`excludedFolders` in Maven and ANT) with ANT pattern support.
- CORE: added `/PI` command line flag (`preserveIndent` in Maven and ANT), turn on mode to preserve indent when removing `//$` and `//$$`, thanks to @jamuir
- CORE: comma in split lines in BINFILE function moved from the start of line to the end of the previous line (to increase compatibility with Go)

6.1.1 (11 feb 2017)
6.1.1 (11-feb-2017)
- MAVEN: information about imported maven properties will be shown only in either verbose mode or debug mode
- MAVEN: added auxiliary goal `preprocessTests` which provides flag `useTestSources` as true and activated by default in GENERATE_TEST_SOURCES phase #14
- MAVEN: added 'ignoreMissingSources' boolean parameter, allows to skip preprocessing if source folders not found or not provided #12
Expand All @@ -43,7 +43,7 @@
- CORE: added `STR str2go(STR)` function to escape strings to be represented in Golang sources
- CORE: improved the BINFILE function, it allows `base64|byte[]|uint8[]|int8` and modifiers `s|d|ds|sd` where s - means splitting to lines and d - means deflate compression

6.1.0 (03 jul 2016)
6.1.0 (03-jul-2016)
- implemented request #9, added support of whitespace between directive and comment, in command line it is `--es` option and in MAVEN and ANT it is boolean parameter `allowWhitespace`, by default it is turned off
- added function STR binfile(STR,STR) to load a bin file as encoded base64 or java byte array string
- changes in Preprocessor API, removed usage of null instead of PreprocessorContext or PreprocessingState as argument for many methods, improved tests
Expand Down
2 changes: 1 addition & 1 deletion jcp-tests/jcp-test-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {
flatDir dirs: "../../jcp/target"
}
dependencies {
classpath "com.igormaznitsa:jcp:7.0.3-SNAPSHOT"
classpath "com.igormaznitsa:jcp:7.0.3"
}
}

Expand Down
2 changes: 1 addition & 1 deletion jcp-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jcp.test.version>7.0.3-SNAPSHOT</jcp.test.version>
<jcp.test.version>7.0.3</jcp.test.version>
<junit.version>5.4.2</junit.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
Expand Down
2 changes: 1 addition & 1 deletion jcp/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.igormaznitsa</groupId>
<artifactId>jcp-pom</artifactId>
<version>7.0.3-SNAPSHOT</version>
<version>7.0.3</version>
</parent>

<artifactId>jcp</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<plugin>
<groupId>com.igormaznitsa</groupId>
<artifactId>jcp</artifactId>
<version>7.0.3-SNAPSHOT</version>
<version>7.0.3</version>
<goals>
<goal>preprocess</goal>
</goals>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.igormaznitsa</groupId>
<artifactId>jcp-pom</artifactId>
<version>7.0.3-SNAPSHOT</version>
<version>7.0.3</version>
<packaging>pom</packaging>

<url>https://github.com/raydac/java-comment-preprocessor</url>
Expand Down

0 comments on commit f92667d

Please sign in to comment.