@@ -3453,7 +3453,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
34533453const core = __importStar ( __webpack_require__ ( 310 ) ) ;
34543454const executor = __importStar ( __webpack_require__ ( 826 ) ) ;
34553455const exec = __importStar ( __webpack_require__ ( 230 ) ) ;
3456- const SCOPE_AGENT_VERSION = "0.2.2 " ;
3456+ const SCOPE_AGENT_VERSION = "0.2.4 " ;
34573457function run ( ) {
34583458 return __awaiter ( this , void 0 , void 0 , function * ( ) {
34593459 try {
@@ -4041,22 +4041,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
40414041const exec = __importStar ( __webpack_require__ ( 230 ) ) ;
40424042const io = __importStar ( __webpack_require__ ( 954 ) ) ;
40434043const tc = __importStar ( __webpack_require__ ( 602 ) ) ;
4044- const IS_WINDOWS = process . platform === 'win32' ;
40454044function instrument ( agentVersion ) {
40464045 return __awaiter ( this , void 0 , void 0 , function * ( ) {
4047- let scopeAgentPath = yield tc . downloadTool ( "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-agent/" + agentVersion + "/scope-agent-" + agentVersion + ".jar" ) ;
4046+ const workdir = process . cwd ( ) ;
4047+ const scopeAgentPath = yield tc . downloadTool ( "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-agent/" + agentVersion + "/scope-agent-" + agentVersion + ".jar" ) ;
40484048 if ( ! scopeAgentPath . endsWith ( ".jar" ) ) {
40494049 yield io . mv ( scopeAgentPath , scopeAgentPath + ".jar" ) ;
40504050 }
4051- let mavenInstrumentatorPath = yield tc . downloadTool ( "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-maven/0.1.0/scope-instrumentation-for-maven-0.1.0.jar" ) ;
4051+ const mavenInstrumentatorPath = yield tc . downloadTool ( "https://repo1.maven.org/maven2/com/undefinedlabs/scope/scope-instrumentation-for-maven/0.1.0/scope-instrumentation-for-maven-0.1.0.jar" ) ;
40524052 if ( ! mavenInstrumentatorPath . endsWith ( ".jar" ) ) {
40534053 yield io . mv ( mavenInstrumentatorPath , mavenInstrumentatorPath + ".jar" ) ;
40544054 }
4055- if ( IS_WINDOWS ) {
4056- scopeAgentPath = scopeAgentPath . replace ( "\\" , "\\\\" ) ;
4057- mavenInstrumentatorPath = mavenInstrumentatorPath . replace ( "\\" , "\\\\" ) ;
4058- }
4059- yield exec . exec ( "sh -c \"find . -name \\\"pom.xml\\\" -exec java -jar " + mavenInstrumentatorPath + ".jar \\\"" + scopeAgentPath + ".jar\\\" {} \\;\"" ) ;
4055+ yield exec . exec ( "sh -c \"find " + workdir + " -name \\\"pom.xml\\\" -exec java -jar " + mavenInstrumentatorPath + ".jar \\\"" + scopeAgentPath + ".jar\\\" {} \\;\"" ) ;
40604056 } ) ;
40614057}
40624058exports . instrument = instrument ;
0 commit comments