From 1e68543d97e4f21b359cee0c8c591f77db43dfef Mon Sep 17 00:00:00 2001 From: Andreas Maunz Date: Fri, 28 Sep 2012 12:54:46 +0200 Subject: Java Main function --- java/ApplyCDKDescriptors.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'java/ApplyCDKDescriptors.java') diff --git a/java/ApplyCDKDescriptors.java b/java/ApplyCDKDescriptors.java index 85a1abd..6207031 100644 --- a/java/ApplyCDKDescriptors.java +++ b/java/ApplyCDKDescriptors.java @@ -59,8 +59,13 @@ public class ApplyCDKDescriptors { */ public static void main(String args[]) throws java.io.IOException { - String inpath = "hamster_3d.sdf"; - String outpath = "hamster_desc.csv"; + int length = args.length; + if (length != 2) { + System.out.println("Enter two file names: "); + System.exit(1); + } + String inpath = args[0]; + String outpath = args[1]; getDescriptorCSV(inpath,outpath,""); } -- cgit v1.2.3