Set properties HOMEDIR in build.xml which will be set through user logged in the current system..
Example:
<project name=”test” default=”myhome”>
<property environment=”env”/>
<target name=”myhome”>
<echo message=”My home is ${env.HOME}”/>
</target>
</project>