c***@svndev.jahia.net
2008-12-19 15:20:15 UTC
Author: cmailleux
Date: Fri Dec 19 16:20:14 2008
New Revision: 24215
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D24215&repname=
=3Djahia
Log:
Fix UI for Distant Export Management
Added:
branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html
Modified:
branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp
Added: branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/admini=
stration/cron_help.html
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/branches/JAHIA=
-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administration/cron_help.ht=
ml&rev=3D24215&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html (added)
+++ branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html Fri Dec 19 16:20:14 2008
@@ -0,0 +1,347 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xh=
tml11/DTD/xhtml11.dtd">
+
+<html xmlns=3D"http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-=
8" />
+ <link rel=3D"stylesheet" href=3D"../css/andromeda.css" type=3D"text/cs=
s" />
+ <title>Cron Help</title>
+</head>
+<body>
+<div class=3D"head headtop">
+ <div class=3D"object-title">
+ Help on cron
+ </div>
+</div>
+<div id=3D"cronHelp" style=3D"display:block">
+ <p>
+ For those unfamiliar with "cron", this means being able to create =
a firing schedule such as: "At 8:00am every
+ Monday through Friday" or "At 1:30am every last Friday of the mont=
h".
+ <br>
+ A "Cron-Expression" is a string comprised of 6 or 7 fields separat=
ed by white space. The 6 mandatory and 1
+ optional fields are as follows:
+ <br>
+ </p>
+ <table class=3D"evenOddTable" border=3D"0" cellspacing=3D"0" cellpaddi=
ng=3D"2" style=3D"margin: 10px">
+ <thead>
+ <tr>
+ <th>
+ Field Name
+ </th>
+ <th>
+ Allowed Values
+ </th>
+ <th>
+ Allowed Special Characters
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class=3D"evenLine">
+ <td>
+ Seconds
+ </td>
+ <td>
+ 0-59
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Minutes
+ </td>
+ <td>
+ 0-59
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Hours
+ </td>
+ <td>
+ 0-23
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Day-of-month
+ </td>
+ <td>
+ 1-31
+ </td>
+ <td>
+ , - * ? / L W C
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Month
+ </td>
+ <td>
+ 1-12 or JAN-DEC
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Day-of-Week
+ </td>
+ <td>
+ 1-7 or SUN-SAT
+ </td>
+ <td>
+ , - * ? / L C #
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Year (Optional)
+ </td>
+ <td>
+ empty, 1970-2099
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p>
+ The '*' character is used to specify all values. For example, "*" =
in the minute field means "every minute".
+ <br>
+ The '?' character is allowed for the day-of-month and day-of-week =
fields. It is used to specify 'no specific
+ value'. This is useful when you need to specify something in one o=
f the two fileds, but not the other. See the
+ examples below for clarification.
+ <br>
+ The '-' character is used to specify ranges For example "10-12" in=
the hour field means "the hours 10, 11 and
+ 12".
+ <br>
+ The ',' character is used to specify additional values. For exampl=
e "MON,WED,FRI" in the day-of-week field means
+ "the days Monday, Wednesday, and Friday".
+ <br>
+ The '/' character is used to specify increments. For example "0/15=
" in the seconds field means "the seconds 0,
+ 15, 30, and 45". And "5/15" in the seconds field means "the second=
s 5, 20, 35, and 50". You can also specify '/'
+ after the '*' character - in this case '*' is equivalent to having=
'0' before the '/'.
+ <br>
+ The 'L' character is allowed for the day-of-month and day-of-week =
fields. This character is short-hand for
+ "last", but it has different meaning in each of the two fields. Fo=
r example, the value "L" in the day-of-month
+ field means "the last day of the month" - day 31 for January, day =
28 for February on non-leap years. If used in
+ the day-of-week field by itself, it simply means "7" or "SAT". But=
if used in the day-of-week field after
+ another value, it means "the last xxx day of the month" - for exam=
ple "6L" means "the last friday of the month".
+ When using the 'L' option, it is important not to specify lists, o=
r ranges of values, as you'll get confusing
+ results.
+ <br>
+ The 'W' character is allowed for the day-of-month field. This char=
acter is used to specify the weekday
+ (Monday-Friday) nearest the given day. As an example, if you were =
to specify "15W" as the value for the
+ day-of-month field, the meaning is: "the nearest weekday to the 15=
th of the month". So if the 15th is a
+ Saturday, the trigger will fire on Friday the 14th. If the 15th is=
a Sunday, the trigger will fire on Monday the
+ 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 1=
5th. However if you specify "1W" as the value
+ for day-of-month, and the 1st is a Saturday, the trigger will fire=
on Monday the 3rd, as it will not 'jump' over
+ the boundary of a month's days. The 'W' character can only be spec=
ified when the day-of-month is a single day,
+ not a range or list of days.
+ <br>
+ The 'L' and 'W' characters can also be combined for the day-of-mon=
th expression to yield 'LW', which translates
+ to "last weekday of the month".
+ <br>
+ The '#' character is allowed for the day-of-week field. This chara=
cter is used to specify "the nth" XXX day of
+ the month. For example, the value of "6#3" in the day-of-week fiel=
d means the third Friday of the month (day 6 =3D
+ Friday and "#3" =3D the 3rd one in the month). Other examples: "2#=
1" =3D the first Monday of the month and "4#5" =3D
+ the fifth Wednesday of the month. Note that if you specify "#5" an=
d there is not 5 of the given day-of-week in
+ the month, then no firing will occur that month.
+ <br>
+ The 'C' character is allowed for the day-of-month and day-of-week =
fields. This character is short-hand for
+ "calendar". This means values are calculated against the associate=
d calendar, if any. If no calendar is
+ associated, then it is equivalent to having an all-inclusive calen=
dar. A value of "5C" in the day-of-month field
+ means "the first day included by the calendar on or after the 5th"=
. A value of "1C" in the day-of-week field
+ means "the first day included by the calendar on or after sunday".
+ <br>
+ The legal characters and the names of months and days of the week =
are not case sensitive.
+ <br>
+ </p>
+</div>
+<div class=3D"head headtop">
+ <div class=3D"object-title">
+ Example cron
+ </div>
+</div>
+<div id=3D"cronExamples" style=3D"display:block">
+ <p>Here are some full examples:</p>
+ <br>
+ <table class=3D"evenOddTable" border=3D"0" cellspacing=3D"0" cellpaddi=
ng=3D"2"
+ style=3D"border: 1px solid #d4d4d4; margin: 10px">
+ <thead>
+ <tr>
+ <th>
+ Expression
+ </th>
+ <th class=3D"lastCol">
+ Meaning
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0 12 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 12pm (noon) every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * *"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 * * ? *"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 * * ? 2005"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day during the year 2005
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 * 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every minute starting at 2pm and ending at 2:59pm, ev=
ery day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0/5 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every 5 minutes starting at 2pm and ending at 2:55pm,=
every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 0/5 14,18 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every 5 minutes starting at 2pm and ending at 2:55pm,=
AND fire every 5 minutes starting at 6pm and
+ ending at 6:55pm, every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0-5 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every minute starting at 2pm and ending at 2:05pm, ev=
ery day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 10,44 14 ? 3 WED"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 2:10pm and at 2:44pm every Wednesday in the month =
of March.
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * MON-FRI"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday=
and Friday
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 15 * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the 15th day of every month
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 L * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last day of every month
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * 6L"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last Friday of every month
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * 6L"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last Friday of every month
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * 6L 2002-2005"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on every last friday of every month during=
the years 2002, 2003, 2004 and 2005
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * 6#3"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the third Friday of every month
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p>
+ Pay attention to the effects of '?' and '*' in the day-of-week and=
day-of-month fields!
+ <br>
+ NOTES:
+ <br>
+ * Support for the features described for the 'C' character is not =
complete.
+ <br>
+ * Support for specifying both a day-of-week and a day-of-month val=
ue is not complete (you'll need to use the '?'
+ character in on of these fields).
+ <br>
+ * Be careful when setting fire times between mid-night and 1:00 AM=
- "daylight savings" can cause a skip or a
+ repeat depending on whether the time moves back or jumps forward.
+ </p>
+
+</div>
+</body>
+</html>
\ No newline at end of file
Modified: branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/adm=
inistration/manage_production.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-ANDROM=
EDA-BRANCH/war/src/main/webapp/jsp/jahia/administration/manage_production.j=
sp&rev=3D24215&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp (original)
+++ branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp Fri Dec 19 16:20:14 2008
@@ -41,7 +41,14 @@
targetSites =3D property.split(",");
length =3D targetSites.length;
} %>
-
+<script type=3D"text/javascript">
+function viewCronHelp() {
+ var preview =3D window.open('${pageContext.request.contextPath}/jsp/ja=
hia/administration/cron_help.html', =
+ 'CronHelpPopup',
+ 'width=3D800,height=3D400,status=3D0,menubar=3D0,resizable=3D1=
,scrollbars=3D1');
+ preview.focus();
+}
+</script>
<script type=3D"text/javascript">
<!--
var maxID =3D <%=3Dlength%>;
@@ -325,7 +332,11 @@
<a class=3D"ico-delete" href=3D"javascript:if(document=
.mainForm.targetLists.selectedIndex>=3D0)deleteTarget(document.mainForm.tar=
getLists.options[document.mainForm.targetLists.selectedIndex].value);"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.delete.label'/></=
a>
</span> =
</span>
- =
+ <span class=3D"dex-PushButton">
+ <span class=3D"first-child">
+ <a class=3D"ico-ok" href=3D"javascript:sendForm();"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.save.label'/></a>
+ </span>
+ </span>
</div>
</div>
=
@@ -441,325 +452,13 @@
</tr>
<tr>
<td>
- <internal:adminResourceBundle resourceName=3D"org.=
jahia.admin.productionManager.form.cron"/>
+ <internal:adminResourceBundle resourceName=3D"org.=
jahia.admin.productionManager.form.cron"/> <a href=3D"#cronhelp" oncli=
ck=3D"viewCronHelp(); return false;"><img src=3D"${pageContext.request.cont=
extPath}/jsp/jahia/engines/images/about.gif" alt=3D"show cron help"/></a>
</td>
<td>
<input type=3D"text" name=3D"cron" value=3D"">
</td>
- </tr>
- <tr>
- <td valign=3D"top" align=3D"right" colspan=3D"5">
- <span class=3D"dex-PushButton">
- <span class=3D"first-child">
- <a class=3D"ico-ok" href=3D"javascript:sendForm(=
);"><internal:adminResourceBundle resourceName=3D'org.jahia.admin.save.labe=
l'/></a>
- </span>
- </span>
- =
- </td>
- </tr>
- </table>
- <div class=3D"head headtop">
- <div class=3D"object-title">
- Help on cron
- </div>
- </div>
- <div id=3D"cronHelp" style=3D"display:block">
- <p>
- For those unfamiliar with "cron", this means being able to create a=
firing schedule such as: "At 8:00am every Monday through Friday" or "At 1:=
30am every last Friday of the month".
- <br>
- A "Cron-Expression" is a string comprised of 6 or 7 =
fields separated by white space. The 6 mandatory and 1 optional fields are =
as follows:
- <br>
- </p>
- <table class=3D"evenOddTable" border=3D"0" cellspaci=
ng=3D"0" cellpadding=3D"2" style=3D"margin: 10px">
- <thead>
- <tr>
- <th>
- Field Name
- </th>
- <th>
- Allowed Values
- </th>
- <th>
- Allowed Special Characters
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class=3D"evenLine">
- <td>
- Seconds
- </td>
- <td>
- 0-59
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Minutes
- </td>
- <td>
- 0-59
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Hours
- </td>
- <td>
- 0-23
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Day-of-month
- </td>
- <td>
- 1-31
- </td>
- <td>
- , - * ? / L W C
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Month
- </td>
- <td>
- 1-12 or JAN-DEC
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Day-of-Week
- </td>
- <td>
- 1-7 or SUN-SAT
- </td>
- <td>
- , - * ? / L C #
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Year (Optional)
- </td>
- <td>
- empty, 1970-2099
- </td>
- <td>
- , - * /
- </td>
- </tr>
- </tbody>
- </table>
- <p>
- The '*' character is used to specify all values. For=
example, "*" in the minute field means "every minute".
- <br>
- The '?' character is allowed for the day-of-month an=
d day-of-week fields. It is used to specify 'no specific value'. This is us=
eful when you need to specify something in one of the two fileds, but not t=
he other. See the examples below for clarification.
- <br>
- The '-' character is used to specify ranges For exam=
ple "10-12" in the hour field means "the hours 10, 11 and 12".
- <br>
- The ',' character is used to specify additional valu=
es. For example "MON,WED,FRI" in the day-of-week field means "the days Mond=
ay, Wednesday, and Friday".
- <br>
- The '/' character is used to specify increments. For=
example "0/15" in the seconds field means "the seconds 0, 15, 30, and 45".=
And "5/15" in the seconds field means "the seconds 5, 20, 35, and 50". You=
can also specify '/' after the '*' character - in this case '*' is equival=
ent to having '0' before the '/'.
- <br>
- The 'L' character is allowed for the day-of-month an=
d day-of-week fields. This character is short-hand for "last", but it has d=
ifferent meaning in each of the two fields. For example, the value "L" in t=
he day-of-month field means "the last day of the month" - day 31 for Januar=
y, day 28 for February on non-leap years. If used in the day-of-week field =
by itself, it simply means "7" or "SAT". But if used in the day-of-week fie=
ld after another value, it means "the last xxx day of the month" - for exam=
ple "6L" means "the last friday of the month". When using the 'L' option, i=
t is important not to specify lists, or ranges of values, as you'll get con=
fusing results.
- <br>
- The 'W' character is allowed for the day-of-month fi=
eld. This character is used to specify the weekday (Monday-Friday) nearest =
the given day. As an example, if you were to specify "15W" as the value for=
the day-of-month field, the meaning is: "the nearest weekday to the 15th o=
f the month". So if the 15th is a Saturday, the trigger will fire on Friday=
the 14th. If the 15th is a Sunday, the trigger will fire on Monday the 16t=
h. If the 15th is a Tuesday, then it will fire on Tuesday the 15th. However=
if you specify "1W" as the value for day-of-month, and the 1st is a Saturd=
ay, the trigger will fire on Monday the 3rd, as it will not 'jump' over the=
boundary of a month's days. The 'W' character can only be specified when t=
he day-of-month is a single day, not a range or list of days.
- <br>
- The 'L' and 'W' characters can also be combined for =
the day-of-month expression to yield 'LW', which translates to "last weekda=
y of the month".
- <br>
- The '#' character is allowed for the day-of-week fie=
ld. This character is used to specify "the nth" XXX day of the month. For e=
xample, the value of "6#3" in the day-of-week field means the third Friday =
of the month (day 6 =3D Friday and "#3" =3D the 3rd one in the month). Othe=
r examples: "2#1" =3D the first Monday of the month and "4#5" =3D the fifth=
Wednesday of the month. Note that if you specify "#5" and there is not 5 o=
f the given day-of-week in the month, then no firing will occur that month.
- <br>
- The 'C' character is allowed for the day-of-month an=
d day-of-week fields. This character is short-hand for "calendar". This mea=
ns values are calculated against the associated calendar, if any. If no cal=
endar is associated, then it is equivalent to having an all-inclusive calen=
dar. A value of "5C" in the day-of-month field means "the first day include=
d by the calendar on or after the 5th". A value of "1C" in the day-of-week =
field means "the first day included by the calendar on or after sunday".
- <br>
- The legal characters and the names of months and day=
s of the week are not case sensitive.
- <br>
- </p>
- </div>
- <div class=3D"head headtop">
- <div class=3D"object-title">
- Example cron
- </div>
- </div>
- <div id=3D"cronExamples" style=3D"display:block"> =
=
- <p>Here are some full examples:</p>
- <br>
- <table class=3D"evenOddTable" border=3D"0" cellspaci=
ng=3D"0" cellpadding=3D"2" style=3D"border: 1px solid #d4d4d4; margin: 10px=
">
- <thead>
- <tr>
- <th>
- Expression
- </th>
- <th class=3D"lastCol">
- Meaning
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class=3D"evenLine">
- <td>
- "0 0 12 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 12pm (noon) every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * *"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 * * ? *"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 * * ? 2005"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day during the year 20=
05
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 * 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every minute starting at 2pm and ending=
at 2:59pm, every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 0/5 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every 5 minutes starting at 2pm and end=
ing at 2:55pm, every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 0/5 14,18 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every 5 minutes starting at 2pm and end=
ing at 2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55p=
m, every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 0-5 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every minute starting at 2pm and ending=
at 2:05pm, every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 10,44 14 ? 3 WED"
- </td>
- <td class=3D"lastCol">
- Fire at 2:10pm and at 2:44pm every Wednesday=
in the month of March.
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * MON-FRI"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every Monday, Tuesday, Wedne=
sday, Thursday and Friday
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 15 * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the 15th day of every mon=
th
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 L * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last day of every mon=
th
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * 6L"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last Friday of every =
month
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * 6L"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last Friday of every =
month
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * 6L 2002-2005"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on every last friday of ever=
y month during the years 2002, 2003, 2004 and 2005
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * 6#3"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the third Friday of every=
month
- </td>
- </tr>
- </tbody>
- </table>
- <p>
- Pay attention to the effects of '?' and '*' in the d=
ay-of-week and day-of-month fields!
- <br>
- NOTES:
- <br>
- * Support for the features described for the 'C' cha=
racter is not complete.
- <br>
- * Support for specifying both a day-of-week and a da=
y-of-month value is not complete (you'll need to use the '?' character in o=
n of these fields).
- <br>
- * Be careful when setting fire times between mid-nig=
ht and 1:00 AM - "daylight savings" can cause a skip or a repeat depending =
on whether the time moves back or jumps forward.
- </p>
-
- </div>
+ </tr> =
+ </table> =
</form>
</div>
</td>
@@ -768,11 +467,4 @@
</table>
=
</div>
- <div id=3D"actionBar">
- <span class=3D"dex-PushButton">
- <span class=3D"first-child">
- <a class=3D"ico-ok" href=3D"javascript:sendForm();"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.save.label'/></a>
- </span>
- </span>
- </div>
</div><%@include file=3D"/jsp/jahia/administration/include/foote=
r.inc" %>
Date: Fri Dec 19 16:20:14 2008
New Revision: 24215
URL: https://svndev.jahia.net/websvn/listing.php?sc=3D1&rev=3D24215&repname=
=3Djahia
Log:
Fix UI for Distant Export Management
Added:
branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html
Modified:
branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp
Added: branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/admini=
stration/cron_help.html
URL: https://svndev.jahia.net/websvn/filedetails.php?path=3D/branches/JAHIA=
-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administration/cron_help.ht=
ml&rev=3D24215&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html (added)
+++ branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/cron_help.html Fri Dec 19 16:20:14 2008
@@ -0,0 +1,347 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xh=
tml11/DTD/xhtml11.dtd">
+
+<html xmlns=3D"http://www.w3.org/1999/xhtml">
+<head>
+ <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF-=
8" />
+ <link rel=3D"stylesheet" href=3D"../css/andromeda.css" type=3D"text/cs=
s" />
+ <title>Cron Help</title>
+</head>
+<body>
+<div class=3D"head headtop">
+ <div class=3D"object-title">
+ Help on cron
+ </div>
+</div>
+<div id=3D"cronHelp" style=3D"display:block">
+ <p>
+ For those unfamiliar with "cron", this means being able to create =
a firing schedule such as: "At 8:00am every
+ Monday through Friday" or "At 1:30am every last Friday of the mont=
h".
+ <br>
+ A "Cron-Expression" is a string comprised of 6 or 7 fields separat=
ed by white space. The 6 mandatory and 1
+ optional fields are as follows:
+ <br>
+ </p>
+ <table class=3D"evenOddTable" border=3D"0" cellspacing=3D"0" cellpaddi=
ng=3D"2" style=3D"margin: 10px">
+ <thead>
+ <tr>
+ <th>
+ Field Name
+ </th>
+ <th>
+ Allowed Values
+ </th>
+ <th>
+ Allowed Special Characters
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class=3D"evenLine">
+ <td>
+ Seconds
+ </td>
+ <td>
+ 0-59
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Minutes
+ </td>
+ <td>
+ 0-59
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Hours
+ </td>
+ <td>
+ 0-23
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Day-of-month
+ </td>
+ <td>
+ 1-31
+ </td>
+ <td>
+ , - * ? / L W C
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Month
+ </td>
+ <td>
+ 1-12 or JAN-DEC
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ Day-of-Week
+ </td>
+ <td>
+ 1-7 or SUN-SAT
+ </td>
+ <td>
+ , - * ? / L C #
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ Year (Optional)
+ </td>
+ <td>
+ empty, 1970-2099
+ </td>
+ <td>
+ , - * /
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p>
+ The '*' character is used to specify all values. For example, "*" =
in the minute field means "every minute".
+ <br>
+ The '?' character is allowed for the day-of-month and day-of-week =
fields. It is used to specify 'no specific
+ value'. This is useful when you need to specify something in one o=
f the two fileds, but not the other. See the
+ examples below for clarification.
+ <br>
+ The '-' character is used to specify ranges For example "10-12" in=
the hour field means "the hours 10, 11 and
+ 12".
+ <br>
+ The ',' character is used to specify additional values. For exampl=
e "MON,WED,FRI" in the day-of-week field means
+ "the days Monday, Wednesday, and Friday".
+ <br>
+ The '/' character is used to specify increments. For example "0/15=
" in the seconds field means "the seconds 0,
+ 15, 30, and 45". And "5/15" in the seconds field means "the second=
s 5, 20, 35, and 50". You can also specify '/'
+ after the '*' character - in this case '*' is equivalent to having=
'0' before the '/'.
+ <br>
+ The 'L' character is allowed for the day-of-month and day-of-week =
fields. This character is short-hand for
+ "last", but it has different meaning in each of the two fields. Fo=
r example, the value "L" in the day-of-month
+ field means "the last day of the month" - day 31 for January, day =
28 for February on non-leap years. If used in
+ the day-of-week field by itself, it simply means "7" or "SAT". But=
if used in the day-of-week field after
+ another value, it means "the last xxx day of the month" - for exam=
ple "6L" means "the last friday of the month".
+ When using the 'L' option, it is important not to specify lists, o=
r ranges of values, as you'll get confusing
+ results.
+ <br>
+ The 'W' character is allowed for the day-of-month field. This char=
acter is used to specify the weekday
+ (Monday-Friday) nearest the given day. As an example, if you were =
to specify "15W" as the value for the
+ day-of-month field, the meaning is: "the nearest weekday to the 15=
th of the month". So if the 15th is a
+ Saturday, the trigger will fire on Friday the 14th. If the 15th is=
a Sunday, the trigger will fire on Monday the
+ 16th. If the 15th is a Tuesday, then it will fire on Tuesday the 1=
5th. However if you specify "1W" as the value
+ for day-of-month, and the 1st is a Saturday, the trigger will fire=
on Monday the 3rd, as it will not 'jump' over
+ the boundary of a month's days. The 'W' character can only be spec=
ified when the day-of-month is a single day,
+ not a range or list of days.
+ <br>
+ The 'L' and 'W' characters can also be combined for the day-of-mon=
th expression to yield 'LW', which translates
+ to "last weekday of the month".
+ <br>
+ The '#' character is allowed for the day-of-week field. This chara=
cter is used to specify "the nth" XXX day of
+ the month. For example, the value of "6#3" in the day-of-week fiel=
d means the third Friday of the month (day 6 =3D
+ Friday and "#3" =3D the 3rd one in the month). Other examples: "2#=
1" =3D the first Monday of the month and "4#5" =3D
+ the fifth Wednesday of the month. Note that if you specify "#5" an=
d there is not 5 of the given day-of-week in
+ the month, then no firing will occur that month.
+ <br>
+ The 'C' character is allowed for the day-of-month and day-of-week =
fields. This character is short-hand for
+ "calendar". This means values are calculated against the associate=
d calendar, if any. If no calendar is
+ associated, then it is equivalent to having an all-inclusive calen=
dar. A value of "5C" in the day-of-month field
+ means "the first day included by the calendar on or after the 5th"=
. A value of "1C" in the day-of-week field
+ means "the first day included by the calendar on or after sunday".
+ <br>
+ The legal characters and the names of months and days of the week =
are not case sensitive.
+ <br>
+ </p>
+</div>
+<div class=3D"head headtop">
+ <div class=3D"object-title">
+ Example cron
+ </div>
+</div>
+<div id=3D"cronExamples" style=3D"display:block">
+ <p>Here are some full examples:</p>
+ <br>
+ <table class=3D"evenOddTable" border=3D"0" cellspacing=3D"0" cellpaddi=
ng=3D"2"
+ style=3D"border: 1px solid #d4d4d4; margin: 10px">
+ <thead>
+ <tr>
+ <th>
+ Expression
+ </th>
+ <th class=3D"lastCol">
+ Meaning
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0 12 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 12pm (noon) every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * *"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 * * ? *"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 * * ? 2005"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every day during the year 2005
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 * 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every minute starting at 2pm and ending at 2:59pm, ev=
ery day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0/5 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every 5 minutes starting at 2pm and ending at 2:55pm,=
every day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 0/5 14,18 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every 5 minutes starting at 2pm and ending at 2:55pm,=
AND fire every 5 minutes starting at 6pm and
+ ending at 6:55pm, every day
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 0-5 14 * * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire every minute starting at 2pm and ending at 2:05pm, ev=
ery day
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 10,44 14 ? 3 WED"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 2:10pm and at 2:44pm every Wednesday in the month =
of March.
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * MON-FRI"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am every Monday, Tuesday, Wednesday, Thursday=
and Friday
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 15 * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the 15th day of every month
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 L * ?"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last day of every month
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * 6L"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last Friday of every month
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * 6L"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the last Friday of every month
+ </td>
+ </tr>
+ <tr class=3D"oddLine">
+ <td>
+ "0 15 10 ? * 6L 2002-2005"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on every last friday of every month during=
the years 2002, 2003, 2004 and 2005
+ </td>
+ </tr>
+ <tr class=3D"evenLine">
+ <td>
+ "0 15 10 ? * 6#3"
+ </td>
+ <td class=3D"lastCol">
+ Fire at 10:15am on the third Friday of every month
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <p>
+ Pay attention to the effects of '?' and '*' in the day-of-week and=
day-of-month fields!
+ <br>
+ NOTES:
+ <br>
+ * Support for the features described for the 'C' character is not =
complete.
+ <br>
+ * Support for specifying both a day-of-week and a day-of-month val=
ue is not complete (you'll need to use the '?'
+ character in on of these fields).
+ <br>
+ * Be careful when setting fire times between mid-night and 1:00 AM=
- "daylight savings" can cause a skip or a
+ repeat depending on whether the time moves back or jumps forward.
+ </p>
+
+</div>
+</body>
+</html>
\ No newline at end of file
Modified: branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/adm=
inistration/manage_production.jsp
URL: https://svndev.jahia.net/websvn/diff.php?path=3D/branches/JAHIA-ANDROM=
EDA-BRANCH/war/src/main/webapp/jsp/jahia/administration/manage_production.j=
sp&rev=3D24215&repname=3Djahia
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp (original)
+++ branches/JAHIA-ANDROMEDA-BRANCH/war/src/main/webapp/jsp/jahia/administr=
ation/manage_production.jsp Fri Dec 19 16:20:14 2008
@@ -41,7 +41,14 @@
targetSites =3D property.split(",");
length =3D targetSites.length;
} %>
-
+<script type=3D"text/javascript">
+function viewCronHelp() {
+ var preview =3D window.open('${pageContext.request.contextPath}/jsp/ja=
hia/administration/cron_help.html', =
+ 'CronHelpPopup',
+ 'width=3D800,height=3D400,status=3D0,menubar=3D0,resizable=3D1=
,scrollbars=3D1');
+ preview.focus();
+}
+</script>
<script type=3D"text/javascript">
<!--
var maxID =3D <%=3Dlength%>;
@@ -325,7 +332,11 @@
<a class=3D"ico-delete" href=3D"javascript:if(document=
.mainForm.targetLists.selectedIndex>=3D0)deleteTarget(document.mainForm.tar=
getLists.options[document.mainForm.targetLists.selectedIndex].value);"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.delete.label'/></=
a>
</span> =
</span>
- =
+ <span class=3D"dex-PushButton">
+ <span class=3D"first-child">
+ <a class=3D"ico-ok" href=3D"javascript:sendForm();"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.save.label'/></a>
+ </span>
+ </span>
</div>
</div>
=
@@ -441,325 +452,13 @@
</tr>
<tr>
<td>
- <internal:adminResourceBundle resourceName=3D"org.=
jahia.admin.productionManager.form.cron"/>
+ <internal:adminResourceBundle resourceName=3D"org.=
jahia.admin.productionManager.form.cron"/> <a href=3D"#cronhelp" oncli=
ck=3D"viewCronHelp(); return false;"><img src=3D"${pageContext.request.cont=
extPath}/jsp/jahia/engines/images/about.gif" alt=3D"show cron help"/></a>
</td>
<td>
<input type=3D"text" name=3D"cron" value=3D"">
</td>
- </tr>
- <tr>
- <td valign=3D"top" align=3D"right" colspan=3D"5">
- <span class=3D"dex-PushButton">
- <span class=3D"first-child">
- <a class=3D"ico-ok" href=3D"javascript:sendForm(=
);"><internal:adminResourceBundle resourceName=3D'org.jahia.admin.save.labe=
l'/></a>
- </span>
- </span>
- =
- </td>
- </tr>
- </table>
- <div class=3D"head headtop">
- <div class=3D"object-title">
- Help on cron
- </div>
- </div>
- <div id=3D"cronHelp" style=3D"display:block">
- <p>
- For those unfamiliar with "cron", this means being able to create a=
firing schedule such as: "At 8:00am every Monday through Friday" or "At 1:=
30am every last Friday of the month".
- <br>
- A "Cron-Expression" is a string comprised of 6 or 7 =
fields separated by white space. The 6 mandatory and 1 optional fields are =
as follows:
- <br>
- </p>
- <table class=3D"evenOddTable" border=3D"0" cellspaci=
ng=3D"0" cellpadding=3D"2" style=3D"margin: 10px">
- <thead>
- <tr>
- <th>
- Field Name
- </th>
- <th>
- Allowed Values
- </th>
- <th>
- Allowed Special Characters
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class=3D"evenLine">
- <td>
- Seconds
- </td>
- <td>
- 0-59
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Minutes
- </td>
- <td>
- 0-59
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Hours
- </td>
- <td>
- 0-23
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Day-of-month
- </td>
- <td>
- 1-31
- </td>
- <td>
- , - * ? / L W C
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Month
- </td>
- <td>
- 1-12 or JAN-DEC
- </td>
- <td>
- , - * /
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- Day-of-Week
- </td>
- <td>
- 1-7 or SUN-SAT
- </td>
- <td>
- , - * ? / L C #
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- Year (Optional)
- </td>
- <td>
- empty, 1970-2099
- </td>
- <td>
- , - * /
- </td>
- </tr>
- </tbody>
- </table>
- <p>
- The '*' character is used to specify all values. For=
example, "*" in the minute field means "every minute".
- <br>
- The '?' character is allowed for the day-of-month an=
d day-of-week fields. It is used to specify 'no specific value'. This is us=
eful when you need to specify something in one of the two fileds, but not t=
he other. See the examples below for clarification.
- <br>
- The '-' character is used to specify ranges For exam=
ple "10-12" in the hour field means "the hours 10, 11 and 12".
- <br>
- The ',' character is used to specify additional valu=
es. For example "MON,WED,FRI" in the day-of-week field means "the days Mond=
ay, Wednesday, and Friday".
- <br>
- The '/' character is used to specify increments. For=
example "0/15" in the seconds field means "the seconds 0, 15, 30, and 45".=
And "5/15" in the seconds field means "the seconds 5, 20, 35, and 50". You=
can also specify '/' after the '*' character - in this case '*' is equival=
ent to having '0' before the '/'.
- <br>
- The 'L' character is allowed for the day-of-month an=
d day-of-week fields. This character is short-hand for "last", but it has d=
ifferent meaning in each of the two fields. For example, the value "L" in t=
he day-of-month field means "the last day of the month" - day 31 for Januar=
y, day 28 for February on non-leap years. If used in the day-of-week field =
by itself, it simply means "7" or "SAT". But if used in the day-of-week fie=
ld after another value, it means "the last xxx day of the month" - for exam=
ple "6L" means "the last friday of the month". When using the 'L' option, i=
t is important not to specify lists, or ranges of values, as you'll get con=
fusing results.
- <br>
- The 'W' character is allowed for the day-of-month fi=
eld. This character is used to specify the weekday (Monday-Friday) nearest =
the given day. As an example, if you were to specify "15W" as the value for=
the day-of-month field, the meaning is: "the nearest weekday to the 15th o=
f the month". So if the 15th is a Saturday, the trigger will fire on Friday=
the 14th. If the 15th is a Sunday, the trigger will fire on Monday the 16t=
h. If the 15th is a Tuesday, then it will fire on Tuesday the 15th. However=
if you specify "1W" as the value for day-of-month, and the 1st is a Saturd=
ay, the trigger will fire on Monday the 3rd, as it will not 'jump' over the=
boundary of a month's days. The 'W' character can only be specified when t=
he day-of-month is a single day, not a range or list of days.
- <br>
- The 'L' and 'W' characters can also be combined for =
the day-of-month expression to yield 'LW', which translates to "last weekda=
y of the month".
- <br>
- The '#' character is allowed for the day-of-week fie=
ld. This character is used to specify "the nth" XXX day of the month. For e=
xample, the value of "6#3" in the day-of-week field means the third Friday =
of the month (day 6 =3D Friday and "#3" =3D the 3rd one in the month). Othe=
r examples: "2#1" =3D the first Monday of the month and "4#5" =3D the fifth=
Wednesday of the month. Note that if you specify "#5" and there is not 5 o=
f the given day-of-week in the month, then no firing will occur that month.
- <br>
- The 'C' character is allowed for the day-of-month an=
d day-of-week fields. This character is short-hand for "calendar". This mea=
ns values are calculated against the associated calendar, if any. If no cal=
endar is associated, then it is equivalent to having an all-inclusive calen=
dar. A value of "5C" in the day-of-month field means "the first day include=
d by the calendar on or after the 5th". A value of "1C" in the day-of-week =
field means "the first day included by the calendar on or after sunday".
- <br>
- The legal characters and the names of months and day=
s of the week are not case sensitive.
- <br>
- </p>
- </div>
- <div class=3D"head headtop">
- <div class=3D"object-title">
- Example cron
- </div>
- </div>
- <div id=3D"cronExamples" style=3D"display:block"> =
=
- <p>Here are some full examples:</p>
- <br>
- <table class=3D"evenOddTable" border=3D"0" cellspaci=
ng=3D"0" cellpadding=3D"2" style=3D"border: 1px solid #d4d4d4; margin: 10px=
">
- <thead>
- <tr>
- <th>
- Expression
- </th>
- <th class=3D"lastCol">
- Meaning
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class=3D"evenLine">
- <td>
- "0 0 12 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 12pm (noon) every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * *"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 * * ? *"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 * * ? 2005"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every day during the year 20=
05
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 * 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every minute starting at 2pm and ending=
at 2:59pm, every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 0/5 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every 5 minutes starting at 2pm and end=
ing at 2:55pm, every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 0/5 14,18 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every 5 minutes starting at 2pm and end=
ing at 2:55pm, AND fire every 5 minutes starting at 6pm and ending at 6:55p=
m, every day
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 0-5 14 * * ?"
- </td>
- <td class=3D"lastCol">
- Fire every minute starting at 2pm and ending=
at 2:05pm, every day
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 10,44 14 ? 3 WED"
- </td>
- <td class=3D"lastCol">
- Fire at 2:10pm and at 2:44pm every Wednesday=
in the month of March.
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * MON-FRI"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am every Monday, Tuesday, Wedne=
sday, Thursday and Friday
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 15 * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the 15th day of every mon=
th
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 L * ?"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last day of every mon=
th
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * 6L"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last Friday of every =
month
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * 6L"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the last Friday of every =
month
- </td>
- </tr>
- <tr class=3D"oddLine">
- <td>
- "0 15 10 ? * 6L 2002-2005"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on every last friday of ever=
y month during the years 2002, 2003, 2004 and 2005
- </td>
- </tr>
- <tr class=3D"evenLine">
- <td>
- "0 15 10 ? * 6#3"
- </td>
- <td class=3D"lastCol">
- Fire at 10:15am on the third Friday of every=
month
- </td>
- </tr>
- </tbody>
- </table>
- <p>
- Pay attention to the effects of '?' and '*' in the d=
ay-of-week and day-of-month fields!
- <br>
- NOTES:
- <br>
- * Support for the features described for the 'C' cha=
racter is not complete.
- <br>
- * Support for specifying both a day-of-week and a da=
y-of-month value is not complete (you'll need to use the '?' character in o=
n of these fields).
- <br>
- * Be careful when setting fire times between mid-nig=
ht and 1:00 AM - "daylight savings" can cause a skip or a repeat depending =
on whether the time moves back or jumps forward.
- </p>
-
- </div>
+ </tr> =
+ </table> =
</form>
</div>
</td>
@@ -768,11 +467,4 @@
</table>
=
</div>
- <div id=3D"actionBar">
- <span class=3D"dex-PushButton">
- <span class=3D"first-child">
- <a class=3D"ico-ok" href=3D"javascript:sendForm();"><int=
ernal:adminResourceBundle resourceName=3D'org.jahia.admin.save.label'/></a>
- </span>
- </span>
- </div>
</div><%@include file=3D"/jsp/jahia/administration/include/foote=
r.inc" %>