Author: challngr Date: Thu Dec 12 11:36:30 2013 New Revision: 1550398 URL: http://svn.apache.org/r1550398 Log: UIMA-2799 Add missing imports.
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=1550398&r1=1550397&r2=1550398&view=diff ============================================================================== --- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump (original) +++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_statedump Thu Dec 12 11:36:30 2013 @@ -17,7 +17,8 @@ # specific language governing permissions and limitations # under the License. # ----------------------------------------------------------------------- - +import os +import sys import getopt import json @@ -37,6 +38,9 @@ class DuccStateListener(DuccUtil): os.system(CMD) + if ( self.agent != None ): + self.output = self.output + '.' + self.agent + fi = open(self.output + '.json') fo = open(self.output + '.json.pretty', 'w') obj = json.load(fi) @@ -105,7 +109,7 @@ class DuccStateListener(DuccUtil): self.usage() CLASSPATH = os.environ['CLASSPATH'] - CLASSPATH = CLASSPATH + ':' + self.DUCC_HOME + '/lib/ducc-test.jar' + CLASSPATH = CLASSPATH + ':' + self.DUCC_HOME + '/lib/uima-ducc/examples/*' os.environ['CLASSPATH'] = CLASSPATH if ( self.state == 'or' ): @@ -135,7 +139,7 @@ class DuccStateListener(DuccUtil): if ( self.output == None ): of = self.topic if ( self.agent != None ): - of = of + ".agent." + self.agent + of = of + ".agent" self.output = of print '-----------------------'