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"?>
<cronentries>
  <cron>
    <url>/tasks/summary</url>
    <target>beta</target>
    <description>daily summary job</description>
    <schedule>every 24 hours</schedule>
  </cron>
</cronentries>
2. And change pom.xml to:

<plugin>
<groupId>com.google.cloud.tools</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>${appengine.maven.plugin.version}</version>
<configuration>
           <deployables>
             <param>target/appengine-staging/WEB-INF/appengine-generated/cron.yaml</param>
           </deployables>
                 </configuration>
</plugin>

  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.

[ROM] Samsung S7 Stock Firmware BRI (Taiwan台灣)

Latest ROM: G930FXXU1DQEU Download: https://kfhost.net/tpl/firmwares.php?record=B7E6DE774E3811E7963AFA163EE8F90B Reference: http://...