Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/it/projects/describe-cmd-with-goal/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def result = new File(basedir, 'result.txt').text;

def ls = System.getProperty( "line.separator" );
def ls = System.lineSeparator();

assert result.contains("'deploy:deploy' is a plugin goal (aka mojo)." + ls +
"Mojo: 'deploy:deploy'" + ls +
Expand Down
2 changes: 1 addition & 1 deletion src/it/projects/describe-cmd/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def result = new File(basedir, 'result-deploy.txt').text;

def ls = System.getProperty( "line.separator" );
def ls = System.lineSeparator();

assert result.contains("'deploy' is a phase corresponding to this plugin:" + ls +
"org.apache.maven.plugins:maven-deploy-plugin")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

def result = new File(basedir, 'result.txt').text;
def ls = System.getProperty( "line.separator" );
def ls = System.lineSeparator();

assert result.contains(
"Group Id: org.apache.maven.plugins" + ls +
Expand Down
2 changes: 1 addition & 1 deletion src/it/projects/describe-plugin-without-name/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

def result = new File(basedir, 'result.txt').text;

def ls = System.getProperty( "line.separator" );
def ls = System.lineSeparator();

assert result.contains( "Name: Maven Help Plugin" )

Expand Down
2 changes: 1 addition & 1 deletion src/it/projects/effective-pom-artifact/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def result = new File(basedir, 'result.txt');
assert result.exists()

def LS = System.getProperty("line.separator")
def LS = System.lineSeparator()
assert result.text.find('(?s)' +
' <groupId>org.apache.maven.plugins</groupId>' + LS +
' <artifactId>maven-help-plugin</artifactId>'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ assert content.indexOf( "<projects>" ) == -1
def result = new File(basedir, 'result.txt');
assert result.exists()

def LS = System.getProperty("line.separator")
def LS = System.lineSeparator()
assert result.text.find('(?s)' +
' <groupId>org.apache.maven.plugins</groupId>' + LS +
' <artifactId>maven-help-plugin</artifactId>'
Expand Down
2 changes: 1 addition & 1 deletion src/it/projects/effective-pom_properties/verify.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
def buildLog = new File(basedir, 'build.log');
assert buildLog.exists()

def LS = System.getProperty("line.separator")
def LS = System.lineSeparator()
if (mavenVersion.startsWith('4.')) {
// with Maven 4, order of properties is reversed from original pom.xml
assert buildLog.text.find(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public abstract class AbstractHelpMojo extends AbstractMojo {
protected static final int LINE_LENGTH = 79;

/** The line separator for the current OS. */
protected static final String LS = System.getProperty("line.separator");
protected static final String LS = System.lineSeparator();

/**
* Current Maven project.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void testValidExpression() throws Exception {
parameter.setExpression("${valid.expression}");
md.addParameter(parameter);

String ls = System.getProperty("line.separator");
String ls = System.lineSeparator();

Method describeMojoParameters = DescribeMojo.class.getDeclaredMethod(
"describeMojoParameters", MojoDescriptor.class, StringBuilder.class);
Expand Down
Loading