privatestaticboolean checkPathVariable(String _sPath, String delim)
{
String sPath = System.getProperty(_sPath); if (sPath != null)
{
StringTokenizer aTokenEnum = new StringTokenizer(sPath, delim); while (aTokenEnum.hasMoreElements())
{
String sToken = (String) aTokenEnum.nextElement(); if (checkVariableForCygwin(sToken))
{
System.err.println("ERROR: OOoRunner detect cygwin path in '" + _sPath + "'"); returntrue;
}
}
} returnfalse;
}
privatestaticvoid checkAllVariablesForCygwinPath(TestParameters _aParams)
{ // ----- check all System.getProperty(key) variables -----
String sOsName = System.getProperty("os.name"); if (!sOsName.toLowerCase().startsWith("windows"))
{ // we need to check only on windows return;
}
Properties aProps = System.getProperties();
Enumeration<?> aEnum = aProps.propertyNames(); // Enumeration aEnum = aProps.elements(); // these are only the values boolean bEmergencyStop = false;
DynamicClassLoader dcl = new DynamicClassLoader();
// get a class for test parameters
TestParameters param = new TestParameters();
ClParser cli = new ClParser();
//parse the commandline arguments // TODO: no right error message, if no parameter given!
cli.getCommandLineParameter(param, args);
Object tj = param.get("TestJob");
if (tj == null)
{
System.out.println("==========================================================================");
System.out.println("No TestJob given, please make sure that you ");
System.out.println("a.) called the OOoRunner with the parameter -o <job> or -sce <scenarioFile>");
System.out.println("or");
System.out.println("b.) have an entry called TestJob in your used properties file");
System.out.println("==========================================================================");
System.exit(-1);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.