gulp-filter-java-properties
v0.1.1
Published
Gulp wrapper for the filter-java-properties Node pacakge
Downloads
9
Maintainers
Readme
gulp-filter-java-properties
gulp wrapper for the filter-java-properties Node package. Performs key-value string replacement, similar to the Maven Resources plugin.
Usage
First, install gulp-filter-java-properties
as a development dependency:
npm install --save-dev gulp-filter-java-properties
Then, add it to your gulpfile.js
:
var filterProperties = require("gulp-filter-java-properties");
gulp.src("./src/*.ext")
.pipe(filterProperties({
propertiesPath: "configure.properties",
delimiters: ["${*}", "@"] // optional, defaults shown
}))
.pipe(gulp.dest("./dist"));
API
filter-java-properties(options)
options.propertiesPath
Type: String
Required
Path to a .properties file. Path should be absolute, or relative to process.cwd()
.
options.delimiters
Type: String
Default: ["${*}", "@"]
Delimiters to use for string filtering. More info.