gulp-filter-java-properties2
gulp wrapper for the filter-java-properties Node package. Performs key-value string replacement, similar to the Maven Resources plugin.
Note: this repository clone from gulp-filter-java-properties and add extra properties support.
Usage
First, install gulp-filter-java-properties2
as a development dependency:
npm install --save-dev gulp-filter-java-properties2
Then, add it to your gulpfile.js
:
var filterProperties = ;var extraProperties = date: ; gulp ;
API
filter-java-properties2(options)
options.propertiesPath
Type: String
Required
Path to a .properties file. Path should be absolute, or relative to process.cwd()
.
options.extraProperties
Type: Object
Sample: {date: new Date()}
options.delimiters
Type: String
Default: ["${*}", "@"]
Delimiters to use for string filtering. More info.
Test
Run gulp test to execute simple test example
gulp test