]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/GenBuild/org/tianocore/build/toolchain/ToolChainTask.java
Added copyright&license header.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / toolchain / ToolChainTask.java
CommitLineData
878ddf1f 1/** @file\r
2 ToolChainTask class.\r
3 \r
4 ToolChainTask class's main fucntion is read all tool chain related config files. \r
5\r
6Copyright (c) 2006, Intel Corporation \r
7All rights reserved. This program and the accompanying materials \r
8are licensed and made available under the terms and conditions of the BSD License \r
9which accompanies this distribution. The full text of the license may be found at \r
10http://opensource.org/licenses/bsd-license.php \r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14\r
15**/\r
16package org.tianocore.build.toolchain;\r
17\r
18import org.apache.tools.ant.BuildException;\r
19import org.apache.tools.ant.Task;\r
20\r
21/**\r
22 This class is an ANT task. The main function is to read all tool chain related\r
23 config files. \r
24 \r
25 @since GenBuild 1.0\r
26**/\r
27public class ToolChainTask extends Task{\r
a29c47e0 28 ///\r
29 /// environment variable name of toolchain\r
30 ///\r
31 static private String toolsEnv = "env.TOOLS_DEF";\r
32 ///\r
33 /// configuration file path\r
34 ///\r
878ddf1f 35 private String confPath = ".";\r
36 \r
37 /**\r
38 Public construct method. It is necessary for ANT task.\r
39 **/\r
40 public ToolChainTask(){\r
41 }\r
42 \r
43 /**\r
44 ANT task's entry point, will be called after init(). Using\r
45 <code>ToolChainFactory</code> to parse all config files, and\r
46 set TARGET property. \r
47 \r
48 @throws BuildException\r
49 Config files are invalid.\r
50 **/\r
51 public void execute() throws BuildException {\r
a29c47e0 52 String toolChain = getProject().getProperty(toolsEnv);\r
878ddf1f 53 }\r
54\r
55 /**\r
56 Set the path of config files.\r
57 \r
58 @param confPath the path of config files\r
59 **/\r
60 public void setConfPath(String confPath) {\r
61 this.confPath = confPath;\r
62 }\r
63}\r