KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a common problem and there are probably countless ways to solve it. I'm looking for an elegant, simple solution to this typical scenario: I have a project in Eclipse with an Ant build file (build.xml) the build file uses a property file (build.properties). In that property file, I want to set a property that points to the root directory of the eclipse project such as: project.root = /path/to/eclipse/workspace/projectName or preferably: project.root = ${path.to.eclipse.workspace}/projectName How do I do this in such a way that: Works on different machines with different paths to the project root (i.e. in a team environment) Allows the ant build.xml file to be executed inside eclipse Allows the ant build.xml file to be executed outside of eclipse (i.e. from command line) Allows the build.properties file to exist in a directory other than the project root
Tags (comma-separated)
Save Edits
Cancel