use of groovy.util.ObservableMap in project gradle by gradle.
the class DefaultAntBuilder method getReferences.
public Map<String, Object> getReferences() {
ObservableMap map = new ObservableMap(getProject().getReferences());
map.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
getProject().addReference(event.getPropertyName(), event.getNewValue());
}
});
@SuppressWarnings("unchecked") Map<String, Object> castMap = (Map<String, Object>) map;
return castMap;
}
use of groovy.util.ObservableMap in project gradle by gradle.
the class DefaultAntBuilder method getProperties.
public Map<String, Object> getProperties() {
ObservableMap map = new ObservableMap(getProject().getProperties());
map.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
doSetProperty(event.getPropertyName(), event.getNewValue());
}
});
@SuppressWarnings("unchecked") Map<String, Object> castMap = (Map<String, Object>) map;
return castMap;
}
Aggregations