gulp-filter-java-properties

0.1.1 • Public • Published

gulp-filter-java-properties

NPM version Build Status

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.

License

MIT License

Package Sidebar

Install

npm i gulp-filter-java-properties

Weekly Downloads

5

Version

0.1.1

License

MIT

Last publish

Collaborators

  • samolsen