It's a problem with ant.bat. You have the workaround in faqs http://maven.apache.org/continuum/faqs.html#how-does-continuum-detect-a-successful-build

Emmanuel

Antoine Brun a écrit :
Hello,

I have recently set up a continuum server in order to automate our ant projets integration and I am just realizing that ant build error like javac target compilation error are not detected as errors by continuum. Does anyone knows anything about this? is it an Ant issue? I might be missing something in my ant targets definitions.

below the ant output:

compile:
[javac] Compiling 10 source files to C:\dev\continuum-1.0.1\apps\continuum\working-directory\8\bin [javac] C:\dev\continuum-1.0.1\apps\continuum\working-directory\8\src\opsys\phoenix\tools\ConfManager.java:172: incompatible types
   [javac] found   : void
   [javac] required: opsys.solea.manager.ManagerController
   [javac]         controller = ManagerController.setProperties(props);
   [javac]                                                             ^
   [javac] 1 error

BUILD FAILED
C:\dev\continuum-1.0.1\apps\continuum\working-directory\8\build.xml:13: The following error occurred while executing this line: C:\dev\continuum-1.0.1\apps\continuum\working-directory\8\build.xml:82: Compile failed; see the compiler error output for details.

the javac target:

   <target name="compile" depends="init">
<javac debug="yes" srcdir="${basedir}/src" destdir="${basedir}/bin" fork="true" source="1.5" nowarn="on" failonerror="true">
           <classpath refid="compile.appli.classpath" />
       </javac>
       <copy todir="${basedir}/bin">
<fileset dir="${basedir}/src" includes="**/*Help.html **/*.gif **/*.png" excludes="**/*.java CVS CVS/* **/CVS **/CVS/*" />
       </copy>
   </target>


Thank you,


Antoine Brun






Reply via email to