开发者

Setting Ant project name without changing build file

开发者 https://www.devze.com 2023-01-07 10:34 出处:网络
We have a Java application and a supporting Ant build.xml file, and the team use the Eclipse IDE. I (and others) have the same application checked out several times, usually different branches. In the

We have a Java application and a supporting Ant build.xml file, and the team use the Eclipse IDE. I (and others) have the same application checked out several times, usually different branches. In the Eclipse "Ant" view, I get a list of the Ant projects, but they all have the same name - coming from the 'project' element of the Ant buildfile.

I would dearly love to be able to rename these without having to change build.xml, because doing so will force me to have to commit or rollback the change, and will get confused with any "real" changes to the buildfile.

As it is, I have to click on the project name in the Ant view to check I'm in the right one before I run any target, and there's a continuing risk I'll run a target against the wrong project.

Ideally, I'd like either to be able to visually annotate the Ant projects in Eclipse OR to override the Ant project name from an Eclipse project variable or setting.

Surely this is a quite common issue, any ideas?

Thanks, St开发者_运维技巧ephen.


If you don't need to actually edit code from all of the branches in the same window, you could always create and manage multiple Eclipse workspaces. Create one workspace for each branch. That might solve your problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号