Package sc.repos

Class RepositorySource

  • All Implemented Interfaces:
    Direct Known Subclasses:

    public class RepositorySource
    extends java.lang.Object
    The RepositorySource helps in the definition of the RepositoryPackage. You can have more than one source for the same package from different managers for example and then try them on after the other. You might have two sources from the same package with different versions of the package, and the package manager is responsible for picking the right version to use. TODO: should this be folded back into the RepositoryPackage? When we configure RepositoryPackages as components in the layer, is less useful to define multiple sources. Rather, you might instead let the layer stacking order refine one instance of the RepositoryPackage to allow customization and refinement that way.
    See Also:
    Serialized Form
    • Field Detail

      • managerName

        public java.lang.String managerName
      • url

        public java.lang.String url
      • srcURL

        public java.lang.String srcURL
      • unzip

        public boolean unzip
      • unwrapZip

        public boolean unwrapZip
        Set this to true if we need to put the contents of the zip file in a directory with the same name as the base of the zip file (e.g. pgsql)
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        equals in class java.lang.Object
      • getClassPathFileNames

        public java.util.List<java.lang.String> getClassPathFileNames()
        If the version number is in the file name, it will be different for each source
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • getDefaultPackageName

        public java.lang.String getDefaultPackageName()
        When creating a package from a URL only, this can extract the package name to use from the URL.
      • getDefaultFileName

        public java.lang.String getDefaultFileName()
      • getPackageSrcURL

        public java.lang.String getPackageSrcURL()