]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/GenBuild/org/tianocore/build/toolchain/ToolChainTask.java
4 ToolChainTask class's main fucntion is read all tool chain related config files.
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 package org
.tianocore
.build
.toolchain
;
18 import org
.apache
.tools
.ant
.BuildException
;
19 import org
.apache
.tools
.ant
.Task
;
22 This class is an ANT task. The main function is to read all tool chain related
27 public class ToolChainTask
extends Task
{
29 /// environment variable name of toolchain
31 static private String toolsEnv
= "env.TOOLS_DEF";
33 /// configuration file path
35 private String confPath
= ".";
38 Public construct method. It is necessary for ANT task.
40 public ToolChainTask(){
44 ANT task's entry point, will be called after init(). Using
45 <code>ToolChainFactory</code> to parse all config files, and
48 @throws BuildException
49 Config files are invalid.
51 public void execute() throws BuildException
{
52 String toolChain
= getProject().getProperty(toolsEnv
);
53 // ToolChainConfig toolchain = new ToolChainConfig(new File(confPath + File.separatorChar + toolChain));
54 //getProject().setProperty("TARGET", toolchain.getCurrentTarget());
58 Set the path of config files.
60 @param confPath the path of config files
62 public void setConfPath(String confPath
) {
63 this.confPath
= confPath
;