Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven: Respect M2_HOME env variable in TypeScript version #1721

Merged
merged 3 commits into from
May 13, 2016

Conversation

davidstaheli
Copy link
Contributor

Refactored Maven TypeScript version. Also, when Maven version is set to 'Default', first look for Maven in the M2_HOME env var path. If not found there, look in the system path.

… 'Default', first look for Maven in the M2_HOME env var path. If not found there, look in the system path.
m2HomeEnvVar = tl.getVariable('M2_HOME');
if (m2HomeEnvVar) {
tl.debug('Using M2_HOME environment variable value for Maven path: ' + m2HomeEnvVar);
mvnExec = path.join(m2HomeEnvVar, 'bin/mvn');
Copy link
Member

@yacaovsnc yacaovsnc May 13, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path.join(m2HomeEnvVar, 'bin', 'mvn')

The slash is OS dependent, should avoid it.

@davidstaheli davidstaheli merged commit 251fe88 into master May 13, 2016
@davidstaheli davidstaheli deleted the users/dastahel/maven branch May 13, 2016 17:23
@@ -0,0 +1,68 @@
{
"exec": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This response file only needs the "exec" commands that you are making for the test that uses it. You can remove the rest. This will help make sure we don't change something incorrectly and the test will still pass unexpectedly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants