* fix Bundlor setup * removed dependency to Commons Lang
git-svn-id: svn+ssh://svn.synyx.de/var/svn/synyx/opensource/hera/trunk@11639 5a64d73e-33d6-4ccc-9058-23f8668ecac9
This commit is contained in:
@@ -11,10 +11,6 @@
|
||||
<version>0.7.0.BUILD-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<properties>
|
||||
<spring.version>2.5.6.SEC01</spring.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
||||
<dependency>
|
||||
|
||||
@@ -7,4 +7,5 @@ Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Export-Template:
|
||||
${project.artifactId}.*;version="${project.version}"
|
||||
Import-Template:
|
||||
org.springframework.*;version="${spring.version:[=.=.=.=,+2.0.0)}"
|
||||
org.springframework.*;version="${spring.version:[=.=.=.=,+2.0.0)}",
|
||||
org.w3c.dom.*;version="0.0.0"
|
||||
|
||||
@@ -18,11 +18,11 @@
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
<!-- <dependency>-->
|
||||
<!-- <groupId>commons-lang</groupId>-->
|
||||
<!-- <artifactId>commons-lang</artifactId>-->
|
||||
<!-- <version>2.4</version>-->
|
||||
<!-- </dependency>-->
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -16,8 +16,7 @@
|
||||
|
||||
package org.synyx.hera.metadata;
|
||||
|
||||
import org.apache.commons.lang.ObjectUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import static org.springframework.util.ObjectUtils.*;
|
||||
|
||||
|
||||
/**
|
||||
@@ -86,15 +85,18 @@ public class SimplePluginMetadata implements PluginMetadata {
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!(obj instanceof PluginMetadata)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
PluginMetadata that = (PluginMetadata) obj;
|
||||
|
||||
boolean sameName = StringUtils.equals(this.getName(), that.getName());
|
||||
boolean sameVersion =
|
||||
StringUtils.equals(this.getName(), that.getName());
|
||||
boolean sameName = nullSafeEquals(this.getName(), that.getName());
|
||||
boolean sameVersion = nullSafeEquals(this.getName(), that.getName());
|
||||
|
||||
return sameName && sameVersion;
|
||||
}
|
||||
@@ -108,6 +110,6 @@ public class SimplePluginMetadata implements PluginMetadata {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
||||
return ObjectUtils.hashCode(name) + ObjectUtils.hashCode(version);
|
||||
return nullSafeHashCode(name) + nullSafeHashCode(version);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,15 +5,7 @@ Bundle-Vendor: Synyx GmbH & Co. KG
|
||||
Bundle-Version: ${project.version}
|
||||
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||
Export-Template:
|
||||
org.synyx.hades.*;version="${project.version}"
|
||||
${project.artifactId}.*;version="${project.version}"
|
||||
Import-Template:
|
||||
javax.persistence.*;version="[1.0.0,1.1.0)",
|
||||
org.aopalliance.*;version="[1.0.0,2.0.0)",
|
||||
org.apache.commons.logging.*;version="[1.1.0,1.2.0)",
|
||||
org.aspectj.lang.*;version="[1.6.0,1.7.0)",
|
||||
org.eclipse.persistence.*;version="[1.0.0,1.2.0)";resolution:=optional,
|
||||
org.hibernate.*;version="[3.2.0,3.4.0)";resolution:=optional,
|
||||
org.apache.openjpa.*;version="[1.2.1,2.0.0)";resolution:=optional,
|
||||
org.joda.time.*;version="[1.5.0,2.0.0)",
|
||||
org.springframework.*;version="[2.5.0,4.0.0)",
|
||||
org.w3c.dom.*;version="0.0.0"
|
||||
org.synyx.hera.core.*;version="${project.version:[=.=.=.=,+1.0.0)}",
|
||||
org.springframework.*;version="${spring.version:[=.=.=.=,+2.0.0)}"
|
||||
|
||||
7
pom.xml
7
pom.xml
@@ -18,6 +18,10 @@
|
||||
<module>core</module>
|
||||
<module>metadata</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<spring.version>2.5.6.SEC02</spring.version>
|
||||
</properties>
|
||||
|
||||
<developers>
|
||||
<developer>
|
||||
@@ -160,6 +164,9 @@
|
||||
<phase>process-classes</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<failOnWarnings>true</failOnWarnings>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
|
||||
Reference in New Issue
Block a user