Enum EmittedArtifact.Visibility

All Implemented Interfaces:
Serializable, Comparable<EmittedArtifact.Visibility>, java.lang.constant.Constable
Enclosing class:

public static enum EmittedArtifact.Visibility extends Enum<EmittedArtifact.Visibility>
Describes the visibility of an artifact.
  • Enum Constant Details

    • Public

      public static final EmittedArtifact.Visibility Public
      A public artifact is something that may be served to clients.
    • Private

      public static final EmittedArtifact.Visibility Private
      A private artifact is something that is only used during the build process.
    • Deploy

      public static final EmittedArtifact.Visibility Deploy
      A deploy artifact is deployed to the server but is never served to the client.
    • Source

      public static final EmittedArtifact.Visibility Source
      A Source artifact is a file intended for source-level debugging in a browser. It should be served to clients while developing but not in production unless the app is open source.
    • LegacyDeploy

      public static final EmittedArtifact.Visibility LegacyDeploy
      For legacy use only - used for artifacts that were previously marked as private because they should not be delivered to the client, but actually should be visible to the server. These artifacts will now be treated as both Private and Deploy, so that existing build tools that expect to find them in the output directory for Private artifacts will find them. New code should use Deploy instead.
  • Method Details

    • values

      public static EmittedArtifact.Visibility[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EmittedArtifact.Visibility valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • matches

      public boolean matches(EmittedArtifact.Visibility visibility)
      Returns true if this visibility matches the requested visibility level, dealing with the fact that LegacyDeploy matches both Private and Deploy.
      visibility -
      true if this visibility matches the requested level