Enclosed is an attempt to configure Jalopy to insert the fulle Apache 1.1
license at the top of the file.  It inserts it at the top of the file, but
it does not remove the old header first.  Plus, it seems to just keep
re-inserting the header everytime I run Jalopy.  The Jalopy documentation
seems to suggest that it can handle deleting different headers and
recognizing the header it has already inserted, but heck if I can figure out
how to configure it to actually do that stuff.

Maybe someone with more Jalopy experience can modify this and post it back?

-Mark

> -----Original Message-----
> From: Ceki Gulcu [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 20, 2003 6:16 AM
> To: [EMAIL PROTECTED]
> Subject: Reproducing the Apache license
>
>
>
> Hi all,
>
> It is the foundation's policy to reproduce the Apache license at the
> top of each and every source file. Instead, log4j has a copyright
> notice referencing the Apache license at the top of each source
> file. We should start obeying the Apache-wide policy. Thus, we should
> slowly start copying the license at the top of each file that does not
> already have it. There is no urgency as long as we eventually do
> change all files.
>
>
> --
> Ceki
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
<?xml version="1.0" encoding="UTF-8"?>
<jalopy>
    <general>
        <compliance>
            <version>14</version>
        </compliance>
        <style>
            <description>Log4j Java Coding Convention</description>
            <name>Apache Jakarta Log4j</name>
        </style>
    </general>
    <internal>
        <version>6</version>
    </internal>
    <printer>
        <alignment>
            <methodCallChain>true</methodCallChain>
            <parameterMethodDeclaration>false</parameterMethodDeclaration>
            <ternaryOperator>true</ternaryOperator>
            <variableAssignment>false</variableAssignment>
            <variableIdentifier>false</variableIdentifier>
        </alignment>
        <blanklines>
            <after>
                <header>1</header>
            </after>
            <before>
                <header>0</header>
            </before>
        </blanklines>
        <braces>
            <empty>
                <cuddle>false</cuddle>
                <insertStatement>false</insertStatement>
            </empty>
            <insert>
                <dowhile>false</dowhile>
                <for>false</for>
                <ifelse>true</ifelse>
                <while>false</while>
            </insert>
            <remove>
                <block>true</block>
                <dowhile>false</dowhile>
                <for>false</for>
                <ifelse>false</ifelse>
                <while>false</while>
            </remove>
            <treatDifferent>
                <methodClass>false</methodClass>
                <methodClassIfWrapped>false</methodClassIfWrapped>
            </treatDifferent>
        </braces>
        <footer>
            <text />
        </footer>
        <header>
            <keys>Apache 1.1 License</keys>
            <smartMode>0</smartMode>
            <text>/*| * ============================================================================| *                   The Apache Software License, Version 1.1| * ============================================================================| *| *    Copyright (C) 1999 The Apache Software Foundation. All rights reserved.| *| * Redistribution and use in source and binary forms, with or without modifica-| * tion, are permitted provided that the following conditions are met:| *| * 1. Redistributions of  source code must  retain the above copyright  notice,| *    this list of conditions and the following disclaimer.| *| * 2. Redistributions in binary form must reproduce the above copyright notice,| *    this list of conditions and the following disclaimer in the documentation| *    and/or other materials provided with the distribution.| *| * 3. The end-user documentation included with the redistribution, if any, must| *    include  the following  acknowledgment:  "This product includes  software| *    developed  by the  Apache Software Foundation  (http://www.apache.org/)."| *    Alternately, this  acknowledgment may  appear in the software itself,  if| *    and wherever such third-party acknowledgments normally appear.| *| * 4. The names "log4j" and  "Apache Software Foundation"  must not be used to| *    endorse  or promote  products derived  from this  software without  prior| *    written permission. For written permission, please contact| *    [EMAIL PROTECTED]| *| * 5. Products  derived from this software may not  be called "Apache", nor may| *    "Apache" appear  in their name,  without prior written permission  of the| *    Apache Software Foundation.| *| * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,| * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND| * FITNESS  FOR A PARTICULAR  PURPOSE ARE  DISCLAIMED.  IN NO  EVENT SHALL  THE| * APACHE SOFTWARE  FOUNDATION  OR ITS CONTRIBUTORS  BE LIABLE FOR  ANY DIRECT,| * INDIRECT, INCIDENTAL, SPECIAL,  EXEMPLARY, OR CONSEQUENTIAL  DAMAGES (INCLU-| * DING, BUT NOT LIMITED TO, PROCUREMENT  OF SUBSTITUTE GOODS OR SERVICES; LOSS| * OF USE, DATA, OR  PROFITS; OR BUSINESS  INTERRUPTION)  HOWEVER CAUSED AND ON| * ANY  THEORY OF LIABILITY,  WHETHER  IN CONTRACT,  STRICT LIABILITY,  OR TORT| * (INCLUDING  NEGLIGENCE OR  OTHERWISE) ARISING IN  ANY WAY OUT OF THE  USE OF| * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.| *| * This software  consists of voluntary contributions made  by many individuals| * on  behalf of the Apache Software  Foundation.  For more  information on the| * Apache Software Foundation, please see &lt;http://www.apache.org/&gt;.| *| */</text>
            <use>true</use>
        </header>
        <history>
            <method>timestamp</method>
            <policy>disabled</policy>
        </history>
        <imports>
            <policy>disabled</policy>
        </imports>
        <indentation>
            <caseFromSwitch>false</caseFromSwitch>
            <continuation>
                <block>true</block>
                <operator>false</operator>
            </continuation>
            <firstColumnComments>true</firstColumnComments>
            <label>false</label>
            <policy>
                <deep>false</deep>
            </policy>
            <sizes>
                <braceCuddled>1</braceCuddled>
                <braceLeft>1</braceLeft>
                <braceRight>0</braceRight>
                <braceRightAfter>1</braceRightAfter>
                <continuation>2</continuation>
                <deep>55</deep>
                <extends>-1</extends>
                <general>2</general>
                <implements>-1</implements>
                <leading>0</leading>
                <tabs>8</tabs>
                <throws>-1</throws>
                <trailingComment>1</trailingComment>
            </sizes>
            <tabs>
                <enable>false</enable>
                <onlyLeading>false</onlyLeading>
            </tabs>
        </indentation>
        <sorting>
            <declaration>
                <order>static|field|initializer|constructor|method|interface|class</order>
            </declaration>
            <modifier>
                <enable>true</enable>
                <order>public|protected|private|abstract|static|final|synchronized|transient|volatile|native|strictfp</order>
            </modifier>
        </sorting>
        <whitespace>
            <after>
                <comma>true</comma>
                <semicolon>true</semicolon>
                <typeCast>true</typeCast>
            </after>
            <before>
                <braces>true</braces>
                <brackets>false</brackets>
                <bracketsTypes>false</bracketsTypes>
                <caseColon>false</caseColon>
                <operator>
                    <not>false</not>
                </operator>
                <parentheses>
                    <methodCall>false</methodCall>
                    <methodDeclaration>false</methodDeclaration>
                    <statement>true</statement>
                </parentheses>
            </before>
            <padding>
                <braces>true</braces>
                <brackets>false</brackets>
                <operator>
                    <assignment>true</assignment>
                    <bitwise>true</bitwise>
                    <logical>true</logical>
                    <mathematical>true</mathematical>
                    <relational>true</relational>
                    <shift>true</shift>
                </operator>
                <parenthesis>false</parenthesis>
                <typeCast>false</typeCast>
            </padding>
        </whitespace>
        <wrapping>
            <always>
                <after>
                    <arrayElement>0</arrayElement>
                    <braceRight>false</braceRight>
                    <extendsTypes>false</extendsTypes>
                    <implementsTypes>false</implementsTypes>
                    <label>true</label>
                    <methodCallChained>false</methodCallChained>
                    <ternaryOperator>
                        <first>false</first>
                        <second>false</second>
                    </ternaryOperator>
                    <throwsTypes>false</throwsTypes>
                </after>
                <before>
                    <braceLeft>false</braceLeft>
                    <extends>false</extends>
                    <implements>false</implements>
                    <throws>false</throws>
                </before>
                <parameter>
                    <methodCall>false</methodCall>
                    <methodCallNested>false</methodCallNested>
                    <methodDeclaration>false</methodDeclaration>
                </parameter>
            </always>
            <general>
                <beforeOperator>true</beforeOperator>
                <enable>true</enable>
                <lineLength>79</lineLength>
            </general>
            <ondemand>
                <after>
                    <assignment>true</assignment>
                    <leftParenthesis>true</leftParenthesis>
                    <parameter>false</parameter>
                    <types>
                        <extends>false</extends>
                        <implements>false</implements>
                        <throws>false</throws>
                    </types>
                </after>
                <before>
                    <rightParenthesis>false</rightParenthesis>
                </before>
                <groupingParentheses>false</groupingParentheses>
            </ondemand>
        </wrapping>
    </printer>
</jalopy>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to