diff options
author | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-31 16:26:40 +0000 |
---|---|---|
committer | lhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-12-31 16:26:40 +0000 |
commit | 808def96aa4589fba9c2d0ea55837754a3b7a4f7 (patch) | |
tree | 0ea221c59abb2474c694e7ab5bd61006be77e47e /Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java | |
parent | 9216450d1143056a50a5f916984a2d7faf590488 (diff) | |
download | edk2-platforms-808def96aa4589fba9c2d0ea55837754a3b7a4f7.tar.xz |
Retiring the ANT/JAVA build and removing the older EDK II packages that required ANT/JAVA.
Last Ant/Java build was r7166
Developers requiring the Java/Ant packages should checkout the branch from:
https://edk2.tianocore.org/svn/edk2/branches/AntJava
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7168 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java')
-rw-r--r-- | Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java | 89 |
1 files changed, 0 insertions, 89 deletions
diff --git a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java b/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java deleted file mode 100644 index 730e385c74..0000000000 --- a/Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/far/DistributeRule.java +++ /dev/null @@ -1,89 +0,0 @@ -/** @file
-
- The file is used to distribute Far
-
- Copyright (c) 2006, Intel Corporation
- All rights reserved. This program and the accompanying materials
- are licensed and made available under the terms and conditions of the BSD License
- which accompanies this distribution. The full text of the license may be found at
- http://opensource.org/licenses/bsd-license.php
-
- THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
- WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
-
- **/
-package org.tianocore.frameworkwizard.far;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Vector;
-
-import org.tianocore.frameworkwizard.packaging.PackageIdentification;
-import org.tianocore.frameworkwizard.workspace.WorkspaceTools;
-
-public class DistributeRule {
- static PackageQuery pkgQ = new PackageQuery();
-
- static WorkspaceTools wsTools = new WorkspaceTools();
-
- static List<PackageIdentification> farPkgList = new ArrayList<PackageIdentification>();
-
- public static List<PackageIdentification> installFarCheck(Far far) {
-
- Far myFar = far;
- List<PackageIdentification> pkgDepList = new ArrayList<PackageIdentification>();
- List<PackageIdentification> dbPkgList = new ArrayList<PackageIdentification>();
- List<PackageIdentification> depResultList = new ArrayList<PackageIdentification>();
- //
- // Get Far packages list;
- //
- try {
- farPkgList = myFar.manifest.getPackageList();
- Iterator pkgItems = farPkgList.iterator();
- while (pkgItems.hasNext()) {
- PackageIdentification id = (PackageIdentification) pkgItems.next();
- pkgDepList = myFar.getPackageDependencies(id);
- depResultList = AggregationOperation.union(depResultList, pkgDepList);
- }
- dbPkgList = vectorToList(wsTools.getAllPackages());
-
- } catch (Exception e) {
- System.out.println(e.getMessage());
- }
-
- //
- // Check does the dependence meet the requirement.
- //
- List<PackageIdentification> resultList = AggregationOperation.minus(depResultList,
- AggregationOperation.union(farPkgList,
- dbPkgList));
-
- return resultList;
-
- }
-
- // public void installPackgCheck (PackageIdentification pkgId, String pkgPath){
- // List<PackageIdentification> dbPkgList = new ArrayList<PackageIdentification>();
- // dbPkgList = vectorToList(wsTools.getAllPackages());
- // //
- // // Install far's package one by one.
- // //
- // if ((AggregationOperation.getExistItems(pkgId, dbPkgList))){
- //
- // }
- // }
-
- public void UpdatCheck(String orgFar, String destFar) {
-
- }
-
- public static List<PackageIdentification> vectorToList(Vector vec) {
- List<PackageIdentification> set = new ArrayList<PackageIdentification>();
- Iterator vecItem = vec.iterator();
- while (vecItem.hasNext()) {
- set.add((PackageIdentification) vecItem.next());
- }
- return set;
- }
-}
|