ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias P. <groups.mpat...@gmx.de>
Subject RE: question regarding WSAD specific ant tasks
Date Thu, 05 Jun 2003 08:56:57 GMT
Hi,

I cant find the <projectBuild> task in the manual. Where is it from? I am
also using wsad and wad 5 and happy for any specific tasks....

Matthias

> >My question is regarding behavior of the <projectBuild> task 
> >when there is at least one compile error present.  The 
> ><projectBuild> task is not failing or terminating when there 
> >is a compile error present regardless of the value of the 
> >"failonerror" attribute.  I get a "BUILD SUCCESSFUL" message 
> >after the task even though compile problems are noted in the 
> >trace.  Is this the expected behavior or am I somehow missing 
> >something?
> 
> I came across the same problem (running inside WSAD 5) ... here is my
> solution:
> 
> <target name="do.compile" depends="clean">
>     <projectBuild ProjectName="${component.name}" failonerror="true"
> 		DebugCompilation="true" BuildType="full"/>
>         
>     <getJavacErrorCount ProjectName="${component.name}"  
>         PropertyName="compile.error.count" />
>     <condition property="build.ok">
>         <equals arg1="${compile.error.count}" arg2="0"/>
>     </condition>
> </target>
> 
> <target name="fail.build.check" unless="build.ok">
>   <fail>Failed while compiling ${component.name}</fail>
> </target>
> 
> <target name="Compile" depends="do.compile, fail.build.check">
> </target>	
> 
> 
> If there is a nicer way to do this, I'd like to know.  
> 
> <= Alex =>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++
Bitte l├Ącheln! Fotogalerie online mit GMX ohne eigene Homepage!


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message