Skip to content

Conversation

@CsCherrYY
Copy link
Contributor

fix #374

@CsCherrYY CsCherrYY requested a review from testforstephen May 20, 2021 06:44
new CustomExecution(async (resolvedDefinition: IExportJarTaskDefinition): Promise<Pseudoterminal> => {
const stepMetadata: IStepMetadata = {
entry: undefined,
taskLabel: resolvedDefinition.label || `${ExportJarTaskProvider.exportJarType}: exportjar:${folder.name}`,
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to append ${ExportJarTaskProvider.exportJarType}: before the task label.

try {
writeFile(new File(classpath.source), new Path(classpath.destination), /* areDirectoryEntriesIncluded = */true,
/* isCompressed = */true, target, directories);
reportExportJarMessage(taskLabel, IStatus.OK, "successfully export " + classpath.destination);
Copy link
Contributor

Choose a reason for hiding this comment

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

Successfully added the file to the exported jar: classpath.destination

int severity = resultStatus.getSeverity();
if (severity == IStatus.OK) {
java.nio.file.Path path = java.nio.file.Paths.get(classpath.source);
reportExportJarMessage(taskLabel, IStatus.OK, "successfully export " + path.getFileName().toString());
Copy link
Contributor

Choose a reason for hiding this comment

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

The message is not accurate.

Successfully added the file to the exported jar: path.getFileName().toString()

@CsCherrYY CsCherrYY merged commit 508b9a5 into main May 21, 2021
@CsCherrYY CsCherrYY deleted the exportReport branch May 21, 2021 01:32
@CsCherrYY CsCherrYY added this to the 0.18.4 milestone May 21, 2021
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.

Report messages when exporting jar

3 participants