Permalink
Browse files

added a RPlayNoGui class that runs Rplay without GUI.

  • Loading branch information...
1 parent 287dc13 commit c12870bef7b2578ad7be9e10edb6bc4d75f47a1f @jblezoray jblezoray committed Jun 28, 2011
Showing with 25 additions and 0 deletions.
  1. BIN Binaries/Rplay.jar
  2. +6 −0 build.xml
  3. +19 −0 src/RPlayNoGui.java
View
Binary file not shown.
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>
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();
+ }
+
+}

0 comments on commit c12870b

Please sign in to comment.