Skip to content

Commit

Permalink
added a RPlayNoGui class that runs Rplay without GUI.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblezoray committed Jun 28, 2011
1 parent 287dc13 commit c12870b
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
Binary file modified Binaries/Rplay.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions build.xml
Expand Up @@ -45,6 +45,12 @@
</target> </target>


<target name="run"> <target name="run">
<!--
<java fork="true" classname="RPlayNoGui">
<classpath path="${dist_jar}"/>
<arg value="myAirport"/>
</java>
-->
<java fork="true" classname="Rplay"> <java fork="true" classname="Rplay">
<classpath path="${dist_jar}"/> <classpath path="${dist_jar}"/>
</java> </java>
Expand Down
19 changes: 19 additions & 0 deletions src/RPlayNoGui.java
@@ -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.