在InteliiJ社区版Ant构建没有表现出编译器错误 [英] Ant build on InteliiJ Community Edition no compiler errors shown

查看:131
本文介绍了在InteliiJ社区版Ant构建没有表现出编译器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我想建立在社区的IntelliJ 11.1.4版本在Ubuntu 12.04.1 LTS运行的现有项目

I have an existing project that I want to build in the IntelliJ Community Edition 11.1.4 running on Ubuntu 12.04.1 LTS

在我添加Ant构建窗口项目的的build.xml 通过点击<大骨节病> + 按钮,在窗口的左上角并导航到该文件。与构建文件关联的Ant任务列出,我点击绿色的播放按钮来运行Ant构建它开始预期。

In the Ant Build window I added the project's build.xml by clicking on the + button in the top left hand corner of the window and navigating to the file. The ant tasks associated with the build file are listed and I click on the green play button to run the ant build which commences as expected.

我期待看到编译器错误,并有CE的IntelliJ present这些编译器错误,并让我跳转到(违规)来源有双重点击在消息窗口中的错误。

I was expecting to see compiler errors and have IntelliJ CE present those compiler errors and allow me to Jump to (the offending) Source having double clicked on the errors in the Messages window.

相反,消息窗口显示以下错误,当我双击它带我到的javac Ant任务中的版本。 XML 文件。

Instead, the messages window displays the following error which when I double-click on it takes me to the javac ant task in the build.xml file.

build.xml:389: Compile failed; see the compiler error output for details.

这是很好的建议,我非常想追随它,但我不能,因为没有任何地方在的消息窗口中显示的编译错误。下一步,previous消息不浏览到一个实际的编译器错误。

This is great advice and I very much want to follow it but I cannot because the compiler error is not displayed anywhere in the Messages window. Next and Previous Message do not navigate to an actual compiler error.

我想知道如何才能够看到的IntelliJ的编译器错误消息已经运行Ant构建。

I want to know how to be able to see the compiler error messages in IntelliJ having run an Ant build.

我尝试添加-v标志的蚂蚁命令行:场执行属性。这使得该行为没有什么区别。

I tried adding the -v flag to the Ant command line:field in Execution Properties. This made no difference to the behaviour.

我又试图降低评级从1.8蚂蚁到Ant 1.7。这个时候我确实看到了行为的改变。构建不运行在所有和我收到以下错误 https://gist.github.com/4073149 在终端。

I then tried down grading from Ant 1.8 to Ant 1.7. this time I did see a change in behaviour. the build does not run at all and I get the following error https://gist.github.com/4073149 at the terminal.

的javac Ant任务看起来是这样的。

The javac ant task looks like this.

<target name="compile-only" depends="">
    <stopwatch name="Compilation"/>
<javac destdir="${build.classes.dir}" debug="on" deprecation="off" 
       classpathref="base.path" excludes="/filtering/**/**">
    <src path="${src.dir}"/>
    <src path="${build.autogen.dir}"/>
</javac>
<!-- Copy all resource files to the output dir -->
<copy todir="${build.classes.dir}">
    <fileset dir="${src.dir}">
        <include name="**/*.properties"/>
        <include name="**/*.gif"/>
        <include name="**/*.png"/>
        <include name="**/*.jpg"/>
        <include name="**/*.svg"/>
        <include name="**/*.jpeg"/>
        <exclude name="**/.svn"/>
    </fileset>
</copy>
<stopwatch name="Compilation" action="total"/>

推荐答案

IDEA只是打印Ant的输出。尝试使用上的消息面板左侧相应的按钮从树视图中的输出切换到纯文本视图:

IDEA just prints Ant's output. Try switching the output from the tree view to the plain text view using the corresponding button on the left of the messages panel:

如果输出包含错误,你应该能够看到他们在那里。

If the output contains errors, you should be able to see them there.

还有它的速度更快和更容易使用提供的IDEA渐进式编译(构建 | 制作)。

Also it's much faster and easier to use IDEA provided incremental compilation (Build | Make).

这篇关于在InteliiJ社区版Ant构建没有表现出编译器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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