public LanguageBasePlugin(Instantiator instantiator, ModelRules modelRules) {
this.instantiator = instantiator;
this.modelRules = modelRules;
}
public void apply(final Project target) {
<BUG>target.getExtensions().create("libraries", DefaultLibraryContainer.class, instantiator);
</BUG>
target.getExtensions().create("sources", DefaultProjectSourceSet.class, instantiator);
final BinaryContainer binaries = target.getExtensions().create("binaries", DefaultBinaryContainer.class, instantiator);
modelRules.register("binaries", BinaryContainer.class, new Factory<BinaryContainer>() {

public LanguageBasePlugin(Instantiator instantiator, ModelRules modelRules) {
this.instantiator = instantiator;
this.modelRules = modelRules;
}
public void apply(final Project target) {
target.getExtensions().create("libraries", DefaultSoftwareComponentContainer.class, instantiator);
target.getExtensions().create("sources", DefaultProjectSourceSet.class, instantiator);
final BinaryContainer binaries = target.getExtensions().create("binaries", DefaultBinaryContainer.class, instantiator);
modelRules.register("binaries", BinaryContainer.class, new Factory<BinaryContainer>() {
