mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
Add missing license reference, handle blank lines
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
/**
|
||||
* The contents of this file are subject to the license and copyright
|
||||
* detailed in the LICENSE and NOTICE files at the root of the source
|
||||
* tree and available online at
|
||||
*
|
||||
* http://www.dspace.org/license/
|
||||
*/
|
||||
package org.dspace.app.launcher;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
@@ -78,6 +85,8 @@ public class CommandRunner
|
||||
while (StreamTokenizer.TT_EOF != tokenizer.nextToken())
|
||||
{
|
||||
if (StreamTokenizer.TT_EOL == tokenizer.ttype)
|
||||
{
|
||||
if (tokens.size() > 0)
|
||||
{
|
||||
status = ScriptLauncher.runOneCommand(tokens.toArray(new String[tokens.size()]));
|
||||
if (status > 0)
|
||||
@@ -86,6 +95,7 @@ public class CommandRunner
|
||||
}
|
||||
tokens.clear();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tokens.add(tokenizer.sval);
|
||||
|
Reference in New Issue
Block a user