• How to rebuild GooCalSync?

    By Shane Corbin 1 decade ago

    I haven't developed in Java before. Can anybody give instructions for building GooCalSync from the command line?



    I have the java compiler, but don't understand the build procedure. I'm assuming the .jar files are the java version of .ar or archive files. Anyhow, i just want to tweak a couple things and rebuild it.

    • Here you go

      By Shane Corbin 1 decade ago

      In case anybody else has this same problem, here's what I did (btw, I'm doing this in Linux):



      At the time the last release was 0.920, so I just copied the whole unzipped directory structure to a new folder called goocalsync_v0.930.



      First things first, you'll need the java compiler if you don't already have it. In ubuntu karmic, you can do:

      sudo apt-get install sun-java6-jdk



      I think created a bash script to do the building, it looks like this:

      1 #!/bin/bash

      2 GOOCAL_DIR=/home/<your account>/lotus/goocalsync_v0.930

      3 export LD_LIBRARY_PATH=/opt/ibm/lotus/notes/

      4 export PATH=$PATH:/opt/ibm/lotus/notes/

      5

      6 javac -nowarn -Xlint:unchecked -classpath $GOOCAL_DIR/gdata-calendar-2.0.jar

      :$GOOCAL_DIR/gdata-client-1.0.jar:$GOOCAL_DIR/gdata-core-1.0.jar\<br/>
      :$GOOCAL_DIR/goocalsync.jar:/opt/ibm/lotus/notes/jvm/lib/ext/Notes.jar $GOOCAL_DIR/src/*.java<br/>
      



      (If you're not familiar the '' at the end of the line is a line continuation, be careful with spaces)



      This will generate a bunch of .class files in your ./src directory.

      I then created a directory called 'goocalsync' here:

      /home/<your account>/lotus/goocalsync_v0.930/



      I moved all the .class files into it:

      mv ./src/*.class ./goocalsync



      Then I made an archive of that directory, this will replace your existing goocalsync.jar file:

      jar cvf goocalsync.jar goocalsync



      Lastly I created a bash script to initiate the sync. It looks like this:

      1 #!/bin/bash

      2 GOOCAL_DIR=/home/<your account>/lotus/goocalsync_v0.930

      3 export LD_LIBRARY_PATH=/opt/ibm/lotus/notes/

      4 export PATH=$PATH:/opt/ibm/lotus/notes/

      5

      6 java -classpath $GOOCAL_DIR/gdata-calendar-2.0.jar

      :$GOOCAL_DIR/gdata-client-1.0.jar\<br/>
      :$GOOCAL_DIR/gdata-core-1.0.jar:$GOOCAL_DIR/goocalsync.jar\<br/>
      :/opt/ibm/lotus/notes/jvm/lib/ext/Notes.jar goocalsync.GooCalSync<br/>
      



      Hopefully this helps somebody along the way somewhere.