Author: challngr Date: Wed Jun 4 18:43:25 2014 New Revision: 1600418 URL: http://svn.apache.org/r1600418 Log: UIMA-3855 Correctly get DUCC_HOME for classpath.
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump?rev=1600418&r1=1600417&r2=1600418&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump (original) +++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump Wed Jun 4 18:43:25 2014 @@ -44,7 +44,7 @@ class DuccStateListener(DuccUtil): fi = open(self.output + '.json') fo = open(self.output + '.json.pretty', 'w') obj = json.load(fi) - print "Pretty-printing ..." + print "Pretty-printing to", self.output json.dump(obj, fo, indent=3) fi.close() fo.close() @@ -155,6 +155,6 @@ class DuccStateListener(DuccUtil): if __name__ == "__main__": dsl = DuccStateListener() - CLASSPATH = os.environ['CLASSPATH'] + ':' + os.environ['DUCC_HOME'] + '/examples/lib/uima-ducc-examples.jar' + CLASSPATH = os.environ['CLASSPATH'] + ':' + dsl.DUCC_HOME + '/examples/lib/uima-ducc-examples.jar' os.environ['CLASSPATH'] = CLASSPATH dsl.main(sys.argv[1:])