Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java
index ff2fc0c8e8..9feba24398 100644
--- a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java
+++ b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/SortListItems.java
@@ -29,11 +29,13 @@ public class SortListItems
private static final String SUFFIX = "</UL>";
+ private static final String NL = System.getProperty("line.separator");
+
public static void main(String[] args) throws IOException
{
String javadocFolder = args[0];
System.out.println();
- System.out.println("Sorting list items in " + new File(".").getCanonicalPath() + "/" + javadocFolder);
+ System.out.println("Sorting list items in " + new File(javadocFolder).getCanonicalPath());
sortListItemsInFolder(new File(javadocFolder));
}
@@ -129,7 +131,7 @@ public class SortListItems
for (String line : lines)
{
writer.write(line);
- writer.write("\n");
+ writer.write(NL);
}
writer.flush();

Back to the top