axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject cvs commit: xml-axis/java/test/utils TestSrcContent.java
Date Thu, 20 Jun 2002 15:17:56 GMT
glyn        2002/06/20 08:17:56

  Modified:    java/docs developers-guide.html
               java/test/utils TestSrcContent.java
  Log:
  Describe how to add build-time source checks.
  
  Revision  Changes    Path
  1.21      +24 -0     xml-axis/java/docs/developers-guide.html
  
  Index: developers-guide.html
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/docs/developers-guide.html,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- developers-guide.html	13 Jun 2002 18:22:41 -0000	1.20
  +++ developers-guide.html	20 Jun 2002 15:17:56 -0000	1.21
  @@ -36,6 +36,7 @@
   <br><a href="#Compile And Run">Compile and Run</a>
   <br><a href="#Internationalization">Internationalization</a>
   <br><a href="#Adding Testcases">Adding Testcases</a>
  +<br><a href="#CodeChecks">Adding Source Code Checks</a>
   <br><a href="#Debugging">Debugging</a>
   <br><a href="#TCK">Running the JAX-RPC Compatibility Tests</a>
   <br>&nbsp;
  @@ -708,6 +709,29 @@
   verify.&nbsp; Check in your test.</font></li>
   
   <br>&nbsp;</ol>
  +
  +<h2>
  +<a NAME="CodeChecks"></a>Adding Source Code Checks</h2>
  +The Axis build performs certain automated checks of the files in the
  +source directory (java/src) to make sure certain conventions are
  +followed such as using internationalised strings when issuing messages.
  +<p>
  +If a convention can be reduced to a regular expression match,
  +it can be enforced at build time by updating
  +java/test/utils/TestSrcContent.java.
  +<p>
  +All that is necessary is to add a pattern to the static FileNameContentPattern
  +array.
  +Each pattern has three parameters:
  +<ol>
  +<li>a pattern that matches filenames that are to be checked,</li>
  +<li>a pattern to be searched for in the chosen files, and</li>
  +<li>a boolean indicating whether the pattern is to be allowed
  +(typically false indicating not allowed).</li>
  +</ol>
  +<p>
  +A reasonable summary of the regular expression notation is provided in
  +the <a href="http://jakarta.apache.org/oro/api/org/apache/oro/text/regex/package-summary.html">Jakarta
ORO javadocs</a>.
   
   <h2>
   <a NAME="Debugging"></a>Debugging</h2>
  
  
  
  1.8       +6 -2      xml-axis/java/test/utils/TestSrcContent.java
  
  Index: TestSrcContent.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/utils/TestSrcContent.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- TestSrcContent.java	19 Jun 2002 16:13:19 -0000	1.7
  +++ TestSrcContent.java	20 Jun 2002 15:17:56 -0000	1.8
  @@ -132,8 +132,12 @@
       };
   
       /**
  -     * Check for the following in the input file:
  -     *     "org.apache.log4j"
  +     * Patterns to be checked. Each pattern has three parameters:
  +     *   (i) a pattern that matches filenames that are to be checked,
  +     *  (ii) a pattern to be searched for in the chosen files
  +     * (iii) whether the pattern is to be allowed (typically false indicating
  +     *       not allowed)
  +     * See the Axis Developer's Guide for more information.
        */
       private static final FileNameContentPattern avoidPatterns[] =
           {
  
  
  

Mime
View raw message