Hi Andrew,
If no direct api is possible (i think it isn't), you can at least
access web.xml, cron.xml, etc. via following code (presented as a
junit test) and then read its content to parse it and find the jobs in
your case.
@Test
public void testReadWebXml() {
String filename = "/WEB-INF/web.xml";
if (Util.runningInEclipse()) {
filename = "war" + filename;
}
File file = new File(filename);
assertTrue(file.exists());
}
I don't think you can rewrite it though. Why not store flags in the
datastore to tell a job if it should run or not if you cant rewrite
the file?
regards
didier
On Nov 19, 12:25 pm, andrew <[email protected]> wrote:
> Is it possible to access cron job scheduling programmatically from the
> app engine Java API?
>
> I wanted to have a servlet/task/cron be able to read the list of
> scheduled cron jobs and to disable/delete one so that it is no longer
> run in the future.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.