You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm-dev@maven.apache.org by "Poppe, Troy" <Tr...@eia.doe.gov> on 2005/01/05 23:05:01 UTC

VSS command line requires Environment vars

I'm just beginning to build a VSS provider for Maven-SCM.  (Still haven't gotten
everything squared on the building front, but who needs to build yet... ;) )

My first discovery here is that the VSS command line, ss.exe, seems to really
like consuming environment variables for passing parameters.  It looks like the
SCM providers use Plexus' command line utilities.  Not being familiar with this,
I'm going to toss this question up to the list.

Does the Plexus Command Line code support setting environment variables?  I can't
find any methods that would seem to suggest that it can, neither in Commandline
or CommandLineUtils.executeCommandLine(...)

I don't see any way to pass the requisite information to the VSS executable other
than environment variables, I'll keep digging on that though.

Thanks!

Troy


Re: VSS command line requires Environment vars

Posted by Emmanuel Venisse <em...@venisse.net>.
----- Original Message ----- 
From: "Poppe, Troy" <Tr...@eia.doe.gov>
To: <sc...@maven.apache.org>
Sent: Wednesday, January 05, 2005 11:05 PM
Subject: VSS command line requires Environment vars


>
> I'm just beginning to build a VSS provider for Maven-SCM.  (Still haven't
gotten
> everything squared on the building front, but who needs to build yet...
;) )
>
> My first discovery here is that the VSS command line, ss.exe, seems to
really
> like consuming environment variables for passing parameters.  It looks
like the
> SCM providers use Plexus' command line utilities.  Not being familiar with
this,
> I'm going to toss this question up to the list.
>
> Does the Plexus Command Line code support setting environment variables?
I can't
> find any methods that would seem to suggest that it can, neither in
Commandline
> or CommandLineUtils.executeCommandLine(...)

Plexus Command Line doesn't support actually environment variables. It will
be a good thing to support this features.
For the moment, you must setup system environment variables (or eventually
purpose a patch for the plexus CLI)

>
> I don't see any way to pass the requisite information to the VSS
executable other
> than environment variables, I'll keep digging on that though.
>
> Thanks!
>

Emmanuel