Sunday, April 2, 2017

[Google Cloud] Upload Cron using Eclipse

1. Create cron.xml and put it on src/main/webapp/WEB-INF:

<?xml version="1.0" encoding="UTF-8"?>
    <description>daily summary job</description>
    <schedule>every 24 hours</schedule>
2. And change pom.xml to:


  Note that cron.yaml is the output staging of cron.xml when deploying.

3. And run command below on Terminal for checking if the deployed works correctly:
mvn appengine:deploy -X

Why not using Eclipse to upload cron?

It seems it is Google Tools issues.

No comments:

Post a Comment