Example User Properties Module

This is an optional module that can be used to specify machine or user account specific settings. Examples of machine-specific properties are tool (jam.home) location or repository (maven.repo) location.

Here is the file I use in my build.xml scripts. It is placed under my user account in the .ant folder and is allways the first file I import:

   <import file="${user.home}/.ant/props-user.xml"/>  

This cleans up repetive clutter in my builds and makes it easy to move JAM dependencies around.

Example Source: props-user.xml

	<?xml version="1.0" encoding="UTF-8"?>
	<project name="props-user">
	<description>
	  + ==\_/============J=A=V=A=G=E=N===A=N=T===M=O=D=U=L=E=S================= +
	  +  \(_)/                                                                  +
	  +  -(_)-                 JavaGen User Properties                          +
	  +  /(_)\                                                                  +
	  + ======================================================================= +
	  +    Copyright (c) 2002-2005 Outsource Cafe, Inc.  All rights reserved.   +
	  + ======================================================================= +
	  +
	  + Place properties here that are cross-project in scope.  For example
	  + if you always use same database or if you want to make permanent changes 
	  + to the file directory layout, this is the place to do it.
	  + The props-global.xml file contains default values for JavaGen properties, 
	  + as well as serving as a reference list for global properties.
	  +
	  + =J=A=M===========================================J=A=V=A=G=E=N=.=C=O=M= +
	</description>
		<!-- ===================================================================== -->
		<!-- Common user-specific properties: -->
		<!-- ===================================================================== -->
		<property environment="env"/>
		<property name="jam.home" location="${env.JAM_HOME}"/>
		<property name="maven.repo" location="${user.home}/.maven/repository"/>
		<property name="maven.home" location="${env.MAVEN_HOME}"/>
	</project>