Changeset 2781


Ignore:
Timestamp:
05/15/07 14:03:49 (13 years ago)
Author:
curtis
Message:

Add LICENSE_PROPERTY constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/codec/LuraWaveCodec.java

    r2774 r2781  
    4040  // -- Constants -- 
    4141 
     42  /** System property to check for the LuraWave license code. */ 
     43  public static final String LICENSE_PROPERTY = "lurawave.license"; 
     44 
     45  /** Message displayed if the LuraWave LWF decoder library is not found. */ 
    4246  public static final String NO_LURAWAVE_MSG = 
    4347    "The LuraWave decoding library, lwf_jsdk2.6.jar, is required to decode " + 
    4448    "this file. Please make sure it is present in your classpath."; 
    4549 
     50  /** Message to display if no LuraWave license code is given. */ 
    4651  public static final String NO_LICENSE_MSG = 
    4752    "No LuraWave license code was specified. Please set one in the " + 
    48     "lurawave.license system property (e.g., with -Dlurawave.license=XXXX " + 
    49     "from the command line)."; 
     53    LICENSE_PROPERTY + " system property (e.g., with -D" + LICENSE_PROPERTY + 
     54    "=XXXX from the command line)."; 
    5055 
     56  /** Message to display if an invalid LuraWave license code is given. */ 
    5157  public static final String INVALID_LICENSE_MSG = "Invalid license code: "; 
    5258 
     
    8995  public byte[] decompress(byte[] input) throws FormatException { 
    9096    if (noLuraWave) throw new FormatException(NO_LURAWAVE_MSG); 
    91     licenseCode = System.getProperty("lurawave.license"); 
     97    licenseCode = System.getProperty(LICENSE_PROPERTY); 
    9298    if (licenseCode == null) throw new FormatException(NO_LICENSE_MSG); 
    9399    r.setVar("stream", 
Note: See TracChangeset for help on using the changeset viewer.