Permalink
Browse files

updated and cleaned project resources and switched test dependencies …

…to current versions.

Signed-off-by: Kai Kreuzer <kai@openhab.org>
  • Loading branch information...
kaikreuzer committed Jul 31, 2015
1 parent 2810113 commit 0a4221aeafbff33039c4c96a7cbe850d5e0b0c84
@@ -1,10 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
@@ -1,4 +1,3 @@
#Tue Nov 16 18:28:25 PST 2010
eclipse.preferences.version=1
org.eclipse.jdt.core.codeComplete.argumentPrefixes=
org.eclipse.jdt.core.codeComplete.argumentSuffixes=
@@ -1,3 +1,5 @@
All changes from 3.4.2 onwards are found online at Github: https://github.com/openhab/jmdns/releases
CHANGELOG 28 June 2012 Pierre Frisch
Rev the source code to 3.4.2
Update service text - ID: 3400063
@@ -18,7 +18,12 @@ will redirect you, if necessary.
## Build Environment
TODO: we need to add a blurb here on how to build the project
The build is based on Maven, so you will need a JDK >=1.6 and Maven 3 installed.
Then simply execute
```
mvn clean install
```
and find the resulting jar in the `target` folder.
## Contribution guidelines

This file was deleted.

Oops, something went wrong.
@@ -7,11 +7,11 @@ Java Multicast Domain Name Server (JmDNS)
This project was originally developed by Arthur van Hoff under the GNU
Lesser General Public License as jRendevous. It was moved to Sourceforge
by Rick Blair and renamed to JmDNS with the Arthur's kind permission.
Currently it has been re-released under the Apache License, Version 2.0.
It has been re-released under the Apache License, Version 2.0.
In 2014, it has been moved from Sourceforge to Github by Kai Kreuzer
with the kind approval from Arthur and Rick.
Details of the Apache License, Version 2.0 can be found at:
http://www.apache.org/licenses/
For other details please see the README.txt file.
@@ -0,0 +1,78 @@
This library is licensed under the Apache License Version 2.0.
Please see the file [NOTICE.txt](NOTICE.txt).
Arthur van Hoff
avh@strangeberry.com
Rick Blair
rickblair@mac.com
Kai Kreuzer
kai@openhab.org
# JmDNS
This is an implemenation of multi-cast DNS in Java. It
supports service discovery and service registration. It is fully
interoperable with Apple's Bonjour.
## Running jmdns from the Command Line
GUI browser:
```
java -jar lib/jmdns.jar -browse
```
TTY browser for a particular service type:
```
java -jar lib/jmdns.jar -bs _http._tcp local.
```
Register a service:
```
java -jar lib/jmdns.jar -rs foobar _http._tcp local. 1234 path=index.html
```
List service types:
```
java -jar lib/jmdns.jar -bt
```
To print debugging output specify -d as the first argument.
## Sample Code for Service Registration
```
import javax.jmdns.*;
JmDNS jmdns = new JmDNS();
jmdns.registerService(
new ServiceInfo("_http._tcp.local.", "foo._http._tcp.local.", 1234, 0, 0, "path=index.html")
);
```
## Sample code for Serivice Discovery
```
import javax.jmdns.*;
static class SampleListener implements ServiceListener {
public void addService(JmDNS jmdns, String type, String name)
{
System.out.println("ADD: " + jmdns.getServiceInfo(type, name));
}
public void removeService(JmDNS jmdns, String type, String name)
{
System.out.println("REMOVE: " + name);
}
public void resolveService(JmDNS jmdns, String type, String name, ServiceInfo info)
{
System.out.println("RESOLVED: " + info);
}
}
JmDNS jmdns = new JmDNS();
jmdns.addServiceListener("_http._tcp.local.", new SampleListener());
```

This file was deleted.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 0a4221a

Please sign in to comment.