]>
Commit | Line | Data |
---|---|---|
987912ad | 1 | /** @file\r |
2 | File is ContextMain class . \r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | **/\r | |
c74c7a43 | 13 | package org.tianocore.context;\r |
14 | \r | |
15 | public class ContextMain {\r | |
16 | \r | |
17 | public static void main(String[] args) {\r | |
18 | \r | |
f337986f | 19 | if (TargetFile.validateFilename("target.txt") == false) {\r |
20 | System.out.printf("%n%s", "Target.txt can't be found in WorkSpace. Please check it!");\r | |
21 | System.exit(0);\r | |
22 | }\r | |
23 | \r | |
c74c7a43 | 24 | if(ParseParameter.checkParameter(args) == false){\r |
25 | System.exit(0);\r | |
26 | }\r | |
f337986f | 27 | \r |
28 | if (TargetFile.readFile() == false){\r | |
29 | System.exit(0);\r | |
30 | }\r | |
31 | \r | |
32 | if (ParseParameter.standardizeParameter(args) > 0){\r | |
33 | System.exit(0);\r | |
34 | }\r | |
35 | \r | |
36 | if (TargetFile.createTempFile("target.txt") == false){\r | |
37 | System.exit(0);\r | |
38 | }\r | |
39 | \r | |
40 | if (TargetFile.readwriteFile() == false){\r | |
c74c7a43 | 41 | System.exit(0);\r |
42 | }\r | |
43 | \r | |
44 | System.out.printf("%n%s", "Target.txt generate successfully!");\r | |
45 | }\r | |
46 | }\r |