It's not a secret anymore!
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant Build fails in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Build fails in eclipse" Watch "Ant Build fails in eclipse" New topic

Ant Build fails in eclipse

Nilofar Syed

Joined: Oct 07, 2008
Posts: 6
I'm trying to build my project for the very first time in eclipse using ant.

when I run build.xml , getting an error below:

D:\Temp\java\build.xml:475: Execute failed: CreateProcess: .... D:/Temp/source code/ error=3

Help needed!!
David Newton

Joined: Sep 29, 2008
Posts: 12617

Do you think that including the portion of the Ant file that causes the error would be a good idea?
Nilofar Syed

Joined: Oct 07, 2008
Posts: 6
Sorry..I didn't get what you meant by that

ok.Let me put it this way, build.xml runs fine in unix, I'm trying to configure it now in windows using eclipse.

I've made all the necessary changes to build.xml, but still I guess something is missed out!!

Hope this makes sense!!!

Appreciate your help!

Peter Johnson

Joined: May 14, 2008
Posts: 5852

What David meant is that you need to post your build.xml. Don't post the whole thing - just the target than includes the offending line (475). And please identify that line! Also, was the error message you posted the only output when you ran ant? Or was that error message part of processing the target? If the latter, post the full output for the target.

JBoss In Action
Nilofar Syed

Joined: Oct 07, 2008
Posts: 6
Here it is,

build.xml :

<target name="idl.idls.internal">
[475] <exec dir="./" executable="${orbix.idl.compiler}" output="idl_compiler.out">
<arg line="-I${orbix.idl.dirs} -jbase=-P${idls.internal.package}:-O./source -jpoa=-P${idls.internal.package}:- O./source" />
<arg line="${idls.internal.dir}/eps.idl" />
<arg line="${idls.internal.dir}/IFTSConstDefs.idl" />
<arg line="${idls.internal.dir}/IFTSidl" />

with properties:

<property name="idls.internal.dir" value="D:/Temp/source code/idls/internal" />
<property name="orbix.idl.compiler" value="${orbix.dir}/asp/${orbix.version}/bin/idl" />
<property name="orbix.idl.dirs" value="${orbix.dir}/asp/${orbix.version}/idl" />
<condition property="orbix.dir" value="C:/PROGRA~1/IONA">
<os family="windows" />
<property name="orbix.version" value="${env.ORBIX_VERSION}" />

The line highlighted in bold is where I'm getting error(475)
The error I posted is the only thing I'm getting when I build it.
Nilofar Syed

Joined: Oct 07, 2008
Posts: 6
I got the issue, ${env.ORBIX_VERSION} was not defined... obvious thing missed

Thanks a lot for your concern...
I agree. Here's the link:
subject: Ant Build fails in eclipse
jQuery in Action, 3rd edition