ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cantrell David M SSgt AFRS/RSIDS <>
Subject RE: Exec creates a new Shell?
Date Wed, 19 Nov 2003 13:20:31 GMT

To me, the obvious next test would be to move the command shell to a dir off
your root (short name like "test", no long names with spaces), then try to
call it there and see if it works. Make a new target that just calls notepad
or something similar, so you can see it work immediately.

However, if you don't want to do that, try the junction utility from
SysInternals. NTFS has basic symlink capability, but (like most people, I
suspect) I never knew about it until I heard about this program. You can do

* junction c:\4nt "e:\program files\4nt"

It will make a dir called c:\4nt that points to your actual 4nt directory -
WITHOUT expansion, i.e. the system really sees it as just "c:\4nt\...".

It helped me resolve a similar problem I had with one of the java programs
we have (jedit, junit, ant, maven, can't remember) that didn't like long
pathnames either.


 -----Original Message-----
From: 	Robert Priest [] 
Sent:	Tuesday, November 18, 2003 4:16 PM
To:	'Ant Users List'
Subject:	RE: Exec creates a new Shell?

But that was just it- we were using 8.3 filenames.

My co-worker was uses a 4nt shell as his default shell. So he sets:


The exec calls a proprietary make tool:

<target name="signcab">
     <exec executable="${BMAKE}" failonerror="true" >
        <arg line="-dCAB_FILE=${cabfile} ${NATIVE_SOURCE}signPWFTcab.mke"/>


<property name="BMAKE"   value="${DMS_SOURCE}util/bin/bmake.exe"/>

that path equates to: "D:\pw\src" which as you can see, is not what the
command was complaining about. It was complaining about the "E:\Program" and
his ComSpec was specified with the 8.3 dirname\filename. So that is what led
me to think that maybe it was being "expanded" properly. In all his other
paths he uses 8.3, except for a few path includes in his "Path" dir. But I
think it has something to do with the path for 4NT.exe.

When we switched the ComSpec env var back to using cmd.exe it all worked


-----Original Message-----
From: Christopher Schultz []
Sent: Tuesday, November 18, 2003 4:36 PM
To: Ant Users List
Subject: Re: Exec creates a new Shell?

>> Okay. I can buy that. But do you have any suggestions to solve my 
>> original problem.
> Yep: modify the ant.bat bootstrap script that everyone uses to st 
> (or whatever it's supposed to be)

Wait; sorry. That wasn't the problem.

Try this: check your script to see what it's trying to call (C compiler, 
etc.). Try to express the path to this program without using spaces, 
like using the old-skool 8.3 syntax for the path names.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message