ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: problem with exec task
Date Mon, 17 Nov 2003 06:49:45 GMT
Does it work if you specify a single java file?
And which program gives you the error - Ant or Mgr2Com?

Maybe Mgr2Com needs a list of java files, like "Mgr2Com" and with
globbing (the only term I know for that - from perl) would be "Mgr2Com

But Ant does not do that in that way. You have to use filesets and convert
the result to 
a valid value.

<property name="mgr2com.dir" value="C:\workspace\tools\MGR2COM"/>
<fileset id="allJavaFiles" dir="c:\x\y\z" includes="*.java"/>
<pathconvert property="allJavaFiles.value" refid="allJavaFiles" pathsep="
<exec executable="${mgr2com.dir}\Mgr2Com" dir="${mgr2com.dir}">
    <arg line="${allJavaFiles.value}"/>


> -----Original Message-----
> From: alan brown []
> Sent: Friday, November 14, 2003 11:35 PM
> To:
> Subject: problem with exec task
> This can't be too tough a problem, but it's got me flummoxed.
> I'm trying to call an executable
> <exec executable="C:\workspace\tools\MGR2COM\Mgr2Com">
>             <arg value="c:\x\y\z\*.java"/>
>         </exec>
> However the executable when it runs is giving me an error 
> (subscript out of range) that implies (strongly) that it 
> didn't get the argument properly.
> mgr2com is a VB .exe program if that makes any difference 
> (but it can't, surely!)
> Any help pointing out my glaring error would be appreciated

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