Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added a RPlayNoGui class that runs Rplay without GUI.
- Loading branch information
Showing
3 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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(); | |||
} | |||
|
|||
} |