是否有任何 Java 编译器利用 OSGi 环境而不是使用类路径? [英] Are there any Java-compilers that leverage an OSGi-environment instead of using the classpath?
问题描述
有什么方法可以让 javac
使用现有的 OSGi 环境来解决构建时依赖项而不是明确设置类路径?我知道我可以编写一个使用 JDK 的 Compiler-API 的 OSGi 组件,但我认为应该有一个更直接的解决方案.
或者,如果 javac
没有这样的扩展可用,ejc
是否允许这样的事情(可从命令行使用;我愿意接受 Equinox-仅使用 ejc
的解决方案?
ant task to compile using osgi.
还是现在我猜?
http://code.google.com/p/eclipseosgitools/>
Are there any ways to make javac
use an existing OSGi-environment for the resolution of build-time dependencies instead of setting the classpath explicitely? I know I could write an OSGi-component that uses the Compiler-API of the JDK, but I think there should be a more straightforward solution.
Alternatively, if no such extension is available for javac
, does ejc
allow such a thing (usable from the command line; I'd be willing to accept an Equinox-only solution with ejc
)?
ant task to compile using osgi.
or here now I guess?
http://code.google.com/p/eclipseosgitools/
这篇关于是否有任何 Java 编译器利用 OSGi 环境而不是使用类路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!