Intellij Ant - javac 不编译文件,没有错误或消息
Intellij Ant - javac does not compile files, no error or message
我一直在尝试在Intellij中使用Ant编译一个项目,当javac任务运行s时,没有输出,但没有错误。如果我 运行 ant 手动使用相同的构建文件,一切都会正确编译并且我有 javac.
的输出
这是build.xml中的任务:
<javac classpathref="libClassPath" srcdir="${sourceFolderPath}" destdir="${classFilePath}" verbose="true" debug="true"/>
这是 intellij 的 ant 的输出:
build.xml
property
taskdef
fileset
path
property
taskdef
taskdef
compileClasses
echo
===== Compiling src files C:\Users\user\project\Build/../src
echo
Class file Path: C:\Users\user\project\Build/dist/classes
mkdir
Created dir: C:\Users\user\project\Build\dist\classes
javac
显示所有输出已打开。不知道我错过了什么。我也重新安装了intellij,但无济于事。
所以这是 ant/lib 目录中的一个 jar 文件的问题。其中一个压缩不正确,或者已损坏。一旦我更换了这个罐子,一切都开始工作了。
我能够找到这个问题的唯一方法是使用 IDEA 中的 javac2 任务。由于某些原因,这个错误在使用普通 javac 任务时被 intellij 隐藏了。
谢谢@Ishnark 的帮助。
我一直在尝试在Intellij中使用Ant编译一个项目,当javac任务运行s时,没有输出,但没有错误。如果我 运行 ant 手动使用相同的构建文件,一切都会正确编译并且我有 javac.
的输出这是build.xml中的任务:
<javac classpathref="libClassPath" srcdir="${sourceFolderPath}" destdir="${classFilePath}" verbose="true" debug="true"/>
这是 intellij 的 ant 的输出:
build.xml
property
taskdef
fileset
path
property
taskdef
taskdef
compileClasses
echo
===== Compiling src files C:\Users\user\project\Build/../src
echo
Class file Path: C:\Users\user\project\Build/dist/classes
mkdir
Created dir: C:\Users\user\project\Build\dist\classes
javac
显示所有输出已打开。不知道我错过了什么。我也重新安装了intellij,但无济于事。
所以这是 ant/lib 目录中的一个 jar 文件的问题。其中一个压缩不正确,或者已损坏。一旦我更换了这个罐子,一切都开始工作了。
我能够找到这个问题的唯一方法是使用 IDEA 中的 javac2 任务。由于某些原因,这个错误在使用普通 javac 任务时被 intellij 隐藏了。
谢谢@Ishnark 的帮助。