result.add(getTestsetDir().getPath());
result.add(getTestsetDir().getPath());
/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }
/** * Generates a new filename for the given relation based on the current setup. * * @param inst the instances to create the filename for * @return the generated filename */ protected String createFilename(Instances inst) { String result; String name; name = inst.relationName(); if (getRelationFind().length() > 0) { name = name.replaceAll(getRelationFind(), getRelationReplace()); } result = getTestsetDir().getPath() + File.separator; result += getTestsetPrefix() + name + getTestsetSuffix(); // substitute the run number (and any other variables) // if specified try { result = m_env.substitute(result); } catch (Exception ex) { } return result; }
result += " -dir " + getTestsetDir();
result += " -dir " + getTestsetDir();