using default file on no argument (allows easier JWS interaction)

This commit is contained in:
Brian Matzon 2003-06-17 21:22:16 +00:00
parent 1cdc9f9b15
commit fa26d83aae
2 changed files with 4 additions and 4 deletions

View File

@ -65,8 +65,8 @@ public class MovingSoundTest extends BasicTest {
*/
protected void execute(String[] args) {
if (args.length < 1) {
System.out.println("please specify filename to play");
return;
System.out.println("no argument supplied, assuming Footsteps.wav");
args = new String[] {"Footsteps.wav"};
}
try {

View File

@ -59,8 +59,8 @@ public class PlayTest extends BasicTest {
*/
protected void execute(String[] args) {
if(args.length < 1) {
System.out.println("please specify filename to play");
return;
System.out.println("no argument supplied, assuming Footsteps.wav");
args = new String[] {"Footsteps.wav"};
}
int lastError;