Use System.lineSeparator()

... instead of System.getProperty("line.separator")

Change-Id: I40b005a183bddd8c854326c111c4fb0cd8716ed6
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
diff --git a/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/CompileErrorTask.java b/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/CompileErrorTask.java
index 9efa41d..e7fa003 100644
--- a/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/CompileErrorTask.java
+++ b/org.eclipse.pde.build/src_ant/org/eclipse/pde/internal/build/tasks/CompileErrorTask.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2017 IBM Corporation and others.
+ * Copyright (c) 2010, 2020 IBM Corporation and others.
  *
  * This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License 2.0
@@ -23,7 +23,7 @@
 
 public class CompileErrorTask extends Task {
 	private static final Object LOCK = new Object();
-	private static final String NEW_LINE = System.getProperty("line.separator"); //$NON-NLS-1$
+	private static final String NEW_LINE = System.lineSeparator();
 	private static final String ANT_PREFIX = "${"; //$NON-NLS-1$
 
 	private final Files problemFiles = new Files();