ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David McTavish <>
Subject RE: Creating a property from <path> construct in another ant file ?
Date Wed, 18 Dec 2002 16:22:46 GMT
The only way that I've seen re-usable "paths" using ref-id is to import the
xml file into the desired build script.
have a generic build.xml that contains the re-usable classpath elements, and
in your satellite build script, import as follows:

<!DOCTYPE project [
<!ENTITY common SYSTEM "../../scripts/common-classpath.xml">
<project name="lms" default="help" basedir=".">
<path id="compile.classpath">
    <path refid="resuable.classpath" />

-----Original Message-----
From: Erlandsson Martin [] 
Sent: Wednesday, December 18, 2002 11:17 AM
Subject: Creating a property from <path> construct in another ant file?

Hi List!
I know how to reference a path construct in the same file, using something
                      <path id="app.classpath">
                         <fileset dir="${BASE_DIR}/ThirdPartyJars/">
                              <include name="**/*.jar"/>
                      <property name="APP_CLASSPATH" refid="app.classpath"/>

My question to you: Is it possible to point the refid in the <property> tag
to a <path> construct in another ant file? If so, please tell me how! 
Thanks in advance!
/Martin Erlandsson

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