Automate Native to Ascii Conversion with Gulp

All of my recent projects use Javascript and Java together. Increasing I’m switching from Maven to Gulp for automation. I have now perform native to ascii conversion with gulp instead of maven and native2ascii tool of JDK.

[code language=”javascript”]var gulp = require(“gulp”);
var n2a = require(“gulp-native2ascii”);
var shell = require(“gulp-shell”);

gulp.task(“n2a”, function () {
gulp.src(“src/main/resources/i18n/reminders*.properties”)
.pipe(n2a({reverse: false}))
.pipe(gulp.dest(“src/main/resources/i18n/”));
});

gulp.task(“proguard”, shell.task([
‘../../proguard4.11/bin/proguard.sh @proguard.conf’
]));
[/code]

Leave a Reply

Your email address will not be published. Required fields are marked *