Community
Participate
Working Groups
I have an import like the following <import file="./${payroll.db.type}-db-init.xml"/> and pressing <F3> does not find the file with an error in the status bar of "Current text sleection does not resolve to an Ant reference Version: 3.2.0 Build id: M20060629-1905 below are my build file and supporting file definitions I used to reproduce the issue outside of my production build file. <---build.xml---> <project name="Domain" basedir=""> <property file="./default.properties"/> <!-- <import file="../inc/inc_prop.xml"/> <property name="db.type">${payroll.db.type}</property> --> <import file="./${payroll.db.type}-db-init.xml"/> </project> <---default.properties---> #-- #-- defines default properties used by all subprojects' build.xml files #-- payroll.appserver.type=jboss payroll.db.type=Oracle <---Oracle-db-init.xml---> <project name="oracle-db-init" default="dbinit"> <!-- Default Installation Properties --> <!-- These are the database init tasks. This should be called by main --> <target name="dbinit"> <!-- switch on the database type and configure properties --> <echoproperties destfile="default.properties"/> </target> </project>
sorry build.xml should be: <project name="Domain" basedir=""> <property file="./default.properties"/> <import file="./${payroll.db.type}-db-init.xml"/> </project>
Thanks for the bug Matt. We are not accumulating the property reference and the rest of the string in the import file attribute.
Changes to the AntEditor to replace the property value within the path.
Please verify Michael.
verified.