Showing posts with label jcp. Show all posts
Showing posts with label jcp. Show all posts

Thursday, September 21, 2017

JDK 9 + JEP-238 + Maven + Preprocessor

I have made small example project to show how to use Java preprocessor and Maven to build multi-release JAR (as described in JEP-238) which is supported in JDK 9.
https://github.com/raydac/jep-238-jcp-example

Sunday, February 12, 2017

JCP 6.1.1 is out

New version of Java Comment Preprocessor 6.1.1 is out. In the New Version mainly improved maven options and improved some text functions to make it more compatible with GoLang.
Now it is possible preprocess GoLang and it is possible to load a binary file and represent it as a byte array through just only line command (see example)
var imageArray = []uint8{/*$binfile("./image.png","uint8[]")$*/}

Sunday, July 3, 2016

Java Comment Preprocessor 6.1.0

The New 6.1.0 version of Java Comment Preprocessor is out and published in Maven central. From main features of the new version I can distinguish
added option to enable whitespace between comment chars and directive, it 1) makes possible to write in such style
// #local VAR="hello"
also spaces will be allowed in //$$, //$ and /*-*/ directives
2) fixed bug in work with absolute path files
3) added function binfile(STR,STR) which converts binary files into text representation
Example:
byte[] TEXT=byte[]{/*$binfile("./file.bin","byte[]")$*/};
will be converted into
byte[] TEXT=byte[]{(byte)0x89,(byte)0x50,(byte)0x4E,(byte)0x47,(byte)0xD,(byte)0xA,(byte)0x1A,(byte)0xA};
it supports "base64","base64s" (it splits text to 80 char lines), "byte[]" and "byte[]s"

Tuesday, December 8, 2015

Java Comment Preprocessor 6.0.1

The New 6.0.1 version of Java Comment Preprocessor has been available in Maven Central

Friday, May 8, 2015

Preprocessing of gradle android projects

Made some investigation how to use JCP with Gradle for Android projects, looks it works well, I have written some wiki

Saturday, November 15, 2014

New version of Java Comment Preprocessor (5.3.4) is out

I have published on Maven central, the new 5.3.4 version of Java Comment Preprocessor. Minor bugfixing, minor improvements mainly in the maven related part, mainly added feature to clear preprocessed generated folders from maven and preprocess test folders.

Sunday, February 17, 2013

Java Comment Preprocessor 5.3

I am glad to notify all that the new 5.3 version of my Java Comment Preprocessor is out. It is the most powerful preprocessor for Java with support of Ant, Maven and CLI and I guess that it is the one of the oldest Java preprocessors. In the new version I have added the feature to keep preprocessed non-active strings as commented ones in the output to give the possibility to save the line numeration in the resulting sources. The Mode is turned on through the /k directive for CLI, or through the keepLines parameter for Maven and ANT.

Sunday, December 4, 2011

JCP 5.0 is out!!!

The Java Comment Preprocessor 5.0 has been published and can be downloaded from the project page http://code.google.com/p/java-comment-preprocessor/

Monday, November 21, 2011

Java Comment Preprocessor

I have moved my pet project called Java Comment Preprocessor from my home page to the Google Code service and currently the project page is http://code.google.com/p/java-comment-preprocessor/