Bug 158627 - Eclipse is not following a variable import link
Summary: Eclipse is not following a variable import link
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M1   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 14:23 EDT by Matt CLA
Modified: 2008-07-15 16:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt CLA 2006-09-25 14:23:24 EDT
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>
Comment 1 Matt CLA 2006-09-25 14:24:55 EDT
sorry build.xml should be:

<project name="Domain" basedir="">
    <property file="./default.properties"/>

	<import file="./${payroll.db.type}-db-init.xml"/>
</project>
Comment 2 Darin Swanson CLA 2006-09-25 15:15:58 EDT
Thanks for the bug Matt.

We are not accumulating the property reference and the rest of the string in the import file attribute.
Comment 3 Darin Swanson CLA 2008-07-01 18:59:13 EDT
Changes to the AntEditor to replace the property value within the path.
Comment 4 Darin Swanson CLA 2008-07-01 19:00:02 EDT
Please verify Michael.
Comment 5 Michael Rennie CLA 2008-07-15 16:08:17 EDT
verified.