mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 13:17:56 +00:00
36 lines
660 B
Java
36 lines
660 B
Java
package org.servalproject.test;
|
|
|
|
import org.servalproject.servaldna.ServalDCommand;
|
|
|
|
import java.util.Arrays;
|
|
|
|
class ServalDTests
|
|
{
|
|
public static void main(String... args)
|
|
{
|
|
try {
|
|
for (int i = 0; i != args.length; ++i)
|
|
if ("(null)".equals(args[i]))
|
|
args[i] = null;
|
|
|
|
int repeatCount=1;
|
|
|
|
if (args[0].equals("repeat")){
|
|
repeatCount = Integer.decode(args[1]);
|
|
args = Arrays.copyOfRange(args, 2, args.length);
|
|
}
|
|
|
|
while(repeatCount>0){
|
|
ServalDCommand.printCommand(""," ",args);
|
|
System.out.println();
|
|
repeatCount--;
|
|
}
|
|
}
|
|
catch (Exception e) {
|
|
e.printStackTrace();
|
|
System.exit(1);
|
|
}
|
|
System.exit(0);
|
|
}
|
|
}
|