Anyone know how to auto-include this option when I'm running tests?

View: New views
2 Messages — Rating Filter:   Alert me  

Anyone know how to auto-include this option when I'm running tests?

by laredotornado :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using Maven 1.1 for a Java (1.5) project on Mac 10.5.6. I have a number of unit tests within a sub-folder of my "test" directory. In order to run everything smoothly, I must run a command like below when I cd into my test directory:

maven -Dhttp.nonProxyHosts=localhost test:test

My question is, do you know a file or somewhere I can place the "-Dhttp.nonProxyHosts=localhost" option so I can just run "maven test:test"? When I pass this project on to another developer, I don't want to have to explicitly tell them to include this option.

Thanks, - Dave

Re: Anyone know how to auto-include this option when I'm running tests?

by Lukas Theussl-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Just put it into a .properties file, see

http://maven.apache.org/maven-1.x/reference/properties.html

HTH,
-Lukas


laredotornado wrote:

> Hi,
>
> I'm using Maven 1.1 for a Java (1.5) project on Mac 10.5.6. I have a number
> of unit tests within a sub-folder of my "test" directory. In order to run
> everything smoothly, I must run a command like below when I cd into my test
> directory:
>
> maven -Dhttp.nonProxyHosts=localhost test:test
>
> My question is, do you know a file or somewhere I can place the
> "-Dhttp.nonProxyHosts=localhost" option so I can just run "maven test:test"?
> When I pass this project on to another developer, I don't want to have to
> explicitly tell them to include this option.
>
> Thanks, - Dave
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...