Coverage Report - org.jtheque.core.managers.core.io.Files
 
Classes in this File Line Coverage Branch Coverage Complexity
Files
0 %
0/8
N/A
1
 
 1  
 package org.jtheque.core.managers.core.io;
 2  
 
 3  
 /*
 4  
  * This file is part of JTheque.
 5  
  *
 6  
  * JTheque is free software: you can redistribute it and/or modify
 7  
  * it under the terms of the GNU General Public License as published by
 8  
  * the Free Software Foundation, either version 3 of the License.
 9  
  *
 10  
  * JTheque 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 JTheque.  If not, see <http://www.gnu.org/licenses/>.
 17  
  */
 18  
 
 19  
 import org.jtheque.core.managers.Managers;
 20  
 
 21  
 import java.io.File;
 22  
 
 23  
 /**
 24  
  * Give access to the files of the application.
 25  
  *
 26  
  * @author Baptiste Wicht
 27  
  */
 28  0
 public final class Files implements IFilesContainer {
 29  
     @Override
 30  
     public File getLauncherFile() {
 31  0
         return new File(getLauncherPath());
 32  
     }
 33  
 
 34  
     /**
 35  
      * Return the path to the launcher.
 36  
      *
 37  
      * @return The path to the launcher.
 38  
      */
 39  
     private static String getLauncherPath() {
 40  0
         return Managers.getCore().getFolders().getApplicationFolder() + File.separator + "JTheque-Launcher.jar";
 41  
     }
 42  
 
 43  
     @Override
 44  
     public File getLogsFile() {
 45  0
         return new File(Managers.getCore().getFolders().getLogsFolder(), "/jtheque.log");
 46  
     }
 47  
 
 48  
     @Override
 49  
     public String getVersionsFileURL() {
 50  0
         return "http://jtheque.developpez.com/public/versions/Core.versions";
 51  
     }
 52  
 
 53  
     @Override
 54  
     public String getOnlineHelpURL() {
 55  0
         return "http://jtheque.developpez.com/";
 56  
     }
 57  
 
 58  
     @Override
 59  
     public String getForumURL() {
 60  0
         return "http://www.developpez.net/forums/f751/applications/projets/projets-heberges/jtheque/";
 61  
     }
 62  
 
 63  
     @Override
 64  
     public String getMakeDonationURL() {
 65  0
         return "https://sourceforge.net/project/project_donations.php?group_id=178515";
 66  
     }
 67  
 }