Found the problem myself, I need to use 2 properties: one for the directory
and one for the name of the executable and then use:
Commandline cmd = new Commandline();
cmd.setWorkingDirectory( builderPath );
cmd.setExecutable( builderName );
2005/11/16, Wim Deblauwe <[EMAIL PROTECTED]>:
>
> Hi,
>
> In my plugin, I have the following:
>
> /**
> * @parameter expression="${builderPath}" default-value="C:\\Program
> Files\\InstallShield 10.5\\System\\ISCmdBld.exe"
> */
> private String builderPath;
>
> I then use the CommandLine class:
>
> Commandline cmd = new Commandline();
> cmd.setExecutable( builderPath );
>
> but this fails:
>
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Build failed with exit code: 1 - 'C:\Program' is not recognized as
> an internal or external command,
> operable program or batch file.
>
> any idea's on the cause of the problem?
>
> regards,
>
> Wim
>