added fragments
This commit is contained in:
parent
cf548fd4f3
commit
4c334c573a
@ -2,14 +2,13 @@ package p.studio.compiler;
|
|||||||
|
|
||||||
import p.studio.compiler.messages.BuilderPipelineConfig;
|
import p.studio.compiler.messages.BuilderPipelineConfig;
|
||||||
import p.studio.compiler.workspaces.BuilderPipelineService;
|
import p.studio.compiler.workspaces.BuilderPipelineService;
|
||||||
|
import p.studio.utilities.PConstants;
|
||||||
import p.studio.utilities.logs.LogAggregator;
|
import p.studio.utilities.logs.LogAggregator;
|
||||||
|
|
||||||
public class Compile {
|
public class Compile {
|
||||||
private static final String PROJECT = "fragments";
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final var logAggregator = LogAggregator.stdout();
|
final var logAggregator = LogAggregator.stdout();
|
||||||
final var config = new BuilderPipelineConfig(false, "test-projects/%s".formatted(PROJECT));
|
final var config = new BuilderPipelineConfig(false, "test-projects/%s".formatted(PConstants.PROJECT));
|
||||||
BuilderPipelineService.INSTANCE.run(config, logAggregator);
|
BuilderPipelineService.INSTANCE.run(config, logAggregator);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
package p.studio.utilities;
|
||||||
|
|
||||||
|
public class PConstants {
|
||||||
|
public static final String PROJECT = "fragments";
|
||||||
|
}
|
||||||
@ -4,18 +4,17 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|||||||
import p.packer.messages.PackWorkspaceRequest;
|
import p.packer.messages.PackWorkspaceRequest;
|
||||||
import p.packer.messages.PackerOperationStatus;
|
import p.packer.messages.PackerOperationStatus;
|
||||||
import p.packer.messages.PackerProjectContext;
|
import p.packer.messages.PackerProjectContext;
|
||||||
|
import p.studio.utilities.PConstants;
|
||||||
|
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
|
|
||||||
public final class PackMain {
|
public final class PackMain {
|
||||||
private static final String PROJECT = "fragments";
|
|
||||||
|
|
||||||
private PackMain() {
|
private PackMain() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
final Path projectRoot = args.length == 0
|
final Path projectRoot = args.length == 0
|
||||||
? Path.of("test-projects/%s".formatted(PROJECT))
|
? Path.of("test-projects/%s".formatted(PConstants.PROJECT))
|
||||||
: Path.of(args[0]);
|
: Path.of(args[0]);
|
||||||
final String projectId = projectRoot.getFileName() == null
|
final String projectId = projectRoot.getFileName() == null
|
||||||
? "project"
|
? "project"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user