All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.bnd.build.model.conversions.PropertiesConverter Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package aQute.bnd.build.model.conversions;

import java.util.HashMap;
import java.util.Map;

import aQute.bnd.header.OSGiHeader;

public class PropertiesConverter implements Converter,String> {

	public Map convert(String input) throws IllegalArgumentException {
		if (input == null)
			return null;
		return OSGiHeader.parseProperties(input);
	}

	@Override
	public Map error(String msg) {
		HashMap result = new HashMap();
		result.put("ERROR", msg);
		return result;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy