ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saripalli, Raju" <>
Subject 'basedir' property
Date Mon, 21 Oct 2002 20:41:36 GMT

Normally, the signature for the start of an ant
build file is in the following form:

<project name="projA" default="compile" basedir="D:/source">

Can 'basedir' be set and/or reset elsewhere in the ant file ?

For example, I would like to abstract all hard-coded directory
information into a seperate XML file that gets included as part
of the build process. This way, the "core" buidl file does not change,
only a few properties in a XML file.

Can 'basedir' be set 

(A) before the <project> element as below :
Can it be set in "user-build.xml" ?

<?xml version="1.0" encoding="UTF-8"?>

<!-- user-build.xml has the property settings -->
<!DOCTYPE project [
    <!ENTITY user SYSTEM "user-build.xml">
    <!ENTITY common SYSTEM "common-build.xml">

<project name="projA" default="compile" basedir="D:/source">



(B) after the <project> element ?

<project name="projA" default="compile">

<!-- set basedir after start of project element -->
<property name="basedir" value="D:/source"/>




  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message