Differential D1822 Diff 6149 java/server/src/main/java/org/softwareheritage/graph/backend/Setup.java
Changeset View
Changeset View
Standalone View
Standalone View
java/server/src/main/java/org/softwareheritage/graph/backend/Setup.java
Show All 27 Lines | |||||
* Pre-processing steps (such as dumping mapping files on disk) before running the graph service. | * Pre-processing steps (such as dumping mapping files on disk) before running the graph service. | ||||
* | * | ||||
* @author Thibault Allançon | * @author Thibault Allançon | ||||
* @version 0.0.1 | * @version 0.0.1 | ||||
* @since 0.0.1 | * @since 0.0.1 | ||||
*/ | */ | ||||
public class Setup { | public class Setup { | ||||
/** | |||||
* Main entrypoint. | |||||
* | |||||
* @param args command line arguments | |||||
*/ | |||||
public static void main(String[] args) throws IOException { | public static void main(String[] args) throws IOException { | ||||
if (args.length != 2) { | if (args.length != 2) { | ||||
System.err.println("Expected parameters: <nodes.csv.gz path> <compressed graph path>"); | System.err.println("Expected parameters: <nodes.csv.gz path> <compressed graph path>"); | ||||
System.exit(1); | System.exit(1); | ||||
} | } | ||||
String nodesPath = args[0]; | String nodesPath = args[0]; | ||||
String graphPath = args[1]; | String graphPath = args[1]; | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |