Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added a RPlayNoGui class that runs Rplay without GUI.

  • Loading branch information...
commit c12870bef7b2578ad7be9e10edb6bc4d75f47a1f 1 parent 287dc13
Lézoray jblezoray authored
BIN  Binaries/Rplay.jar
View
Binary file not shown
6 build.xml
View
@@ -45,6 +45,12 @@
</target>
<target name="run">
+ <!--
+ <java fork="true" classname="RPlayNoGui">
+ <classpath path="${dist_jar}"/>
+ <arg value="myAirport"/>
+ </java>
+ -->
<java fork="true" classname="Rplay">
<classpath path="${dist_jar}"/>
</java>
19 src/RPlayNoGui.java
View
@@ -0,0 +1,19 @@
+
+public class RPlayNoGui {
+
+
+ private static final void usage() {
+ System.err.println("Java port of shairport.");
+ System.err.println("usage : ");
+ System.err.println(" java "+RPlayNoGui.class.getCanonicalName()+" <AP_name>");
+ }
+
+ public static void main(String[] args) {
+ if (args.length != 1 && args[1].length()>1) {
+ usage();
+ System.exit(-1);
+ }
+ new LaunchThread(args[0]).start();
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.