Instructions for the TaskQueue V1Beta1 Command-Line Sample

Browse Online

Checkout Instructions

Prerequisites: install Java 6, Mercurial and Maven. You may need to set your JAVA_HOME.

Important: after checking out the project, and before compiling and running it, you need to edit client_secrets.json to enter the required credentials information (see instructions). Otherwise, you will get a 400 INVALID_CLIENT error in the browser.

cd [someDirectory]
hg clone https://code.google.com/p/google-api-java-client.samples/ google-api-java-client-samples
cd google-api-java-client-samples/shared/shared-sample-cmdline
[editor] src/main/resources/client_secrets.json
mvn source:jar install
cd ../../taskqueue-cmdline-sample
mvn compile
mvn -q exec:java -Dexec.args="appName taskqueueName leaseSeconds numberOfTasksTobeLeased"

Setup Project in Eclipse 3.5/3.6

Prerequisites: install Eclipse, the Mercurial plugin, and the Maven plugin.