org.jcrontab.data
Class DefaultFiles

java.lang.Object
  |
  +--org.jcrontab.data.DefaultFiles

public class DefaultFiles
extends java.lang.Object

This class is a utility to make easier the instalation and use of jcrontab What it does is to create the default files "jcrontab.properties" and "crontab" and set a default initial properties ready to work in any system The reason why this class was added was to make it easier to integrate with jEdit

Version:
$Revision: 1.9 $
Author:
$Author: iolalla $

Constructor Summary
DefaultFiles()
           
 
Method Summary
static void createCrontabFile()
          This method creates the default crontabFile This file is void to Avoid launching undesired tasks.
static void createJcrontabDir()
          This method creates the default jcrontabDir
static void createLog4jFile()
          This method loads creates the default log4j.properties file in order to have jcrontab working.
static void createPropertiesFile()
          This method loads creates the default Properties file in order to have jcrontab working.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFiles

public DefaultFiles()
Method Detail

createPropertiesFile

public static void createPropertiesFile()
                                 throws java.lang.Exception
This method loads creates the default Properties file in order to have jcrontab working. The other option was to use getResourceAsStream with the properties but with this solution to change the properties was more complicated

Throws:
java.lang.Exception

createCrontabFile

public static void createCrontabFile()
                              throws java.lang.Exception
This method creates the default crontabFile This file is void to Avoid launching undesired tasks.

java.lang.Exception

createJcrontabDir

public static void createJcrontabDir()
This method creates the default jcrontabDir


createLog4jFile

public static void createLog4jFile()
                            throws java.lang.Exception
This method loads creates the default log4j.properties file in order to have jcrontab working. The other option was to use getResourceAsStream with the properties but with this solution to change the properties was more complicated

Throws:
java.lang.Exception