Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: gsoft/util/FileController.java


1   /*************************************************************************
2   Copyright (C) 2003  Steve Gee
3   stevesgee@cox.net
4   
5   This program is free software; you can redistribute it and/or
6   modify it under the terms of the GNU General Public License
7   as published by the Free Software Foundation; either version 2
8   of the License, or (at your option) any later version.
9   
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  GNU General Public License for more details.
14  
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  *************************************************************************/
19  
20  package gsoft.util;
21  
22  public class FileController extends FileObfuscatorManager{
23  
24    private String propertyFile = "obfuscator.properties";
25  
26    public FileController(String[] args){
27      if(args.length > 0){
28        int stop = args.length;
29        int counter = 0;
30        while(counter < stop){
31          if(args[counter].equalsIgnoreCase("-c")){
32            propertyFile = args[counter].substring(2);
33            break;
34          }
35          counter++;
36        }
37      }else{
38          showSyntax();
39      }
40      executeObfuscator(args);
41    }
42  
43    public String fetchPropertyFile(){
44      return propertyFile;
45    }
46  
47    public String fetchPropertyRootTag(){return "PROPERTIES";}
48  
49    public static void main(String[] args) {
50      new FileController(args);
51    }
52  }