简体   繁体   English

intellij ant构建消息看起来与eclipse antbuild消息完全不同

[英]intellij ant build message looks totally different from eclipse antbuild message

Using IntelliJ 12.0 here 在这里使用IntelliJ 12.0

when i run ant on my project in eclipse, i get a lovely print out that looks very much like how it looks when i run it from the command prompt. 当我在eclipse中运行我的项目上的ant时,我得到了一个可爱的打印输出,看起来非常像我从命令提示符运行时的外观。

When i run it on my project in IntelliJ, it looks like someone doesn't like clarity. 当我在IntelliJ中的项目上运行它时,看起来有人不喜欢清晰度。 I've pressed all of the little buttons that IntelliJ offers but none of them make it look like how it looks in eclipse. 我按下了IntelliJ提供的所有小按钮,但它们都没有让它看起来像它在eclipse中的样子。

What am i meant to do to get meaningful output from IntelliJ (and follow up, why does IntelliJ seemingly default the ant console to look so terrible?) 我想从IntelliJ获得有意义的输出是什么意思(并跟进,为什么IntelliJ看起来默认蚂蚁控制台看起来如此可怕?)

I don't have any flags (verbose or otherwise) turned on in either ide. 我没有在任何一个ide中打开任何标志(详细或其他)。

UPDATE UPDATE

A sample: here is the end of my eclipse build: 示例:这是我的eclipse构建的结束:

run-checkstyle:
gen-ivy-dependency-images:
     [echo] Converting dot files to images...
run-clirr:
generate-reports:
     [fmpp] - Executing: index.html
     [fmpp] - Executing: macros.ftl
     [fmpp] - Executing: styles.css
     [fmpp] Summary: 3 exe. + 0 xml. + 0 cop. = 3 succ.; 0 warn.; 0 failed
     [echo] Project Portal Generated for theProject here:     C:\MSDE\user\tools\perforce\user\depot\fast\theProject\trunk\install\common\docs/index.html

Here is the (roughly, because it is just gibberish so i'm guessing at what is going on ) same ending for my ant build: 这是(粗略地,因为它只是乱码,所以我猜测正在发生的事情)我的蚂蚁构建的相同结尾:

gen-ivy-dependency-images
if
echo
msde:dot2png-on-fileset
sequential
for
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
sequential
current:dot2png
sequential
exec
exec
run-clirr
generate-reports
msde:create-website
sequential
current:overview-extract
property
fmpp
- Executing: index.html
- Executing: macros.ftl
- Executing: styles.css
Summary: 3 exe. + 0 xml. + 0 cop. = 3 succ.; 0 warn.; 0 failed
echo
post-code-analysis
sequential
build-release
Build finished for: fast/theProject/1.0

Unfortunately, there is not any way to get the exact output you are looking for. 不幸的是,没有任何方法可以获得您正在寻找的确切输出。 As much as I love IntelliJ IDEA, in my ten years of use, I have always found its Ant output a bit lacking. 尽管我喜欢IntelliJ IDEA,但在我十年的使用中,我总是发现它的Ant输出有点缺乏。 (But its awesomeness in all other areas makes up for that.) What you show above for the Eclipse output is basically the same as the ant command line output with its indentation. (但它在所有其他领域的出色性能弥补了这一点。)上面显示的Eclipse输出基本上与带有缩进的ant命令行输出相同。

With IDEA you have two basic options: 使用IDEA,您有两个基本选项:

  1. Tree
  2. Text 文本

The tree mode will mimic Ant's indentation but by using GUI tree nodes. 树模式将模仿Ant的缩进,但使用GUI树节点。 The text mode just prints everything out flat (ie non indented). 文本模式只是将所有内容打印出来(即非缩进)。 You can toggle the mode via the icon 您可以通过图标切换模式 树/文本切换

Within both modes, you can turn "Show all messages" on and off via the icon 在这两种模式下,您都可以通过图标打开和关闭“显示所有消息” 显示所有消息 When on, it adds more verbosity. 启用时,它会增加更多详细程度。

Personally, I have found Tree Mode, All messages off, and expand all nodes 就个人而言,我发现树模式,所有消息都关闭,并展开所有节点 展开全部 (or Ctrl + Num Pad + ) the closest thing to mimicking Ant's output. (或Ctrl + Num Pad + )最接近模仿Ant的输出。 Although the added icons are a bit annoying. 虽然添加的图标有点烦人。 The hassle is you can't search the tree mode output. 麻烦的是你无法搜索树模式输出。 You have to toggle to the text mode to do that. 您必须切换到文本模式才能执行此操作。 So in the end, you have to switch between the various modes. 所以最后,你必须在各种模式之间切换。

Two other options for you are 另外两个选择是

  1. Use the Terminal tool window to run the Ant commands via command line 使用“终端”工具窗口通过命令行运行Ant命令
  2. Create Ant run definition(s) in Settings > [IDE Settings] > External Tools (Click the help button on that dialog for more information). 设置> [IDE设置]>外部工具中创建Ant运行定义(单击该对话框上的帮助按钮以获取更多信息)。 Once defined, you can access via the Tools menu. 定义后,您可以通过“ 工具”菜单进行访问。 You can also define a keyboard shortcut via Settings > [IDE Settings] > Keymap . 您还可以通过设置> [IDE设置]>键盘映射来定义键盘快捷键。 The one downside is this is defined IDE wide, not just for the project. 一个缺点是这是定义IDE范围,而不仅仅是项目。 But by using the groups and keyboard shortcuts, that can be managed. 但是通过使用组和键盘快捷键,可以进行管理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM