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