Skip to content

Commit

Permalink
Allow turning off the header.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk@637502 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
dkulp committed Mar 16, 2008
1 parent 955efa9 commit 1a414d4
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public class ApacheNoticeResourceTransformer
Map organizationEntries = new LinkedHashMap();

String projectName;
boolean addHeader = true;

String preamble1 =
"// ------------------------------------------------------------------\n"
Expand Down Expand Up @@ -86,7 +87,14 @@ public void processResource( InputStream is )


//add headers
entries.add( preamble1 + projectName + preamble2 );
if ( addHeader )
{
entries.add( preamble1 + projectName + preamble2 );
}
else
{
entries.add("");
}
//fake second entry, we'll look for a real one later
entries.add( projectName + "\nCopyright " + year + " " + organizationName + "\n" );
entries.add( preamble3 + organizationName + " ("+ organizationURL +").\n" );
Expand Down

0 comments on commit 1a414d4

Please sign in to comment.