English 中文(简体)
ec,一个编组,另一个编组
原标题:eclipse, one classpath for compiling, another for launching

example:
For logging, my code uses log4j. but other jars my code is dependent upon, uses slf4j instead. So both jars must be in the build path. Unfortunately, its possible for my code to directly use (depend on) slf4j now, either by context-assist, or some other developers changes. I would like any use of slf4j to show up as an error, but my application (and tests) will still need it in the classpath when running.

explanation:
I d like to find out if this is possible in eclipse. This scenario happens often for me. I ll have a large project, that uses alot of 3rd party libraries. And of course those 3rd party jars have their own dependencies as well. So I have to include all dependencies in the classpath ("build path" in eclipse) for the application and its tests to compile and run (from within eclipse).

但我想到的是my 代码,以使用所有这些术语,我刚才所决定的少数直接依赖者就是自己。 因此,如果我的守则意外地利用了依赖性,我希望它作为汇编错误。 理想的情况是,没有发现一类,但任何错误都会发生。

我知道,我可以手工地混淆不清时的班次,即便在剪切片内,我也能够修改一米特定班次的班次(在班次中),但是,如果你管理个别试卷,或拥有一门主要班级,则无法管理。

最佳回答
问题回答

如同你的项目一样,它具有足够的依赖关系,你可能考虑与奥吉·布莱斯(pl)建立关系。 每一支轴都有自己的舱载荷,并具体指明了哪些捆包(以及哪一种版本的幅度等等)取决于它出口的一揽子产品,它是否再出口取决于其依赖性。

Eclipse本身是用Eclipse plug-ins 和碎块组成的,它们只是OSGi bundles,其选择性地增加了Eclipse wiring(plugin.xml,用于宣布Eclipse“延伸点”和“延伸点”。 因此,脂肪在制造和管理 built(通过Plug-in开发环境)方面有着相当好的工具。 你发现的许多东西可能导致你把“OSGi bundle”与“扩大Eclipse IDE”混为一谈,但这两个概念是完全可以分开的。

单价工具对你建筑环境中的les子与某个组合所包括的les子进行了相当明确的区分(有时是故意的,但以“有益的医药”方式区分)。

几年后生活在奥塞梯土地上, default的“flat阶级path”对我感到厌恶甚至被打断,这主要是因为(正如你所经历的那样)它把所有的JAR扔到一个巨大的舞台上,希望它们能够找到工作。 秘书长特别代表的环境使我对依赖关系有了更大的控制,而“影响”也自然要求澄清这些关系。 在这些明确声明和运用这些声明的手段之间,项目结构对团队中的每个人来说更为明显。

如果我的守则意外地利用了依赖性,我希望它作为汇编错误。 理想的情况是,没有发现一类,但任何错误都会发生。

规定你的代码为一pl,你直接依靠其他pl子、其他pl子的受扶养人等,并申报每ug。 顺便提一下,就立即做你想要的。 你们获得了汽车装饰物的依附物;你们有红qui,制造错误等等。

它认为最好用maven管理,与m2eclipse相结合。

这样,你就只能执行部分集束建筑寿命周期,而且你可以管理每个建筑步骤的单独一组受扶养人。

在我的经验中,我帮助提高了摩擦,使小组填充(纸)成为为什么需要这一jar和什么许可证的原因。

它们在几条法典中的确是类型,而不是按20条法jar开一个只使用一条法典的档案,或另一种原始特征。

使用ma子可以帮助一段时间,但当你首次发现有像夜晚造或shot光等名字的jar时,你会知道你在jar里再次找你。

结论: 选择依赖性

利用lf4j-over-log4j jar是否有用? 这使得能够使用实际伐木的高尔夫球4j。





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.

热门标签