Thank you very much Nicola,

It worked with minor modifications! My final configuration is as follows:

        <configuration>
            <deploy.promote>True</deploy.promote>
            <stage.enableJarClasses>true</stage.enableJarClasses>
            
<stage.stagingDirectory>${java.io.tmpdir}/appengine-staging</stage.stagingDirectory>
           <deployables>            
            <param>${java.io.tmpdir}/appengine-staging/app.yaml</param>
            <param>${java.io.tmpdir}/appengine-staging/cron.yaml</param>
        </deployables>
        </configuration>

By the way, anybody knows what's the difference between using the option 
"Deploy to app engine standard..." and using "Run as / Maven build / 
UpdateApplication appengine:deploy

I used the second option and it worked. If I use the first option, then 
cron.xml is not deployed.

Best regards,
Daniel.


El miércoles, 15 de marzo de 2017, 11:23:46 (UTC+1), Nicola Spreafico 
escribió:
>
> If you're using a Maven-based project, by default implementation of the 
> Maven Plugin only the app.yaml file (the application itself) is deployed.
>
> If you need to deploy the *cron*, *queue *and *index *as well, you need 
> to configure the deployables configuration with all the files
> Please see this issue 
> <https://github.com/GoogleCloudPlatform/app-maven-plugin/issues/143> where 
> I posted a configuration example.
>
> With the default configuration of the Maven plugin, your configuration 
> will be something like this:
>
> <deployables>
>      <param>target/appengine-staging/app.yaml</param>
>      <param>target/appengine-staging/cron.yaml</param>
>      <param>target/appengine-staging/queue.yaml</param>
>      <param>target/appengine-staging/index.yaml</param>
> </deployables>
>
>
> Il giorno martedì 14 marzo 2017 22:35:19 UTC+1, Daniel Garrido ha scritto:
>>
>> Hi all,
>>
>> I have tried to create a cron task using cron.xml file:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <cronentries>
>>   <cron>
>>     <url>/save</url>
>>     <description>daily summary job</description>
>>     <schedule>every 2 minutes</schedule>
>>   </cron>
>> </cronentries>
>>
>> When I deploy my app to app engine using Google Cloud Tools for Eclipse, 
>> the cron task is not being created (it doesn't appear in the console).
>>
>> I tested the same example using the old Eclipse plugin and it worked.
>>
>> It seems that the cron.xml file is not being uploaded. Documentation (
>> https://cloud.google.com/appengine/docs/standard/java/config/cron) says 
>> that I have to upload cron tasks using appcfg. This is automatically 
>> performed by the eclipse plugin.
>>
>> Finally, I used appcfg and the cron task was created.
>>
>> I am wondering if I can do the same using the new Google Cloud Tools in 
>> an automatic way.
>>
>> Best regards,
>> Daniel.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/b2fee6a5-56ea-484c-96c4-754573f3da63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to