You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 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
17
21
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
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.
25
35
26
36
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+.
27
37
@@ -46,7 +56,7 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
46
56
<plugin>
47
57
<groupId>com.igormaznitsa</groupId>
48
58
<artifactId>jcp</artifactId>
49
-
<version>7.0.3</version>
59
+
<version>7.0.4</version>
50
60
<executions>
51
61
<execution>
52
62
<id>preprocessSources</id>
@@ -65,13 +75,13 @@ The Preprocessor is published in the Maven Central (it is not published in Gradl
65
75
# How to use from command line
66
76
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:
67
77
```
68
-
java -jar jcp-7.0.3.jar --i:./test --o:./result
78
+
java -jar jcp-7.0.4.jar --i:./test --o:./result
69
79
```
70
80
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)
- --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
130
140
# How to remove all coments from sources
131
141
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
Copy file name to clipboardExpand all lines: changelog.txt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff 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
+
1
5
7.0.3 (13-sep-2020)
2
6
- added way to get info about all input and produced files from preprocessor context
3
7
- 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)
0 commit comments