|
@@ -30,7 +30,7 @@ namespace Usm {
|
|
|
public Properties? extra_properties { get; set; }
|
|
|
|
|
|
public static PropertyMapper<Manifest> get_mapper() {
|
|
|
- return new PropertyMapperBuilder<Manifest>()
|
|
|
+ return once<PropertyMapper<Manifest>>(() => new PropertyMapperBuilder<Manifest>()
|
|
|
.map<string>("name", o => o.name, (o, v) => o.name = v)
|
|
|
.map<string>("version", o => o.version.to_string(), (o, v) => o.version = new Version.from_string(v))
|
|
|
.map<string>("summary", o => o.summary, (o, v) => o.summary = v)
|
|
@@ -46,7 +46,7 @@ namespace Usm {
|
|
|
.map_with<Git>("git", o => o.git, (o, v) => o.git = v, Git.get_mapper(), false)
|
|
|
.map<Properties>("extras", o => o.extra_properties, (o, v) => o.extra_properties = v, false)
|
|
|
.set_constructor(() => new Manifest())
|
|
|
- .build();
|
|
|
+ .build());
|
|
|
}
|
|
|
|
|
|
private void build_provides_dict(Properties obj) throws Error {
|