Improved: Removed semicolon from all Groovy files of all components.
(OFBIZ-8652) Thanks: Rohit Koushal, Jacques Le Roux and Rishi Solanki for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1767764 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -16,25 +16,25 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import java.net.URI;
|
||||
import org.apache.ofbiz.base.util.*;
|
||||
import org.w3c.dom.*;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import org.apache.commons.lang.StringEscapeUtils;
|
||||
import java.net.URI
|
||||
import org.apache.ofbiz.base.util.*
|
||||
import org.w3c.dom.*
|
||||
import java.io.ByteArrayOutputStream
|
||||
import org.apache.commons.lang.StringEscapeUtils
|
||||
|
||||
fileString = "";
|
||||
fileString = ""
|
||||
if (parameters.fileName) {
|
||||
file = new File(parameters.fileName);
|
||||
file = new File(parameters.fileName)
|
||||
if (parameters.fileName.endsWith(".xml")) {
|
||||
Document document = UtilXml.readXmlDocument(file.toURL(), false);
|
||||
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||
UtilXml.writeXmlDocument(document, os, "UTF-8", true, true, 4);
|
||||
os.close();
|
||||
fileString = os.toString();
|
||||
Document document = UtilXml.readXmlDocument(file.toURL(), false)
|
||||
ByteArrayOutputStream os = new ByteArrayOutputStream()
|
||||
UtilXml.writeXmlDocument(document, os, "UTF-8", true, true, 4)
|
||||
os.close()
|
||||
fileString = os.toString()
|
||||
} else {
|
||||
fileString = FileUtil.readString("UTF-8", file);
|
||||
fileString = FileUtil.readString("UTF-8", file)
|
||||
}
|
||||
rows = fileString.split(System.getProperty("line.separator"));
|
||||
context.rows = rows.size();
|
||||
rows = fileString.split(System.getProperty("line.separator"))
|
||||
context.rows = rows.size()
|
||||
}
|
||||
context.fileString = fileString;
|
||||
context.fileString = fileString
|
||||
|
||||
Reference in New Issue
Block a user