mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

neil_a_wilson
04.24.2007 0d23044ef2e0404e841bda74b4508853196080ba
Update a number of files to add the missing svn:eol-style property.  Also, fix
a couple of CDDL/copyright headers. Finally, update the CheckPrecommit Ant
task so that it properly checks for a property that can be used to ignore these
problems and continue with the build.
7 files modified
51 ■■■■ changed files
opends/resource/uninstall.bat patch | view | raw | blame | history
opends/src/build-tools/org/opends/build/tools/CheckPrecommit.java 22 ●●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/IP.java patch | view | raw | blame | history
opends/src/server/org/opends/server/authorization/dseecompat/PatternIP.java patch | view | raw | blame | history
opends/tests/functional-tests/shared/java/addAnEntry.java 26 ●●●●● patch | view | raw | blame | history
opends/tests/functional-tests/shared/java/modifyAnAttribute.java 3 ●●●●● patch | view | raw | blame | history
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/IPTestCase.java patch | view | raw | blame | history
opends/resource/uninstall.bat
opends/src/build-tools/org/opends/build/tools/CheckPrecommit.java
@@ -190,7 +190,6 @@
    if (! eolStyleProblemFiles.isEmpty())
    {
      fail = true;
      System.err.println("WARNING:  Potential svn:eol-style updates needed " +
                         "for the following files:");
      for (String filename : eolStyleProblemFiles)
@@ -198,14 +197,19 @@
        System.err.println("     " + filename);
      }
      String ignoreProp =
           getProject().getProperty(IGNORE_EOLSTYLE_ERRORS_PROPERTY);
      if ((ignoreProp == null) || (! ignoreProp.equalsIgnoreCase("true")))
      {
        fail = true;
      System.err.println("Fix svn:eol-style problems before proceeding, or " +
                         "use '-D" + IGNORE_EOLSTYLE_ERRORS_PROPERTY +
                         "=true' to ignore svn eol-style warnings.");
    }
    }
    if (! copyrightProblemFiles.isEmpty())
    {
      fail = true;
      System.err.println("WARNING:  Potential copyright year updates needed " +
                         "for the following files:");
      for (String filename : copyrightProblemFiles)
@@ -213,10 +217,16 @@
        System.err.println("     " + filename);
      }
      System.err.println("Fix copyright date problems before proceeding, or " +
                         "use '-D" + IGNORE_COPYRIGHT_ERRORS_PROPERTY +
      String ignoreProp =
           getProject().getProperty(IGNORE_COPYRIGHT_ERRORS_PROPERTY);
      if ((ignoreProp == null) || (! ignoreProp.equalsIgnoreCase("true")))
      {
        fail = true;
        System.err.println("Fix copyright date problems before proceeding, " +
                           "or use '-D" + IGNORE_COPYRIGHT_ERRORS_PROPERTY +
                         "=true' to ignore copyright warnings.");
    }
    }
    if (fail)
    {
@@ -274,9 +284,9 @@
    String filePath = file.getAbsolutePath();
    if (filePath.startsWith(workspacePath.getPath()))
    if (filePath.startsWith(workspacePath.getPath() + "/"))
    {
      filePath = filePath.substring(workspacePath.getPath().length());
      filePath = filePath.substring(workspacePath.getPath().length() + 1);
    }
opends/src/server/org/opends/server/authorization/dseecompat/IP.java
opends/src/server/org/opends/server/authorization/dseecompat/PatternIP.java
opends/tests/functional-tests/shared/java/addAnEntry.java
@@ -1,4 +1,30 @@
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License, Version 1.0 only
 * (the "License").  You may not use this file except in compliance
 * with the License.
 *
 * You can obtain a copy of the license at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE
 * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at
 * trunk/opends/resource/legal-notices/OpenDS.LICENSE.  If applicable,
 * add the following below this CDDL HEADER, with the fields enclosed
 * by brackets "[]" replaced with your own identifying information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 *
 *
 *      Portions Copyright 2007 Sun Microsystems, Inc.
 */
/*
 * Copyright (c) 1998. Sun Microsystems, Inc. All Rights Reserved.
 *
 * "@(#)addAnewEntry.java   1.2 98/04/22 SMI"
opends/tests/functional-tests/shared/java/modifyAnAttribute.java
@@ -19,7 +19,10 @@
 * by brackets "[]" replaced with your own identifying information:
 *      Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 * 
 *
 *      Portions Copyright 2007 Sun Microsystems, Inc.
 */
opends/tests/unit-tests-testng/src/server/org/opends/server/authorization/dseecompat/IPTestCase.java