+++ /dev/null
-/** @file\r
- File is ContextMain class . \r
- \r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution. The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
- \r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-**/\r
-package org.tianocore.context;\r
-\r
-public class ContextMain {\r
- \r
- public static void main(String[] args) {\r
-\r
- if (TargetFile.validateFilename("target.txt") == false) {\r
- String workspacePath = System.getenv("WORKSPACE");\r
- System.out.printf("%n%s%n", "target.txt can't be found. Please check it in " + workspacePath + "\\Tool\\Conf");\r
- System.exit(0);\r
- }\r
- \r
- if(ParseParameter.checkParameter(args) == false){\r
- System.exit(0);\r
- }\r
- \r
- if (TargetFile.readFile() == false){\r
- System.exit(0);\r
- }\r
- \r
- if (ParseParameter.standardizeParameter(args) > 0){\r
- System.exit(0);\r
- }\r
- \r
- if (TargetFile.createTempFile("target.txt") == false){\r
- System.exit(0);\r
- }\r
- \r
- if (TargetFile.readwriteFile() == false){\r
- System.exit(0);\r
- }\r
- \r
- String workspacePath = System.getenv("WORKSPACE");\r
- System.out.printf("%n%s%n", workspacePath + "\\Tool\\Conf\\target.txt is updated successfully!");\r
- }\r
-}\r