import org.apache.commons.io.IOUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
-import org.argeo.slc.CategorizedNameVersion;
+import org.argeo.slc.CategoryNameVersion;
import org.argeo.slc.SlcException;
import org.argeo.slc.build.Distribution;
import org.argeo.slc.build.License;
import org.eclipse.aether.artifact.Artifact;
import org.eclipse.aether.artifact.DefaultArtifact;
import org.osgi.framework.Version;
-import org.springframework.beans.factory.BeanNameAware;
import aQute.bnd.osgi.Builder;
import aQute.bnd.osgi.Constants;
import aQute.bnd.osgi.Jar;
/** Utilities around the BND library, which manipulates OSGi metadata. */
-public class BndWrapper implements Constants, CategorizedNameVersion, Distribution, BeanNameAware {
+public class BndWrapper implements Constants, CategoryNameVersion, Distribution {
private final static Log log = LogFactory.getLog(BndWrapper.class);
private String groupId;
this.bndProperties = bndProperties;
}
- public void setBeanName(String name) {
- if (this.name == null) {
- this.name = name;
- } else {
- if (!name.contains("#"))
- log.warn("Using explicitely set name " + this.name + " and not bean name " + name);
- }
- }
-
public String getGroupId() {
return groupId;
}
@Override
public boolean equals(Object obj) {
- if (obj instanceof CategorizedNameVersion) {
- CategorizedNameVersion cnv = (CategorizedNameVersion) obj;
+ if (obj instanceof CategoryNameVersion) {
+ CategoryNameVersion cnv = (CategoryNameVersion) obj;
return getCategory().equals(cnv.getCategory()) && getName().equals(cnv.getName())
&& getVersion().equals(cnv.getVersion());
} else
this.doNotModify = doNotModify;
}
+ public Boolean getDoNotModify() {
+ return doNotModify;
+ }
+
}