Example ANT script, libraries and supporting files for doing Salesforce imports and exports using the Data Loader through ANT.
See my blog post for more details on how to use this. http://scottgeosits.com/2014/08/14/scripting-data-loads-for-salesforce-part-1/