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.

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'
]));
Automate Native to Ascii Conversion with Gulp, 9.0 out of 10 based on 2 ratings