View Javadoc

1   /*$Id: Initialise.java,v 1.4 2005/03/10 15:13:48 mch Exp $
2    * Created on 28-Nov-2003
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid
7    * Software License version 1.2, a copy of which has been included
8    * with this distribution in the LICENSE.txt file.
9    *
10  **/
11  package org.astrogrid.dataservice.impl.trace.initialiser;
12  
13  import java.io.IOException;
14  import java.io.OutputStreamWriter;
15  import java.text.SimpleDateFormat;
16  import nom.tam.fits.FitsException;
17  import org.astrogrid.fitsserver.setup.IndexGenerator;
18  
19  
20  /*** Quickfire class that runs the IndexGenerator on the urls in the pakcage
21   *
22   */
23  
24  public class Initialise {
25  
26     /***
27      *
28      */
29     public static void main(String[] args) throws IOException, FitsException {
30        IndexGenerator generator = new IndexGenerator();
31        generator.checkForExtensions = false;
32        generator.fitsDateFormat = new SimpleDateFormat("dd-MMM-yyyy HH:mm:ss");
33        generator.generateIndex(Initialise.class.getResourceAsStream("traceUrls.txt"));
34     }
35  }
36  
37  
38  /*
39  $Log: Initialise.java,v $
40  Revision 1.4  2005/03/10 15:13:48  mch
41  Seperating out fits, table and xdb servers
42  
43  Revision 1.3  2005/03/10 13:59:00  KevinBenson
44  corrections to fits and testing to fits
45  
46  Revision 1.2  2005/03/01 15:58:33  mch
47  Changed to use starlinks tamfits library
48  
49  Revision 1.1.1.1  2005/02/17 18:37:34  mch
50  Initial checkin
51  
52  Revision 1.1.1.1  2005/02/16 17:11:24  mch
53  Initial checkin
54  
55  Revision 1.3  2004/10/18 13:11:30  mch
56  Lumpy Merge
57  
58  Revision 1.2.4.1  2004/10/15 19:59:05  mch
59  Lots of changes during trip to CDS to improve int test pass rate
60  
61  Revision 1.2  2004/10/05 16:37:45  mch
62  Merged with PAL
63  
64  Revision 1.1  2004/10/05 16:10:43  mch
65  Merged with PAL
66  
67  Revision 1.5  2004/09/07 14:52:19  mch
68  Fixes etc for SEC
69  
70  Revision 1.4  2004/09/07 09:48:56  mch
71  Logging updates
72  
73  Revision 1.3  2004/09/07 01:39:27  mch
74  Moved email keys from TargetIndicator to Slinger
75  
76  Revision 1.2  2004/09/07 00:54:20  mch
77  Tidied up Querier/Plugin/Results, and removed deprecated SPI-visitor-SQL-translator
78  
79  Revision 1.1  2004/09/06 21:36:28  mch
80  QuickFire initialiser
81  
82   
83  */