Instructions for the Dailymotion Command-Line Sample
Browse Online
Checkout Instructions
Prerequisites: install Java 7 or later, git,
and Maven. You may need to set
your JAVA_HOME
.
$ git clone https://github.com/googleapis/google-http-java-client
$ cd google-http-java-client-samples/dailymotion-simple-cmdline-sample
$ mvn compile
$ mvn -q exec:java
Setup Project in Eclipse
Prerequisites: install Eclipse IDE
and the M2Eclipse plugin.
- Setup Eclipse Preferences
- Window > Preferences... (or on Mac, Eclipse > Preferences...)
- Select Maven
- Check "Download Artifact Sources"
- Check "Download Artifact JavaDoc"
- Import
dailymotion-simple-cmdline-sample
project
- File > Import...
- Select "Maven > Existing Maven Project" and click
"Next"
- Click "Browse" next to "Select root directory", find
google-http-java-client/samples/dailymotion-simple-cmdline-sample
- Click "Finish"
- Run
- Right-click on project dailymotion-simple-cmdline-sample
- Run As > Java Application
- To enable logging:
- Run > Run Configurations...
- Click on "Java Application > DailyMotionSample"
- VM arguments:
-Djava.util.logging.config.file=${project_loc}/logging.properties
- Click "Run"