You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/04/09 19:11:42 UTC
svn commit: r1466137 - in /uima/sandbox/uima-ducc/trunk:
src/main/scripts/ducc_service_cancel src/main/scripts/ducc_service_submit
uima-ducc-cli/pom.xml
Author: challngr
Date: Tue Apr 9 17:11:42 2013
New Revision: 1466137
URL: http://svn.apache.org/r1466137
Log:
UIMA-2805
CLI support for resurrected 'submitted' services.
Added:
uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel (with props)
uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit (with props)
Modified:
uima/sandbox/uima-ducc/trunk/uima-ducc-cli/pom.xml
Added: uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel?rev=1466137&view=auto
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel (added)
+++ uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel Tue Apr 9 17:11:42 2013
@@ -0,0 +1,36 @@
+#! /usr/bin/env python
+
+# -----------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# -----------------------------------------------------------------------
+
+
+from ducc_boot import *
+set_ducc_home()
+
+from ducc_util import DuccUtil
+
+class DuccProcessCancel(DuccUtil):
+
+ def main(self, argv):
+ self.spawn(self.java(), '-jar', self.DUCC_HOME + '/lib/uima-ducc-service-cancel.jar', ' '.join(self.mkargs(argv)))
+
+if __name__ == "__main__":
+ cancel = DuccProcessCancel()
+ cancel.main(sys.argv[1:])
+
Propchange: uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_cancel
------------------------------------------------------------------------------
svn:executable = *
Added: uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit?rev=1466137&view=auto
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit (added)
+++ uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit Tue Apr 9 17:11:42 2013
@@ -0,0 +1,41 @@
+#! /usr/bin/env python
+
+# -----------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# -----------------------------------------------------------------------
+
+
+import sys
+import os
+
+from ducc_boot import *
+set_ducc_home()
+
+from ducc_util import DuccUtil
+
+class DuccProcessSubmit(DuccUtil):
+
+ def main(self, argv):
+ self.spawn(self.java(), '-jar', self.DUCC_HOME + '/lib/uima-ducc-service-submit.jar', ' '.join(self.mkargs(argv)))
+
+if __name__ == "__main__":
+ submit = DuccProcessSubmit()
+ #for i in os.environ['CLASSPATH'].split(':'):
+ # print i
+
+ submit.main(sys.argv[1:])
Propchange: uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_service_submit
------------------------------------------------------------------------------
svn:executable = *
Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-cli/pom.xml
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-cli/pom.xml?rev=1466137&r1=1466136&r2=1466137&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-cli/pom.xml (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-cli/pom.xml Tue Apr 9 17:11:42 2013
@@ -128,7 +128,7 @@ y <class-path>${DUCC_CP}</class-path
<index>false</index>
<manifest>
<addClasspath>false</addClasspath>
- <mainClass>org.apache.uima.ducc.cli.DuccletSubmit</mainClass>
+ <mainClass>org.apache.uima.ducc.cli.DuccManagedReservationSubmit</mainClass>
</manifest>
<manifestEntries>
<class-path>${DUCC_CP}</class-path>
@@ -152,7 +152,7 @@ y <class-path>${DUCC_CP}</class-path
<index>false</index>
<manifest>
<addClasspath>false</addClasspath>
- <mainClass>org.apache.uima.ducc.cli.DuccProcessCancel</mainClass>
+ <mainClass>org.apache.uima.ducc.cli.DuccManagedReservationCancel</mainClass>
</manifest>
<manifestEntries>
<class-path>${DUCC_CP}</class-path>