Update of /var/cvs/applications/crontab/src/org/mmbase/applications/crontab In directory james.mmbase.org:/tmp/cvs-serv22666
Modified Files: CronEntry.java Log Message: made it possible to set type explicitely to default, leaving the confifgution token empty. See also: http://cvs.mmbase.org/viewcvs/applications/crontab/src/org/mmbase/applications/crontab Index: CronEntry.java =================================================================== RCS file: /var/cvs/applications/crontab/src/org/mmbase/applications/crontab/CronEntry.java,v retrieving revision 1.21 retrieving revision 1.22 diff -u -b -r1.21 -r1.22 --- CronEntry.java 4 Dec 2008 14:12:04 -0000 1.21 +++ CronEntry.java 8 Dec 2008 10:55:10 -0000 1.22 @@ -20,7 +20,7 @@ * * @author Kees Jongenburger * @author Michiel Meeuwissen - * @version $Id: CronEntry.java,v 1.21 2008/12/04 14:12:04 michiel Exp $ + * @version $Id: CronEntry.java,v 1.22 2008/12/08 10:55:10 michiel Exp $ */ public class CronEntry implements java.io.Serializable { @@ -119,10 +119,10 @@ } public CronEntry(String id, String cronTime, String name, String className, String configuration, String typeString) throws Exception { - this(id, cronTime, name, className, configuration, typeString == null ? Type.DEFAULT : Type.valueOf(typeString.toUpperCase())); + this(id, cronTime, name, className, configuration, (typeString == null || "".equals(typeString)) ? Type.DEFAULT : Type.valueOf(typeString.toUpperCase())); } public CronEntry(String id, String cronTime, String name, String className, String configuration, String typeString, Pattern servers) throws Exception { - this(id, cronTime, name, className, configuration, typeString == null ? Type.DEFAULT : Type.valueOf(typeString.toUpperCase()), servers); + this(id, cronTime, name, className, configuration, (typeString == null || "".equals(typeString)) ? Type.DEFAULT : Type.valueOf(typeString.toUpperCase()), servers); } /** _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs