Can Eclipse not hard-code ECLIPSE_HOME when exporting build.xml?

Posted by stevex on Stack Overflow See other posts from Stack Overflow or by stevex
Published on 2009-11-12T13:29:31Z Indexed on 2010/04/28 12:53 UTC
Read the original article Hit count: 175

Filed under:
|

I have an Eclipse project that I'm attempting to set up to build both with Eclipse and externally with Ant. It seems like a good way to do this is to have Eclipse generate a build.xml file that I can then use with ant.

I'd like to set it up so the build.xml can be regenerated from Eclipse whenever the need arises, which means no hand-editing the build.xml file. But Eclipse writes one entry in there that has a hard-coded path to a directory on my computer, which makes it unsuitable for checking in to a source repository.

Specifically it's this entry that's the trouble:

<property name="ECLIPSE_HOME" value="D:/Eclipse/Eclipse Galileo (3.5) SR1"/>

Is there some way to have Eclipse not output this line, or to make it a relative reference or something that makes sense to check in?

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about ant