maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wim Deblauwe <wim.debla...@gmail.com>
Subject Re: [m2] spaces in default-value of a plugin
Date Wed, 16 Nov 2005 16:20:51 GMT
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 <wim.deblauwe@gmail.com>:
>
> 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
>

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