Ant jdtCompileLogPublisher javac
我有一个ant构建脚本,它编译并生成项目的编译日志(在compileLog.xml文件中)。我使用jdtCompileLogPublisher将这些结果发布到RTC 现在的情况是,当我在项目的工作良好的来源。当我在项目中没有任何源代码时(这是一个没有源代码的空项目的要求之一),编译步骤会被跳过,因为没有源代码,而jdtCompileLogPublisher会失败,因为作为此步骤输入的compileLog.xml文件不会被创建,因为编译本身已被跳过 如果compileLog.xml不可用,我尝试创建一个新的compileLog.xml。由于这个原因,我遇到了新的问题,因为文件是空的Ant jdtCompileLogPublisher javac,ant,javac,eclipse-jdt,Ant,Javac,Eclipse Jdt,我有一个ant构建脚本,它编译并生成项目的编译日志(在compileLog.xml文件中)。我使用jdtCompileLogPublisher将这些结果发布到RTC 现在的情况是,当我在项目的工作良好的来源。当我在项目中没有任何源代码时(这是一个没有源代码的空项目的要求之一),编译步骤会被跳过,因为没有源代码,而jdtCompileLogPublisher会失败,因为作为此步骤输入的compileLog.xml文件不会被创建,因为编译本身已被跳过 如果compileLog.xml不可用,我尝试创
<target name="compile" depends="prepare" description="Compile the source code">
<mkdir dir="${nameBuild}/${dir.build}/bin" />
<!-- Add target ${label.jdkversion} to make it possible to build with a certain jdk version-->
<javac compiler="org.eclipse.jdt.core.JDTCompilerAdapter" destdir="${nameBuild}/${dir.build}/bin" debug="true" deprecation="on" encoding="ISO-8859-1" source="${buildInfo.jdkVersion}" target="${buildInfo.jdkVersion}" debuglevel="lines,source" failonerror="false" errorProperty="buildFailed">
<compilerarg line="-warn:+raw" />
<compilerarg line="-warn:-serial" />
<compilerarg line="-enableJavadoc" />
<compilerarg line="-log source/${name}/compileLog.xml" />
<src path="${name}/${dir.src}" />
<classpath refid="application.classpath" />
</javac>
<jdtCompileLogPublisher buildResultUUID="${buildInfo.buildResultUUID}" repositoryAddress="${repositoryAddress}" userId="${userId}" passwordFile="${psFile}" filePath="compileLog.xml" />
<fail if="buildFailed" message="Compile ${name} failed." />
</target>
我修改了标签
到
这解决了我的问题