-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip CHECK_TRUST phase and allow parallel execution of product assembly
Currently the DirectorApplication effectively accepts all content but executing the CHECK_TRUST already takes considerable amount of time, also each product is assembled one by one even though they operate on independent output folders and files. This now skips the CHECK_TRUST phase and adds a new parameter <parallel> that can be set to enable the parallel execution of assembly and archiving different product variants.
- Loading branch information
Showing
17 changed files
with
2,098 additions
and
1,884 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
tycho-core/src/main/java/org/eclipse/tycho/p2tools/MavenDirectorLog.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2023 Christoph Läubrich and others. | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Christoph Läubrich - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.tycho.p2tools; | ||
|
||
import org.apache.maven.plugin.logging.Log; | ||
import org.eclipse.core.runtime.IStatus; | ||
import org.eclipse.tycho.core.shared.StatusTool; | ||
import org.eclipse.tycho.p2tools.copiedfromp2.ILog; | ||
|
||
public class MavenDirectorLog implements ILog { | ||
|
||
private String name; | ||
private Log logger; | ||
|
||
public MavenDirectorLog(String name, Log logger) { | ||
this.name = name; | ||
this.logger = logger; | ||
} | ||
|
||
@Override | ||
public void log(IStatus status) { | ||
String message = getMsgLine(StatusTool.toLogMessage(status)); | ||
if (status.getSeverity() == IStatus.ERROR) { | ||
logger.error(message, status.getException()); | ||
} else if (status.getSeverity() == IStatus.WARNING) { | ||
logger.warn(message); | ||
} else if (status.getSeverity() == IStatus.INFO) { | ||
logger.info(message); | ||
} else { | ||
logger.debug(message); | ||
} | ||
|
||
} | ||
|
||
@Override | ||
public void printOut(String line) { | ||
logger.info(getMsgLine(line)); | ||
} | ||
|
||
private String getMsgLine(String line) { | ||
return "[" + name + "] " + line; | ||
} | ||
|
||
@Override | ||
public void printErr(String line) { | ||
logger.error(getMsgLine(line)); | ||
} | ||
|
||
} |
32 changes: 0 additions & 32 deletions
32
tycho-core/src/main/java/org/eclipse/tycho/p2tools/TychoDirectorApplication.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.