Skip to content

Commit 242d586

Browse files
committed
release 7.0.4
1 parent c64d37a commit 242d586

File tree

7 files changed

+31
-17
lines changed

7 files changed

+31
-17
lines changed

README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,37 @@
11
![Logo](assets/github1280x640.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://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jcp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.0.3|jar)
4+
[![Maven central](https://maven-badges.herokuapp.com/maven-central/com.igormaznitsa/jcp/badge.svg)](http://search.maven.org/#artifactdetails|com.igormaznitsa|jcp|7.0.4|jar)
55
[![Java 1.8+](https://img.shields.io/badge/java-1.8%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 3.0+](https://img.shields.io/badge/gradle-3.0%2b-green.svg)](https://gradle.org/)
88
[![Ant 1.8.2+](https://img.shields.io/badge/ant-1.8.2%2b-green.svg)](http://ant.apache.org/)
99
[![PayPal donation](https://img.shields.io/badge/donation-PayPal-red.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AHWJHJFBAWGL2)
10-
[![Yandex.Money donation](https://img.shields.io/badge/donation-Я.деньги-yellow.svg)](http://yasobe.ru/na/iamoss)
10+
[![Yandex.Money donation](https://img.shields.io/badge/donation-Я.деньги-yellow.svg)](http://yasobe.ru/na/iamoss)
1111

1212
# Changelog
13+
14+
__7.0.4 (26-ыуз-2020)__
15+
16+
- fixed default flag state `keep comments` for start in CLI
17+
mode [#24](https://github.com/raydac/java-comment-preprocessor/issues/24)
18+
- fixed working directory detection in CLI mode
19+
1320
__7.0.3 (13-sep-2020)__
14-
- added way to get info about all input and produced files from preprocessor context
15-
- reworked Gradle plug-in, removed extension and now properties should be directly provided for task [#21](https://github.com/raydac/java-comment-preprocessor/issues/21)
16-
- refactoring, removed some auxiliary plugins from build process and extra code
1721

18-
__7.0.2 (15 jul 2019)__
19-
- fixed leaks of system scoped dependencies in generated pom.xml
22+
- added way to get info about all input and produced files from preprocessor context
23+
- reworked Gradle plug-in, removed extension and now properties should be directly provided for
24+
task [#21](https://github.com/raydac/java-comment-preprocessor/issues/21)
25+
- refactoring, removed some auxiliary plugins from build process and extra code
2026

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

2329
# Introduction
24-
Since 2001 I was strongly involved in development for J2ME mobile devices, it was too expensive to support the same sources for different devices if to use standard Java OOP approach, so that I choosed C/C++ approach and developed preprocessor which made my life much easier. Inintially it was a proprietary project but since 2011 it became OSS project.
30+
31+
Since 2001 I was strongly involved in development for J2ME mobile devices, it was too expensive to support the same
32+
sources for different devices if to use standard Java OOP approach, so that I choosed C/C++ approach and developed
33+
preprocessor which made my life much easier. Inintially it was a proprietary project but since 2011 it became OSS
34+
project.
2535

2636
I guess, at present it is the most powerful Java preprocessor with support of two-pass preprocessing, document part support, loops and even use XML files as data sources ([I generated static files with it](jcp-tests/jcp-test-static-site)). Now it is implemented as a fat-jar and includes Maven, ANT and Gradle interfaces and can be used with these tools. For work it needs JDK 1.8+.
2737

@@ -46,7 +56,7 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
4656
<plugin>
4757
<groupId>com.igormaznitsa</groupId>
4858
<artifactId>jcp</artifactId>
49-
<version>7.0.3</version>
59+
<version>7.0.4</version>
5060
<executions>
5161
<execution>
5262
<id>preprocessSources</id>
@@ -65,13 +75,13 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
6575
# How to use from command line
6676
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:
6777
```
68-
java -jar jcp-7.0.3.jar --i:./test --o:./result
78+
java -jar jcp-7.0.4.jar --i:./test --o:./result
6979
```
7080
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)
7181

7282
More complex example:
7383
```
74-
java -jar jcp-7.0.3.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
84+
java -jar jcp-7.0.4.jar --c --r --v --f:java,xml --ef:none --i:./test --o:./result '--p:HelloWorld=$Hello world$'
7585
```
7686
- --c clear the destination folder before work
7787
- --r remove all Java-style comments from preprocessed result files
@@ -130,5 +140,5 @@ In opposite a regular document, a Java document has as minimum two sections - pr
130140
# How to remove all coments from sources
131141
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
132142
```
133-
java -jar ./jcp-7.0.3.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
143+
java -jar ./jcp-7.0.4.jar --i:/sourceFolder --o:/resultFolder -ef:none --r
134144
```

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
7.0.4 (26-ыуз-2020)
2+
- fixed default flag state `keep comments` for start in CLI mode [#24](https://github.com/raydac/java-comment-preprocessor/issues/24)
3+
- fixed working directory detection in CLI mode
4+
15
7.0.3 (13-sep-2020)
26
- added way to get info about all input and produced files from preprocessor context
37
- reworked Gradle plug-in, removed extension and now properties should be directly provided for task [#21](https://github.com/raydac/java-comment-preprocessor/issues/21)

jcp-tests/jcp-test-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
flatDir dirs: "../../jcp/target"
44
}
55
dependencies {
6-
classpath "com.igormaznitsa:jcp:7.0.4-SNAPSHOT"
6+
classpath "com.igormaznitsa:jcp:7.0.4"
77
}
88
}
99

jcp-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<jcp.test.version>7.0.4-SNAPSHOT</jcp.test.version>
12+
<jcp.test.version>7.0.4</jcp.test.version>
1313
<junit.version>5.4.2</junit.version>
1414
<maven.compiler.source>1.8</maven.compiler.source>
1515
<maven.compiler.target>1.8</maven.compiler.target>

jcp/pom.xml

Lines changed: 1 addition & 1 deletion
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.0.4-SNAPSHOT</version>
8+
<version>7.0.4</version>
99
</parent>
1010

1111
<artifactId>jcp</artifactId>

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.4-SNAPSHOT</version>
23+
<version>7.0.4</version>
2424
<goals>
2525
<goal>preprocess</goal>
2626
</goals>

pom.xml

Lines changed: 1 addition & 1 deletion
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.0.4-SNAPSHOT</version>
8+
<version>7.0.4</version>
99
<packaging>pom</packaging>
1010

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

0 commit comments

Comments
 (0)