Women in Technology

Hear us Roar



Article:
  An Ant Modular Build Environment for Enterprise Applications
Subject:   Location independance
Date:   2006-08-02 11:25:42
From:   RodMcDonald
Response to: Location independance

Great article, good ideas.
1. I found that the global-init target (in the top level build.xml) may specify the following


<property name="root.base.dir" value="./"/>


This has so far worked for me.


2. For template targets I needed to add inheritAll="false" so that ant invoking ant in another directory would set up the correct root.base.dir.


<target name="template" depends="prepare">


<ant target="${target}" dir="server" inheritAll="false"/>
<ant target="${target}" dir="client" inheritAll="false"/>

</target>