Thanks! Just what I needed! /Martin -----Original Message----- From: David McTavish [mailto:[EMAIL PROTECTED]] Sent: den 18 december 2002 17:23 To: 'Ant Users List' Subject: RE: Creating a property from <path> construct in another ant file?
The only way that I've seen re-usable "paths" using ref-id is to import the xml file into the desired build script. ie: 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="."> &common; <path id="compile.classpath"> <path refid="resuable.classpath" /> </path> </project> d. -----Original Message----- From: Erlandsson Martin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 11:17 AM To: [EMAIL PROTECTED] 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 like: <path id="app.classpath"> <fileset dir="${BASE_DIR}/ThirdPartyJars/"> <include name="**/*.jar"/> </fileset> </path> <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 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>