|
@@ -124,6 +124,7 @@ public class MSVSSGET extends MSVSS { |
|
|
private String m_Version = null; |
|
|
private String m_Version = null; |
|
|
private String m_Date = null; |
|
|
private String m_Date = null; |
|
|
private String m_Label = null; |
|
|
private String m_Label = null; |
|
|
|
|
|
private String m_AutoResponse = null; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Executes the task. |
|
|
* Executes the task. |
|
@@ -153,8 +154,8 @@ public class MSVSSGET extends MSVSS { |
|
|
commandLine.createArgument().setValue(getVsspath()); |
|
|
commandLine.createArgument().setValue(getVsspath()); |
|
|
// -GL |
|
|
// -GL |
|
|
getLocalpathCommand(commandLine); |
|
|
getLocalpathCommand(commandLine); |
|
|
// -I- |
|
|
|
|
|
commandLine.createArgument().setValue("-I-"); // ignore all errors |
|
|
|
|
|
|
|
|
// -I- or -I-Y or -I-N |
|
|
|
|
|
getAutoresponse(commandLine); |
|
|
// -R |
|
|
// -R |
|
|
getRecursiveCommand(commandLine); |
|
|
getRecursiveCommand(commandLine); |
|
|
// -V |
|
|
// -V |
|
@@ -306,5 +307,34 @@ public class MSVSSGET extends MSVSS { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setAutoresponse(String response){ |
|
|
|
|
|
if ( response.equals("") || response.equals("null") ) { |
|
|
|
|
|
m_AutoResponse = null; |
|
|
|
|
|
} else { |
|
|
|
|
|
m_AutoResponse = response; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Checks the value set for the autoResponse. |
|
|
|
|
|
* if it equals "Y" then we return -I-Y |
|
|
|
|
|
* if it equals "N" then we return -I-N |
|
|
|
|
|
* otherwise we return -I |
|
|
|
|
|
*/ |
|
|
|
|
|
public void getAutoresponse(Commandline cmd) { |
|
|
|
|
|
|
|
|
|
|
|
if ( m_AutoResponse == null) { |
|
|
|
|
|
cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); |
|
|
|
|
|
} else if ( m_AutoResponse.equalsIgnoreCase("Y")) { |
|
|
|
|
|
cmd.createArgument().setValue(FLAG_AUTORESPONSE_YES); |
|
|
|
|
|
|
|
|
|
|
|
} else if ( m_AutoResponse.equalsIgnoreCase("N")) { |
|
|
|
|
|
cmd.createArgument().setValue(FLAG_AUTORESPONSE_NO); |
|
|
|
|
|
}else { |
|
|
|
|
|
cmd.createArgument().setValue(FLAG_AUTORESPONSE_DEF); |
|
|
|
|
|
} // end of else |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|