Eclipse中Kotlin编译器的输出文件夹 [英] Output folder of the Kotlin compiler in Eclipse

查看:307
本文介绍了Eclipse中Kotlin编译器的输出文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse中的Jetbrains Kotlin编译器将输出到Eclipse编译器插件中的隐藏文件夹。这个隐藏的文件夹然后可以通过Eclipse Kotlin类路径容器使用。



在bndtools中,我们需要一个普通的文件系统文件夹,因为bnd可以从文件系统以及在Eclipse中由于该文件夹是一个链接的资源,所以没有已知的方法可以在Eclipse之外进行翻译。



有人知道如何将Kotlin编译器输出到bin文件夹中?

解决方案

目前,这在Kotlin Eclipse插件中是不可能的。



为了使得Kotlin代码可以从Java使用成为可能,Kotlin插件产生所谓的轻量级文件到这个文件夹。这些类文件不包含方法的主体,它们存储在内存中。



用于运行应用程序的实际类文件仅在启动之前构建,并生成到默认输出文件夹。现在,由于在插件中没有增量编译,所以我们无法在每个节省上生成类文件, / a>还有:
请随时提出这个问题。


The Jetbrains Kotlin compiler in Eclipse outputs to a hidden folder inside the Eclipse compiler plugin. This hidden folder is then made available through the Eclipse Kotlin classpath container.

In bndtools we need a normal file system folder since bnd can run both from the file system as well as in Eclipse. Since the folder is a linked resource there is no known way to translate it outside Eclipse.

Anybody knows how to tell the Kotlin compiler to just output it in the bin folder?

解决方案

Currently, this is not possible in the Kotlin Eclipse plugin.

To make it possible that Kotlin code can be used from Java, Kotlin plugin produce so-called lightweight class files to this folder. These class files do not contain bodies for methods and they are stored in memory.

Actual class files, that are used to run an application, are being built only before launch and they are produced to the default output folder. For now, we cannot produce class files on each save reasonably fast as there is no incremental compilation in the plugin yet: Feel free to upvote for this issue.

这篇关于Eclipse中Kotlin编译器的输出文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆