
April 28 2008 by

Andrew Powell
I get asked a lot: "What is the best book for learning 'x'?". Well, I decided that I would post my own bookshelf, a listing of all the books I personally own (tech related). You can browse through the listing, and, if you like, purchase the book from Amazon.
My Bookshelf
Posted in ANT | Apache | Java | ColdFusion | Flex | General | Oracle | Test-Driven Development | Spring | Adobe | Hibernate | Air | XML | AJAX |
0 comments

February 12 2008 by

Andrew Powell
By now, unless you've been under a rock, you know what ANT (another neat tool) can do for you as far as build files go. If you haven't then let me sum it up for you: With ANT, you can test, build, and deploy your applications.
I was in need of a tool for my ANT builds that did a SVN update to grab the latest source before building. A little google goes a long way. I came upon the
Subclipse site. Subclipse is a powerful SVN plugin for Eclipse. I use it al the time and know it well. After a bit of digging on their site, I came upon something I had not noticed before on their site:
SvnAnt. What this nifty little task will allow you to do is checkout, commit, update, and any other SVN action right from your ANT build files. So, how do you use SvnAnt? Well first, after you download it, make sure to put the required jars in ANT's classpath. You also need to have the "svn" command available from the command line. After you have those requirements met, you configure your ANT build file like this:
build.xml:
<?xml version="1.0"?>
<project name="svn-test" basedir="." default="checkoutThis">
<property file="build.properties" />
<path id="svnant.classpath">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<typedef resource="org/tigris/subversion/svnant/svnantlib.xml" classpathref="svnant.classpath" />
<target name="clean">
<delete dir="src_latest"/>
<delete dir="src_${svnant.version}"/>
</target>
<target name="checkoutLatest">
<svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
<checkout url="${svnant.latest.url}" revision="HEAD" destPath="src_latest" />
</svn>
</target>
<target name="checkoutThis">
<svn username="${svnant.repository.user}" password="${svnant.repository.passwd}">
<checkout url="${svnant.this.url}" revision="HEAD" destPath="src_${svnant.version}" />
</svn>
</target>
</project>
build.properties:
# -----------------------------------------------------------------------------
# build.properties
# This file is referenced by the sample build.xml file.
# -----------------------------------------------------------------------------
svnant.version=1.1.0-RC2
# -----------------------------------------------------------------------------
# all jar needed
# -----------------------------------------------------------------------------
lib.dir=lib
svnant.latest.url=http://subclipse.tigris.org/svn/subclipse/trunk/svnant/
svnant.this.url=http://subclipse.tigris.org/svn/subclipse/tags/svnant/${svnant.version}/
svnant.repository.user=guest
svnant.repository.passwd=""
Happy building!
Posted in ANT | Java | ColdFusion | Flex | General | Universal Mind |
1 comments