11/*******************************************************************************
2- * Copyright (c) 2015-2022 Maxprograms.
2+ * Copyright (c) 2023 Maxprograms.
33 *
44 * This program and the accompanying materials
55 * are made available under the terms of the Eclipse Public License 1.0
@@ -240,7 +240,7 @@ protected static void generateXLIFF(String jsonFile, boolean verbose) throws IOE
240240 }
241241
242242 public static void importXLIFF (long id , String xliffFile , String outputFolder , boolean updateTM ,
243- boolean acceptUnapproved , boolean ignoreTagErrors , boolean cleanAttributes , boolean verbose )
243+ boolean acceptUnapproved , boolean ignoreTagErrors , boolean verbose )
244244 throws IOException , NumberFormatException , ClassNotFoundException , SAXException ,
245245 ParserConfigurationException , SQLException , URISyntaxException , JSONException , ParseException {
246246 LocalController controller = new LocalController ();
@@ -254,7 +254,7 @@ public static void importXLIFF(long id, String xliffFile, String outputFolder, b
254254 }
255255 SimpleLogger logger = new SimpleLogger (verbose );
256256 controller .importXliff (project , xliffFile , outputFolder , updateTM , acceptUnapproved , ignoreTagErrors ,
257- cleanAttributes , logger );
257+ logger );
258258 }
259259
260260 protected static void importXLIFF (String jsonFile , boolean verbose ) throws IOException , NumberFormatException ,
@@ -275,11 +275,7 @@ protected static void importXLIFF(String jsonFile, boolean verbose) throws IOExc
275275 if (jsonObject .has ("ignoreTagErrors" )) {
276276 ignoreTagErrors = jsonObject .getBoolean ("ignoreTagErrors" );
277277 }
278- boolean cleanAttributes = true ;
279- if (jsonObject .has ("cleanAttributes" )) {
280- cleanAttributes = jsonObject .getBoolean ("cleanAttributes" );
281- }
282- importXLIFF (id , xliffFile , outputFolder , updateTM , acceptUnapproved , ignoreTagErrors , cleanAttributes , verbose );
278+ importXLIFF (id , xliffFile , outputFolder , updateTM , acceptUnapproved , ignoreTagErrors , verbose );
283279 }
284280
285281 public static void removeProject (long id ) throws IOException , JSONException , ParseException {
0 commit comments