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"
Prerequisites: install Eclipse, the Mercurial plugin, and the Maven plugin.
taskqueue-cmdline-sample project
[someDirectory]/google-api-java-client-samples/taskqueue-cmdline-sample
and click "Next"-Djava.util.logging.config.file=${project_loc}/logging.properties