dist-jar.sh

Tonight I created a shell-script to allow our developers to add jar files to our Ivy repo. As java on Linux developers, we use rpm packaged jars (see jpackage.org).

The shell-script will take in a host and a list of rpms and/or jars. For the rpms, it will extract the jar files to a cpio archive, then copy the jars to the repo.

So for example, if you download antlr-2.7.6.noarch.rpm from jpackage and want to add the jars to your ivy repo, it’s as simple as this:


./dist-jar.sh --host ivyrepo.foobar.com antlr-2.7.6.noarch.rpm

DONE! Next step is to make this a little less dependent on our internal buildsystem so that it is useful for other ivy users.

Happy Thanksgiving everyone.

shell scripting

I’m not very good at writing shell scripts, mainly because of my ignorance to the power of the shell. Today I learned you can write a pretty complex shell script as an ssh command. For example,

ssh $REMOTE_USER$h /bin/bash << EOF
[ -d $Build ] || {
echo "ERROR: Build environment $Build missing" >&2
exit -1
}
...
EOF

I found that cool.

IVY phase 1 integration complete

I finished integrating ivy into our project. As you know we were developing on linux using jpackage rpms which is a great way to install java on your linux box. But we hit a snag when we had to work in different branches with different jar dependencies. So we introduced ivy to our ant build process. I know “Why not use maven?” Because I don’t like it. That’s why. For an interesting comparison of maven and ivy click here.

My next goal is to create some scripts that will allow me to specify a set of jpackage rpms, and have the ivy repository populated and autogenerate the ivy.xml files in the repo.  This will ensure when we build our rpm of java code, we develop against the same versions that we will ship with.

Time for bed, been a long day.

python to SOAP service

I’m working on a python to SOAP client. I’m planning on using ZSI – The Zolera Soap Infrastructure to implement it. This will be an interesting foray into python as I’ve never written anything more than a simple script, hopefully python + SOAP is better than Java + SOAP.

To make it more interesting we have python clients talking via XMLRPC to our server, which will then make a SOAP call. My biggest fear will be performance and SOAP service uptime.

networking saga (parte dos)

I spent 2 hours and 15 minutes on the phone with my father-in-law helping him get the Linksys WAP54G connected to his Linksys WRT54G router. I set it up at my house first so I got get the steps down, and since it was configured for DHCP, I assumed it would get an address once he got it home.  WRONG!

After several resets, both 30 and 60 seconds, I gave up and contacted technical support.  So here I am doing a live chat with Linksys technical support while on the phone with my father-in-law passing him the commands to run.  I had a PC connected to the router, and the access point connected to the router.  Turns out you can connect the PC directly to the access point and configure it at the base ip address of 192.168.1.245 (after a 30 second reset with the power on of  course).

Once we got the access point configured as a wireless repeater, we unplugged it, and moved it downstairs to the basement.  Plugged it into the wall for power, and all lights indicated a go.  We logged on to the machine downstairs (about 10 feet from the access point), and saw the wireless connection utility say “Very Low 11Mbps”.  I was about to flip my lid as we were at the 2 hour mark already. I had him disconnect from his network, and refresh the list of available networks. We then saw 4 out of 5 bars.  I was getting happier but didn’t want to get my hopes up yet.  I asked him to connect to that one.  BINGO!  Connection utility reported “Excellent 54Mbps”. ROCK ON!

Somedays I hate being a computer geek in a family of non-geeks.  Ah, who am I kidding, I love this stuff.