]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Java/Source/ContextTool/org/tianocore/context/ContextMain.java
add some features:
[mirror_edk2.git] / Tools / Java / Source / ContextTool / org / tianocore / context / ContextMain.java
CommitLineData
987912ad 1/** @file\r
2 File is ContextMain class . \r
3 \r
4Copyright (c) 2006, Intel Corporation\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9 \r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12**/\r
c74c7a43 13package org.tianocore.context;\r
14\r
15public 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