X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fbin%2FCache.java;h=5dbf5bc83ac034a2c2ed97ce7ff1cd287d0816e5;hb=bbfdb203ce3a889600caa52478478b75ab03809f;hp=fab075ee6e6f12b1da66cff4d215785b1f4b82b5;hpb=3be300f0d9107885e183ae7c86b081c8e6c6780f;p=jalview.git diff --git a/src/jalview/bin/Cache.java b/src/jalview/bin/Cache.java index fab075e..5dbf5bc 100755 --- a/src/jalview/bin/Cache.java +++ b/src/jalview/bin/Cache.java @@ -1,6 +1,6 @@ /* - * Jalview - A Sequence Alignment Editor and Viewer (Version 2.6) - * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle + * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7) + * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle * * This file is part of Jalview. * @@ -124,6 +124,8 @@ import org.biojava.dasobert.dasregistry.Das1Source; * histogram. *
  • SHOW_CONSENSUS_LOGO (false) Show consensus annotation row's sequence * logo.
  • + *
  • NORMALISE_CONSENSUS_LOGO (false) Show consensus annotation row's sequence + * logo normalised to row height rather than histogram height.
  • *
  • FOLLOW_SELECTIONS (true) Controls whether a new alignment view should * respond to selections made in other alignments containing the same sequences. *
  • @@ -141,7 +143,8 @@ import org.biojava.dasobert.dasregistry.Das1Source; * *
  • DISCOVERY_START - Boolean - controls if discovery services are queried on * startup (JWS1 services only)
  • *
  • DISCOVERY_URLS - comma separated list of Discovery Service endpoints. (JWS1 services only)
  • - *
  • SHOW_JWS1_SERVICES (true) enable or disable the original Jalview 2 services in the desktop GUI + *
  • SHOW_JWS1_SERVICES (true) enable or disable the original Jalview 2 services in the desktop GUI
  • + *
  • ENABLE_RSBS_EDITOR (false for 2.7 release) enable or disable RSBS editing panel in web service preferences
  • * * @author $author$ * @version $Revision$ @@ -277,6 +280,26 @@ public class Cache System.setProperty("http.proxyPort", getDefault("PROXY_PORT", null)); } + // LOAD THE AUTHORS FROM THE authors.props file + try + { + String authorDetails = "jar:".concat(Cache.class.getProtectionDomain() + .getCodeSource().getLocation().toString() + .concat("!/authors.props")); + + java.net.URL localJarFileURL = new java.net.URL(authorDetails); + + InputStream in = localJarFileURL.openStream(); + applicationProperties.load(in); + in.close(); + } catch (Exception ex) + { + System.out.println("Error reading author details: " + ex); + applicationProperties.remove("AUTHORS"); + applicationProperties.remove("AUTHORFNAMES"); + applicationProperties.remove("YEAR"); + } + // FIND THE VERSION NUMBER AND BUILD DATE FROM jalview.jar // MUST FOLLOW READING OF LOCAL PROPERTIES FILE AS THE // VERSION MAY HAVE CHANGED SINCE LAST USING JALVIEW