You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by dn...@apache.org on 2015/09/09 19:27:49 UTC
svn commit: r1702060 -
/poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java
Author: dnorth
Date: Wed Sep 9 17:27:49 2015
New Revision: 1702060
URL: http://svn.apache.org/r1702060
Log:
Patch from https://bz.apache.org/bugzilla/show_bug.cgi?id=58347 - s/arg/filename for a more descriptive filename
Modified:
poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java
Modified: poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java?rev=1702060&r1=1702059&r2=1702060&view=diff
==============================================================================
--- poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java (original)
+++ poi/trunk/src/java/org/apache/poi/hssf/dev/ReSave.java Wed Sep 9 17:27:49 2015
@@ -33,11 +33,11 @@ import org.apache.poi.hssf.usermodel.HSS
public class ReSave {
public static void main(String[] args) throws Exception {
boolean initDrawing = false;
- for(String arg : args) {
- if(arg.equals("-dg")) initDrawing = true;
+ for(String filename : args) {
+ if(filename.equals("-dg")) initDrawing = true;
else {
- System.out.print("reading " + arg + "...");
- FileInputStream is = new FileInputStream(arg);
+ System.out.print("reading " + filename + "...");
+ FileInputStream is = new FileInputStream(filename);
HSSFWorkbook wb = new HSSFWorkbook(is);
try {
System.out.println("done");
@@ -49,7 +49,7 @@ public class ReSave {
}
}
- String outputFile = arg.replace(".xls", "-saved.xls");
+ String outputFile = filename.replace(".xls", "-saved.xls");
System.out.print("saving to " + outputFile + "...");
FileOutputStream out = new FileOutputStream(outputFile);
try {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org