File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import * as os from "os" ;
2+ import * as path from "path" ;
23
34const HOME = os . homedir ( ) ;
45
@@ -50,9 +51,15 @@ export function getLocalFile(
5051 ) {
5152 return undefined ;
5253 }
53- return `${ HOME } /.m2/repository/${ getSplitGroupId (
54- groupId
55- ) } /${ artifactId } /${ version } /${ artifactId } -${ version } .pom`;
54+ return path . join (
55+ HOME ,
56+ ".m2" ,
57+ "repository" ,
58+ getSplitGroupId ( groupId ) ,
59+ artifactId ,
60+ version ,
61+ `${ artifactId } -${ version } .pom`
62+ ) ;
5663}
5764
5865export function getRemoteUrl (
@@ -96,9 +103,15 @@ export function getRemoteRepositoriesFile(
96103 ) {
97104 return undefined ;
98105 }
99- return `${ HOME } /.m2/repository/${ getSplitGroupId (
100- groupId
101- ) } /${ artifactId } /${ version } /_remote.repositories`;
106+ return path . join (
107+ HOME ,
108+ ".m2" ,
109+ "repository" ,
110+ getSplitGroupId ( groupId ) ,
111+ artifactId ,
112+ version ,
113+ "_remote.repositories"
114+ ) ;
102115}
103116
104117function getSplitGroupId ( groupId : string ) : string {
You can’t perform that action at this time.
0 commit comments