Skip to content

Commit

Permalink
[MNG-7189] Remove undocumented environment variable MAVEN_BASEDIR in …
Browse files Browse the repository at this point in the history
…startup scripts

This closes apache#109
  • Loading branch information
michael-o committed Jul 22, 2021
1 parent 4c5d721 commit e833f9e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ public void testitMNG5937Bin()

unpack( testDir.toPath(), "bin" );

envVars.put( "MAVEN_BASEDIR", testDir.getAbsolutePath() );

Verifier verifier = newVerifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.setDebug( true );
Expand All @@ -130,8 +128,6 @@ public void testitMNG5937Script()

unpack( testDir.toPath(), "script" );

envVars.put( "MAVEN_BASEDIR", testDir.getAbsolutePath() );

Verifier verifier = newVerifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.setDebug( true );
Expand All @@ -147,8 +143,6 @@ public void testitMNG5937Source()

unpack( testDir.toPath(), "source" );

envVars.put( "MAVEN_BASEDIR", testDir.getAbsolutePath() );

Verifier verifier = newVerifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
verifier.setDebug( true );
Expand Down Expand Up @@ -178,7 +172,6 @@ public void testitMNG5937WrapperProperties()
}

envVars.remove( "MVNW_REPOURL" );
envVars.put( "MAVEN_BASEDIR", testDir.getAbsolutePath() );

Verifier verifier = newVerifier( testDir.getAbsolutePath() );
verifier.setAutoclean( false );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ public MavenITmng6118SubmoduleInvocation() throws IOException
{
super( "[4.0.0-alpha-1,)" );
testDir = ResourceExtractor.simpleExtractResources( getClass(), RESOURCE_PATH );
// It seems MAVEN_BASEDIR isn't always properly set, so make sure to have the right value here
// as it is determined by the mvn script.
envVars.put( "MAVEN_BASEDIR", testDir.getAbsolutePath() );
}

/**
Expand Down

0 comments on commit e833f9e

Please sign in to comment.