[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2688) Some files have the license headers twice
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Tue Jan 18 11:27:52 EST 2011
[ https://issues.jboss.org/browse/JBRULES-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12576280#comment-12576280 ]
Geoffrey De Smet commented on JBRULES-2688:
-------------------------------------------
Replace this regex:
/\*\*\n \* Copyright 2010 JBoss Inc[\w\n\*/:\-\.\s\,\(\)\"\;]+? \*/\s+package ([\w\.]+);\s+(/\*\*?\n \* Copyright (\d+) JBoss Inc[\w\n\*/:\-\.\s\,\(\)\"\;]+? \*/)
With this:
$2\n\npackage $1;
> Some files have the license headers twice
> -----------------------------------------
>
> Key: JBRULES-2688
> URL: https://issues.jboss.org/browse/JBRULES-2688
> Project: Drools
> Issue Type: Task
> Security Level: Public(Everyone can see)
> Components: All
> Affects Versions: 5.1.0.FINAL
> Reporter: Geoffrey De Smet
> Assignee: Toni Rikkola
> Priority: Trivial
> Fix For: FUTURE
>
>
> Several files have the license header twice, for example:
> /home/ge0ffrey/projects/jboss/drools/drools-guvnor/src/main/java/org/drools/guvnor/server/repository/RulesRepositoryManager.java
> The reason is that the original file already had a license header, but not on the correct position (after the package statement instead of before it).
> /**
> * Copyright 2010 JBoss Inc
> *
> ...
> */
> package org.drools.guvnor.server.repository;
> /*
> * Copyright 2005 JBoss Inc
> *
> ...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list