system/src/sc/layer/Layer.java
public RepositoryPackage addRepositoryPackage(String pkgName, String fileName, String repositoryTypeName, String url, boolean unzip, boolean unwrapZip) {
      RepositorySystem repoSys = layeredSystem.repositorySystem;
      IRepositoryManager mgr = repoSys.getRepositoryManager(repositoryTypeName);
      if (mgr != null) {
         if (repositoryPackages == null)
            repositoryPackages = new ArrayList<RepositoryPackage>();

         RepositorySource repoSrc = mgr.createRepositorySource(url, unzip, unwrapZip, null);
         // Add this as a new source.  This will create the package if this is the first definition or add it
         // as a new source if it already exists.
         RepositoryPackage pkg = repoSys.addPackageSource(mgr, pkgName, fileName, repoSrc, started && !disabled, null);
         repositoryPackages.add(pkg);

         return pkg;
      }
      else
         error("Failed to add repository package: " + pkgName + " no RepositoryManager named: " + repositoryTypeName);
      return null;
   }
/** Adds this repository package to the system for the current layer.  Often called from the layer's start method
    * so it registers the package with the layer. The package is installed right before the start method
    * returns.  If this method is called from the initialize method, downstream layers have a chance to
    * modify the package before it's installed - right before the start method of the layer is called. */
Adds this repository package to the system for the current layer.  Often called from the layer's start method
so it registers the package with the layer. The package is installed right before the start method
returns.  If this method is called from the initialize method, downstream layers have a chance to
modify the package before it's installed - right before the start method of the layer is called.
Adds this repository package to the system for the current layer . Often called from the layer ' s start method so it registers the package with the layer . The package is installed right before the start method returns . If this method is called from the initialize method downstream layers have a chance to modify the package before it ' s installed - right before the start method of the layer is called .
public RepositoryPackage addRepositoryPackage(String pkgName, String fileName, String repositoryTypeName, String url, boolean unzip, boolean unwrapZip) {
      RepositorySystem repoSys = layeredSystem.repositorySystem;
      IRepositoryManager mgr = repoSys.getRepositoryManager(repositoryTypeName);
      if (mgr != null) {
         if (repositoryPackages == null)
            repositoryPackages = new ArrayList<RepositoryPackage>();
         RepositorySource repoSrc = mgr.createRepositorySource(url, unzip, unwrapZip, null);
         RepositoryPackage pkg = repoSys.addPackageSource(mgr, pkgName, fileName, repoSrc, started && !disabled, null);
         repositoryPackages.add(pkg);
         return pkg;
      }
      else
         error("Failed to add repository package: " + pkgName + " no RepositoryManager named: " + repositoryTypeName);
      return null;
   }
public RepositoryPackage addRepositoryPackage ( String pkgName , String fileName , String repositoryTypeName , String url , boolean unzip , boolean unwrapZip ) { RepositorySystem repoSys = layeredSystem . repositorySystem ; IRepositoryManager mgr = repoSys . getRepositoryManager ( repositoryTypeName ) ; if ( mgr != null ) { if ( repositoryPackages == null ) repositoryPackages = new ArrayList < RepositoryPackage > ( ) ; RepositorySource repoSrc = mgr . createRepositorySource ( url , unzip , unwrapZip , null ) ; RepositoryPackage pkg = repoSys . addPackageSource ( mgr , pkgName , fileName , repoSrc , started && ! disabled , null ) ; repositoryPackages . add ( pkg ) ; return pkg ; } else error ( "Failed to add repository package: " + pkgName + " no RepositoryManager named: " + repositoryTypeName ) ; return null ; }
Adds this repository package to the system for the current layer.
Adds this repository package to the system for the current layer .
// Add this as a new source.  This will create the package if this is the first definition or add it // as a new source if it already exists.