001/* 002 * $Source: f:/cvsroot2/open/projects/jOggPlayer/ca/bc/webarts/JOggPlayerAutoUpdating.java,v $ 003 * $Name: $ 004 * $Revision: 1.4 $ 005 * $Date: 2005-04-10 11:13:32 -0700 (Sun, 10 Apr 2005) $ 006 * $Locker: $ 007 */ 008/* 009 * JOggPlayerAutoUpdating - AutoUpdating GUI Pure Java Ogg Vorbis player. 010 * 011 * Copyright (C) 2001 WebARTS Design, North Vancouver Canada 012 * http://www.webarts.bc.ca/jOggPlayer 013 * 014 * This program is free software; you can redistribute it and/or modify 015 * it under the terms of the GNU General Public License as published by 016 * the Free Software Foundation; either version 2 of the License, or 017 * (at your option) any later version. 018 * 019 * This program is distributed in the hope that it will be useful, 020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 022 * GNU General Public License for more details. 023 * 024 * You should have received a copy of the GNU General Public License 025 * along with this program; if not, write to the Free Software 026 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 027 */ 028 029package ca.bc.webarts; 030 031class JOggPlayerAutoUpdating extends ca.bc.webarts.tools.AutoUpdateApp 032{ 033 034 035 /** 036 * Basic constructor overs super to set the name and properties file for the 037 * application. The entry point for this app 038 * app is the <A HREF="#main(java.lang.String[])">main( String[] )</A> or 039 * <A HREF="#runApp(java.util.Properties)">runApp(Properties)</A>methods. 040 * 041 * @see #main 042 * @see #runApp 043 **/ 044 private JOggPlayerAutoUpdating() 045 { 046 appName_ = "AutoUpdatingJOggPlayer"; 047 appPropertyFilename_ = appName_ + ".prop"; 048 } 049 050 /** 051 * The main entry for this app. It performs all the calls to validate, 052 * download and then execute the executable requested in the Properties file 053 * that is passed in as this apps single commandline parameter. 054 * 055 * @param args are the commandline parameters.This app expects ONLY 1 056 * parameter... the absolute file path to the properties file 057 * containing all the info for the Remote App to execute. 058 * 059 * @see #runApp 060 **/ 061 public static void main(String [] args) 062 { 063 JOggPlayerAutoUpdating me = new JOggPlayerAutoUpdating(); 064 System.out.println("Starting The AutoUpdateApp "+me.appName_); 065 if (args.length < 1) 066 me.runApp(me.loadAutoAppPropertiesFile()); 067 else 068 System.out.println("JOggPlayerAutoUpdating ERROR - incorrect number of" + 069 "commandline args:\nUSAGE: java -jar " + me.appName_ + 070 ".jar "); 071 072 } 073}