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 2015/12/02 19:34:44 UTC
svn commit: r1717665 - /uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader
Author: challngr
Date: Wed Dec 2 18:34:43 2015
New Revision: 1717665
URL: http://svn.apache.org/viewvc?rev=1717665&view=rev
Log:
UIMA-4577 db_loader starts and stops the db for you to do the load
Modified:
uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader?rev=1717665&r1=1717664&r2=1717665&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/db_loader Wed Dec 2 18:34:43 2015
@@ -47,10 +47,6 @@ class DbLoader(DuccUtil):
print 'db_loader -i in [--no-archive]'
print ''
print 'Where:'
- print ' -d'
- print ' Specifies the database must be dropped and reinitialized if it already exists.'
- print ' If not specified, the correct schema must already exist. Object already in'
- print ' the database are not overwritten.'
print ' -i in'
print ' Specifies the DUCC_HOME of the DUCC runtime to be moved into the database.'
print ''
@@ -68,7 +64,6 @@ class DbLoader(DuccUtil):
def main(self, argv):
- drop = False
in_home = None
out_url = None
archive = True
@@ -80,8 +75,6 @@ class DbLoader(DuccUtil):
for ( o, a ) in opts:
if o in ('-i'):
in_home = a
- elif o in ('-d'):
- drop = True
elif o in ('--no-archive'):
archive = False
else:
@@ -106,9 +99,6 @@ class DbLoader(DuccUtil):
if ( not archive ):
DUCC_JVM_OPTS = DUCC_JVM_OPTS + ' -DDONT_ARCHIVE'
- if ( drop ):
- DUCC_JVM_OPTS = DUCC_JVM_OPTS + ' -DDROP_DATABASE'
-
CMD = [self.java(), DUCC_JVM_OPTS, 'org.apache.uima.ducc.database.DbLoader', in_home, out_url]
CMD = ' '.join(CMD)