Skip to content
This repository was archived by the owner on Aug 14, 2020. It is now read-only.

Commit 98e3c5b

Browse files
Update to Scope v0.2.4
1 parent e035f37 commit 98e3c5b

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

dist/index.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3453,7 +3453,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
34533453
const core = __importStar(__webpack_require__(310));
34543454
const executor = __importStar(__webpack_require__(826));
34553455
const exec = __importStar(__webpack_require__(230));
3456-
const SCOPE_AGENT_VERSION = "0.2.2";
3456+
const SCOPE_AGENT_VERSION = "0.2.4";
34573457
function run() {
34583458
return __awaiter(this, void 0, void 0, function* () {
34593459
try {
@@ -4041,22 +4041,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
40414041
const exec = __importStar(__webpack_require__(230));
40424042
const io = __importStar(__webpack_require__(954));
40434043
const tc = __importStar(__webpack_require__(602));
4044-
const IS_WINDOWS = process.platform === 'win32';
40454044
function 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
}
40624058
exports.instrument = instrument;

src/scope-for-maven.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as core from '@actions/core'
22
import * as executor from './executor'
33
import * as exec from "@actions/exec";
44

5-
const SCOPE_AGENT_VERSION = "0.2.2";
5+
const SCOPE_AGENT_VERSION = "0.2.4";
66

77
async function run() {
88
try {

0 commit comments

Comments
 (0)