Last change
on this file since 922 was
922,
checked in by sherbold, 12 years ago
|
- renaming of packages from de.ugoe.cs.quest to de.ugoe.cs.autoquest
|
File size:
1.3 KB
|
Line | |
---|
1 |
|
---|
2 | package de.ugoe.cs.autoquest.plugin.jfc.commands;
|
---|
3 |
|
---|
4 | import java.util.List;
|
---|
5 |
|
---|
6 | import de.ugoe.cs.autoquest.plugin.jfc.JFCTraceCorrector;
|
---|
7 | import de.ugoe.cs.util.console.Command;
|
---|
8 |
|
---|
9 | /**
|
---|
10 | * <p>
|
---|
11 | * Command to correct an XML file with sessions monitored by the older version of the
|
---|
12 | * EventBench's JFCMonitor which sometimes do not include correct event sources.
|
---|
13 | * </p>
|
---|
14 | *
|
---|
15 | * @author Patrick Harms
|
---|
16 | * @version 1.0
|
---|
17 | */
|
---|
18 | public class CMDcorrectOldJFC implements Command {
|
---|
19 |
|
---|
20 | /*
|
---|
21 | * (non-Javadoc)
|
---|
22 | *
|
---|
23 | * @see de.ugoe.cs.util.console.Command#run(java.util.List)
|
---|
24 | */
|
---|
25 | @Override
|
---|
26 | public void run(List<Object> parameters) {
|
---|
27 | String inputfilename;
|
---|
28 | String outputfilename;
|
---|
29 |
|
---|
30 | try {
|
---|
31 | inputfilename = (String) parameters.get(0);
|
---|
32 | outputfilename = (String) parameters.get(1);
|
---|
33 | }
|
---|
34 | catch (Exception e) {
|
---|
35 | throw new IllegalArgumentException();
|
---|
36 | }
|
---|
37 |
|
---|
38 | JFCTraceCorrector corrector = new JFCTraceCorrector();
|
---|
39 |
|
---|
40 | corrector.correctFile(inputfilename, outputfilename);
|
---|
41 | }
|
---|
42 |
|
---|
43 | /*
|
---|
44 | * (non-Javadoc)
|
---|
45 | *
|
---|
46 | * @see de.ugoe.cs.util.console.Command#help()
|
---|
47 | */
|
---|
48 | @Override
|
---|
49 | public String help() {
|
---|
50 | return "correctOldJFC <inputfilename> <outputfilename>";
|
---|
51 | }
|
---|
52 |
|
---|
53 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.