Rob*_*lty 15 ant intellij-idea
我有一个现有的项目,我想在Ubuntu 12.04.1 LTS上运行的IntelliJ Community Edition 11.1.4中构建
在Ant Build窗口中,我build.xml通过单击+窗口左上角的按钮并导航到文件来添加项目.列出了与构建文件关联的ant任务,然后单击绿色播放按钮以运行按预期开始的ant构建.
我期待看到编译器错误并让IntelliJ CE显示那些编译器错误并允许我跳转到(违规)Source双击了Messages窗口中的错误.
相反,消息窗口显示以下错误,当我双击它时,我将转到文件中的javacant任务build.xml.
build.xml:389: Compile failed; see the compiler error output for details.
Run Code Online (Sandbox Code Playgroud)
这是一个很好的建议,我非常想遵循它,但我不能,因为编译器错误没有显示在消息窗口的任何地方.下一个和上一个消息不会导航到实际的编译器错误.
我想知道如何能够在运行Ant构建的IntelliJ中看到编译器错误消息.
我尝试将-v标志添加到执行属性中的Ant命令行:字段.这对行为没有任何影响.
然后我尝试从Ant 1.8到Ant 1.7的评分.这次我确实看到了行为的变化.构建根本不运行,我在终端上收到以下错误https://gist.github.com/4073149.
该javacAnt任务看起来是这样的.
<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"/>
Run Code Online (Sandbox Code Playgroud)
Cra*_*der 27
IDEA只打印Ant的输出.尝试使用消息面板左侧的相应按钮将输出从树视图切换到纯文本视图:

如果输出包含错误,您应该能够在那里看到它们.
使用IDEA提供的增量编译(Build| Make)也更快更容易.
| 归档时间: |
|
| 查看次数: |
8509 次 |
| 最近记录: |