Skip to content

Commit

Permalink
Fix #291 licenseMergeUrl parameter produces unreliable result in all …
Browse files Browse the repository at this point in the history
…report goals

licenseMergeUrl parameter produces unreliable result in report goals if there is more then one raw in the content of linked file
  • Loading branch information
balessandr committed Feb 25, 2019
1 parent 9e343a3 commit 46e5b67
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
MIT - MIT License|The MIT License|MIT License
APACHE|The Apache Software License, Version 2.0|Apache License, Version 2.0|Apache Public License 2.0
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ else if ( licenseMergesUrl != null )
getLog().warn( "" );
if ( UrlRequester.isStringUrl( licenseMergesUrl ) )
{
licenseMerges = Arrays.asList( UrlRequester.getFromUrl( licenseMergesUrl ).split( "\n" ) );
licenseMerges = Arrays.asList( UrlRequester.getFromUrl( licenseMergesUrl ).split( "[\n\r]+" ) );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ protected void init()
getLog().warn( "" );
if ( UrlRequester.isStringUrl( licenseMergesUrl ) )
{
licenseMerges = Arrays.asList( UrlRequester.getFromUrl( licenseMergesUrl ) );
licenseMerges = Arrays.asList( UrlRequester.getFromUrl( licenseMergesUrl ).split( "[\n\r]+" ) );
}
}
}
Expand Down

0 comments on commit 46e5b67

Please sign in to comment.