aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2016-05-28 21:49:50 +0200
committerIngo Bauersachs <ingo@jitsi.org>2016-05-28 21:49:50 +0200
commit1fcac7e80a3e131013b712a1c381cea85de5595e (patch)
tree7e3018693832c6e4171df136ecace30653244f78
parent91ce10758cd2ebbad5a2e041609dc46d48495964 (diff)
downloadjitsi-1fcac7e80a3e131013b712a1c381cea85de5595e.zip
jitsi-1fcac7e80a3e131013b712a1c381cea85de5595e.tar.gz
jitsi-1fcac7e80a3e131013b712a1c381cea85de5595e.tar.bz2
Autogenerate the SPI service descriptor
-rw-r--r--build.xml7
-rw-r--r--m2/jitsi-dns/pom.xml5
-rw-r--r--m2/jitsi-util/pom.xml18
-rw-r--r--src/net/java/sip/communicator/util/services/sun.net.spi.nameservice.NameServiceDescriptor1
4 files changed, 26 insertions, 5 deletions
diff --git a/build.xml b/build.xml
index 48a0aa5..75bea81 100644
--- a/build.xml
+++ b/build.xml
@@ -1252,10 +1252,9 @@
<zipfileset dir="${dest}/net/java/sip/communicator/util"
prefix="net/java/sip/communicator/util">
</zipfileset>
- <zipfileset
- file="${src}/net/java/sip/communicator/util/services/sun.net.spi.nameservice.NameServiceDescriptor"
- prefix="META-INF/services"
- />
+ <service
+ type="sun.net.spi.nameservice.NameServiceDescriptor"
+ provider="net.java.sip.communicator.util.JitsiDnsNameServiceDescriptor"/>
</jar>
</target>
diff --git a/m2/jitsi-dns/pom.xml b/m2/jitsi-dns/pom.xml
index c8fc438..bbedef9 100644
--- a/m2/jitsi-dns/pom.xml
+++ b/m2/jitsi-dns/pom.xml
@@ -24,6 +24,11 @@
<!-- org.jitsi -->
<dependency>
<groupId>${project.groupId}</groupId>
+ <artifactId>dnssecjava</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>${project.groupId}</groupId>
<artifactId>jitsi-protocol</artifactId>
</dependency>
</dependencies>
diff --git a/m2/jitsi-util/pom.xml b/m2/jitsi-util/pom.xml
index a17620f..1a01006 100644
--- a/m2/jitsi-util/pom.xml
+++ b/m2/jitsi-util/pom.xml
@@ -60,9 +60,27 @@
</archive>
<includes>
<include>net/java/sip/communicator/util/**</include>
+ <include>META-INF/services/**</include>
</includes>
</configuration>
</plugin>
+ <plugin>
+ <groupId>eu.somatik.serviceloader-maven-plugin</groupId>
+ <artifactId>serviceloader-maven-plugin</artifactId>
+ <version>1.0.7</version>
+ <configuration>
+ <services>
+ <param>sun.net.spi.nameservice.NameServiceDescriptor</param>
+ </services>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</project>
diff --git a/src/net/java/sip/communicator/util/services/sun.net.spi.nameservice.NameServiceDescriptor b/src/net/java/sip/communicator/util/services/sun.net.spi.nameservice.NameServiceDescriptor
deleted file mode 100644
index ecdbbf2..0000000
--- a/src/net/java/sip/communicator/util/services/sun.net.spi.nameservice.NameServiceDescriptor
+++ /dev/null
@@ -1 +0,0 @@
-net.java.sip.communicator.util.JitsiDnsNameServiceDescriptor