是否可以查看Eclipse正在进行的shell命令? [英] Is it possible to view what shell commands Eclipse is making?

查看:222
本文介绍了是否可以查看Eclipse正在进行的shell命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个相当长的项目,我正在努力,这需要一个旧的JDK,以正确的编译,各种JAR包括,等等。我使用批处理脚本组装整个项目,我想使整个过程完全自动化的脚本。所以我想知道,如果我可以查看Eclipse命令Eclipse使特定的代码变成一个JAR(从编译与适当的JDK我指定的JAR),所以我不需要手动进入和浪费了大量的时间,确保我做的事情在壳本身。谢谢!

I have a rather length project I'm working on, which requires an older JDK to compile correctly, various JAR includes, and the like. I'm assembling the entire project using a batch script, and I'd like to make the whole process fully automated with the script. So I was wondering if I could view the shell commands Eclipse does to make a particular piece of code turn into a JAR (from compiling with the appropriate JDK I specified to making the JAR), so I don't need to manually go in and waste a ton of time making sure I do things right in the shell myself. Thanks!

推荐答案

Eclipse不会执行shell命令进行编译。它使用自己的内置编译器。

Eclipse doesn't execute shell commands for compilation. It uses its own builtin compiler.

可以让Eclipse为你生成ANT脚本。此脚本可以使用Eclipse内置编译器编译类。它还将配置用于编译的类路径。这可能是好的第一步。要创建脚本,请选择您的项目,然后在上下文菜单中选择导出> Ant构建文件。

It is possible to let Eclipse generate ANT Script for you. This script can compile your classes using Eclipse builtin compiler. It will also configure classpath for compilation. It might be good first step. To create script, select your project and choose Export > Ant Buildfiles in context menu.

这篇关于是否可以查看Eclipse正在进行的shell命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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