gradle-eclipse插件如何处理dependsOn [英] How does gradle-eclipse plugin deal with dependsOn

查看:449
本文介绍了gradle-eclipse插件如何处理dependsOn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Gradle Eclipse插件如何构造如下

  compileJava.dependsOn xjc 


解决方案

Gradle-Eclipse插件实际上并没有对Gradle构造做任何特殊的处理。
您可以打开Gradle Tasks视图并运行您的'xjc'或'compileJava'任务。您还可以将compileJava或任何其他项目添加到要在Gradle Import向导中导入后运行的任务,并且每次Gradle项目刷新时都会运行此任务(右键单击项目 - > Gradle - > Refresh All)。
当您使用JDT在Eclipse中构建项目时,compileJava任务不会运行,如果这是您所要求的......您必须以某种方式手动启动它。


How does Gradle Eclipse plugin figure constructs as below

compileJava.dependsOn xjc

解决方案

Gradle-Eclipse plugin doesn't really do anything special with Gradle constructs. You'd be able to open Gradle Tasks view and run your 'xjc' or 'compileJava' task. You can also add your 'compileJava' or any other project to tasks to run after import in the Gradle Import wizard and have this task running every time Gradle project is refreshed (right-click on the project -> Gradle -> Refresh All). Whenever you build the project in Eclipse with JDT the compileJava task is not running if that is what you are asking... you'd have to start it up manually somehow.

这篇关于gradle-eclipse插件如何处理dependsOn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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