Advogato Poster

Introduction

The Advogato poster is an application that can post multiple diary entries to advogato using the XML-RPC interface provided by Advogato. The application when run, will look for files in the current directory with a filename having the following format yyyymmdd.html or yyyymmdd.advogato. If it finds such files, it will load the contents of the file to advogato as diary entries. The application assumes that the yyyymmdd part of the filename represents the date of the diary entry and posts the entries to advogato accordingly. The poster will check with advogato the last entry that was posted and only post files that have a date stamp that is later than the last posted entry.

Dependancy

The poster uses the Apache XML-RPC client to talk to Advogato. The poster uses Apache Ant for compilation. Both these tools are part of the Apache software foundation. Their license information is available in the file License.apache

Installation and Usage

The application can be downloaded and installed from this site by following these instructions

  1. Download the advogato poster here - advogato-poster-1.0.1.tar.gz

  2. Unzip the tar.gz file in a new directory. The tar file contains both the source code and the compiled JAR file.

  3. Running the program

    1. Add the contents of the lib directory and the rtlib directory to your classpath.

    2. start the program using the following command line

      $java com.magic_cauldron.blogs.AdvogatoLoader <your advogato uid> <your password>
      						  

    3. The program will report progress of its execution and post the file contents to the Advogato diary.

  4. Building the code

    1. Go to the directory containing the build.xml

    2. type ant : This will perform a complete rebuild

    3. Packaging : The build.xml has a rule for generation of a distributable package.