import java.beans.Statement;
import java.io.IOException;
+import java.text.MessageFormat;
import java.util.Map;
import org.apache.commons.compress.archivers.ArchiveOutputStream;
+import org.eclipse.jgit.archive.internal.ArchiveText;
import org.eclipse.jgit.util.StringUtils;
/**
Map<String, Object> o) throws IOException {
for (Map.Entry<String, Object> p : o.entrySet()) {
try {
- new Statement(s,
- "set" + StringUtils.capitalize(p.getKey()),
- new Object[]{p.getValue()}).execute();
+ new Statement(s, "set" + StringUtils.capitalize(p.getKey()), //$NON-NLS-1$
+ new Object[] { p.getValue() }).execute();
} catch (Exception e) {
- throw new IOException("cannot set option: " + p.getKey(), e);
+ throw new IOException(MessageFormat.format(
+ ArchiveText.get().cannotSetOption, p.getKey()), e);
}
}
return s;