0.1.1 • Published 10 years ago

gulp-filter-java-properties v0.1.1

Weekly downloads
42
License
MIT
Repository
github
Last release
10 years ago

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