Author: markt Date: Mon Nov 12 11:15:52 2018 New Revision: 1846397 URL: http://svn.apache.org/viewvc?rev=1846397&view=rev Log: Simplify exporting original files in alphabetical order
Modified: tomcat/trunk/java/org/apache/tomcat/buildutil/translate/Import.java Modified: tomcat/trunk/java/org/apache/tomcat/buildutil/translate/Import.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/buildutil/translate/Import.java?rev=1846397&r1=1846396&r2=1846397&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/tomcat/buildutil/translate/Import.java (original) +++ tomcat/trunk/java/org/apache/tomcat/buildutil/translate/Import.java Mon Nov 12 11:15:52 2018 @@ -45,7 +45,10 @@ public class Import { // Skip the original if (language.length() == 0) { + // Comment this line out if the originals needs to be exported. return; + } else { + language = "_" + language; } Properties props = Utils.load(f); @@ -65,7 +68,7 @@ public class Import { if (w != null) { w.close(); } - File outFile = new File(currentPkg.replace('.', File.separatorChar), Constants.L10N_PREFIX + "_" + language + Constants.L10N_SUFFIX); + File outFile = new File(currentPkg.replace('.', File.separatorChar), Constants.L10N_PREFIX + language + Constants.L10N_SUFFIX); FileOutputStream fos = new FileOutputStream(outFile); w = new OutputStreamWriter(fos, StandardCharsets.UTF_8); insertLicense(w); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org