aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant Build fails in eclipse" Watch "Ant Build fails in eclipse" New topic
Author

Ant Build fails in eclipse

Nilofar Syed
Greenhorn

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: java.io.IOException: CreateProcess: .... D:/Temp/source code/ error=3

Help needed!!
David Newton
Author
Rancher

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
Greenhorn

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
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

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
Greenhorn

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" />
</exec>
</target>

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" />
</condition>
<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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Ant Build fails in eclipse
 
Similar Threads
Eclipse with Ant
Problem running ant task in Eclipse 3.4
First Ant project not compiling
Buildfile: build.xml does not exist! Build failed
taskdef