X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=tp%2FMake.java;h=c5080ed2ce76af4b64536362d071503abdc3197c;hb=3277752e2561e929365e556b28ce1647dd0e900e;hp=8f1b6af21282b0dbc6e2403bcd74bba7f77f2097;hpb=881ae506ee03edcf801ab02775c50cbfb7cc2e17;p=gpl%2Fargeo-slc.git diff --git a/tp/Make.java b/tp/Make.java index 8f1b6af21..c5080ed2c 100644 --- a/tp/Make.java +++ b/tp/Make.java @@ -5,9 +5,12 @@ import org.argeo.slc.factory.A2Factory; class Make { public static void main(String[] args) { - Path originBase = Paths.get("./output/origin").toAbsolutePath().normalize(); - Path factoryBase = Paths.get("./output/a2").toAbsolutePath().normalize(); - A2Factory factory = new A2Factory(originBase, factoryBase); + if(args.length < 1) { + System.err.println("Usage: "); + System.exit(1); + } + Path a2Base = Paths.get(args[0]).toAbsolutePath().normalize(); + A2Factory factory = new A2Factory(a2Base); Path descriptorsBase = Paths.get("./tp").toAbsolutePath().normalize(); @@ -20,6 +23,7 @@ class Make { descriptorsBase.resolve("org.argeo.tp.eclipse.equinox").resolve("eclipse-equinox")); factory.processEclipseArchive(descriptorsBase.resolve("org.argeo.tp.eclipse.rap").resolve("eclipse-rap")); factory.processEclipseArchive(descriptorsBase.resolve("org.argeo.tp.eclipse.rcp").resolve("eclipse-rcp")); + factory.processCategory(descriptorsBase.resolve("org.argeo.tp.eclipse.rcp")); // Maven factory.processCategory(descriptorsBase.resolve("org.argeo.tp.sdk"));