(no commit message)
authorErik Brakkee <erik@brakkee.org>
Thu, 16 Mar 2006 18:58:08 +0000 (18:58 +0000)
committerErik Brakkee <erik@brakkee.org>
Thu, 16 Mar 2006 18:58:08 +0000 (18:58 +0000)
build/header.xml
build/style.xml
build/test-style.xml [deleted file]
build/trailer.xml

index 81a3a12c3b5ca38284196cd6a2325a4003a7de72..df55a859ef4eb327a19cb794aaafeff8e53ded85 100644 (file)
 <property name="lib.dir" value="${project.home}/lib/wamblee"/>
 
 <target name="download.dep">
+  <if>
+    <isset property="proxyhost"/>
+    <then>
+      <setproxy proxyhost="${proxyhost}" proxyport="${proxyport}"/>
+    </then>
+  </if>
   <if>
     <isset property="artifact"/>
     <then>
   </antcall>
 </target>
 
+<target name="activation.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${special.lib.dir}/jaf-1.0.2">
+       <include name="*.jar"/>
+    </fileset>
+  </copy>
+</target>
+
+<target name="mail.d" depends="activation.d">
+  <copy todir="${download.dir}">
+    <fileset dir="${special.lib.dir}/javamail-1.3.3_01">
+       <include name="*.jar"/>
+    </fileset>
+  </copy>
+</target>
+
+
+
 <target name="httpclient.d">
   <antcall target="download.dep">
     <param name="group" value="commons-httpclient"/>
     
       Preparation:
       
+      To execute with a specific proxy host and port, start ant with the 
+      command-line options   -Dproxyhost=hostname -Dproxyport=portnumber.
+      
       deps:          Download dependencies, this is necessary for using 
                      any of the build targets.
       clean-deps:    Remove downloaded dependencies. 
index 24558dd678e8fb4b817a1c2d0aa4a83e1e30f7bc..ecbd3acf2cae1b5c51767782c08971e6c914e4cd 100644 (file)
@@ -34,7 +34,7 @@
 \r
     <!-- Checks that a package.html file exists for each package.     -->\r
     <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->\r
-    <module name="PackageHtml"/>\r
+    <!-- module name="PackageHtml"/ -->\r
 \r
     <!-- Checks whether files end with a new line.                        -->\r
     <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->\r
@@ -49,9 +49,9 @@
 \r
         <!-- Checks for Javadoc comments.                     -->\r
         <!-- See http://checkstyle.sf.net/config_javadoc.html -->\r
-        <module name="JavadocMethod"/>\r
-        <module name="JavadocType"/>\r
-        <module name="JavadocVariable"/>\r
+        <!-- module name="JavadocMethod"/ -->\r
+        <!-- module name="JavadocType"/ -->\r
+        <!-- module name="JavadocVariable"/ -->\r
        <!-- module name="JavadocStyle"/ -->\r
         \r
         <!-- Checks for Naming Conventions.                  -->\r
         <module name="ConstantName"/>\r
         <module name="LocalFinalVariableName"/>\r
         <module name="LocalVariableName"/>\r
-        <module name="MemberName"/>\r
-        <module name="MethodName"/>\r
+        <module name="MemberName">
+            <property name="format" value="_[a-z][a-zA-Z0-9]*$"/>
+        </module>\r
+        <module name="MethodName" />\r
         <module name="PackageName"/>\r
-        <module name="ParameterName"/>\r
-        <module name="StaticVariableName"/>\r
+        <module name="ParameterName">
+            <property name="format" value="^a[A-Z][a-zA-Z0-9]*$"/>
+        </module>\r
+        <module name="StaticVariableName">
+            <property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$"/>
+        </module>\r
         <module name="TypeName"/>\r
 \r
 \r
         <!-- Checks for Size Violations.                    -->\r
         <!-- See http://checkstyle.sf.net/config_sizes.html -->\r
         <module name="FileLength"/>\r
-        <module name="LineLength"/>\r
+        <module name="LineLength">
+            <property name="max" value="120"/>
+        </module>\r
         <module name="MethodLength"/>\r
         <module name="ParameterNumber"/>\r
 \r
         <!-- See http://checkstyle.sf.net/config_whitespace.html -->\r
         <module name="EmptyForIteratorPad"/>\r
         <!-- module name="MethodParamPad"/ -->\r
-        <module name="NoWhitespaceAfter"/>\r
+        <!-- module name="NoWhitespaceAfter"/ -->\r
         <module name="NoWhitespaceBefore"/>\r
         <module name="OperatorWrap"/>\r
         <module name="ParenPad"/>\r
         <!-- module name="TypecastParenPad"/ -->\r
         <module name="TabCharacter"/>\r
         <module name="WhitespaceAfter"/>\r
-        <module name="WhitespaceAround"/>\r
+        <!-- module name="WhitespaceAround">
+            <property name="tokens" value=" ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR,MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,GENERIC_START,GENERIC_END,TYPE_EXTENSION_AND,WILDCARD_TYPE"/>
+        </module -->\r
 \r
 \r
         <!-- Modifier Checks                                    -->\r
         <!-- Checks for common coding problems               -->\r
         <!-- See http://checkstyle.sf.net/config_coding.html -->\r
         <module name="AvoidInlineConditionals"/>\r
-        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->\r
+        <!-- module name="DoubleCheckedLocking"/ -->   \r
         <module name="EmptyStatement"/>\r
         <module name="EqualsHashCode"/>\r
         <module name="HiddenField"/>\r
         <module name="RedundantThrows"/>\r
         <module name="SimplifyBooleanExpression"/>\r
         <module name="SimplifyBooleanReturn"/>\r
+        <module name="ExplicitInitialization"/>\r
 \r
         <!-- Checks for class design                         -->\r
         <!-- See http://checkstyle.sf.net/config_design.html -->\r
-        <module name="DesignForExtension"/>\r
+        <!-- module name="DesignForExtension"/ -->\r
         <module name="FinalClass"/>\r
         <module name="HideUtilityClassConstructor"/>\r
         <module name="InterfaceIsType"/>\r
         <!-- Miscellaneous other checks.                   -->\r
         <!-- See http://checkstyle.sf.net/config_misc.html -->\r
         <module name="ArrayTypeStyle"/>\r
-        <module name="FinalParameters"/>\r
-        <module name="GenericIllegalRegexp">\r
+        <!-- module name="FinalParameters"/ -->\r
+        <!-- module name="GenericIllegalRegexp">\r
             <property name="format" value="\s+$"/>\r
             <property name="message" value="Line has trailing spaces."/>\r
-        </module>\r
+        </module -->\r
         <module name="TodoComment"/>\r
         <module name="UpperEll"/>\r
 \r
diff --git a/build/test-style.xml b/build/test-style.xml
deleted file mode 100644 (file)
index 446472a..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-<?xml version="1.0"?>\r
-<!DOCTYPE module PUBLIC\r
-    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"\r
-    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">\r
-\r
-<!--\r
-\r
-  Checkstyle configuration that checks the sun coding conventions from:\r
-\r
-    - the Java Language Specification at\r
-      http://java.sun.com/docs/books/jls/second_edition/html/index.html\r
-\r
-    - the Sun Code Conventions at http://java.sun.com/docs/codeconv/\r
-\r
-    - the Javadoc guidelines at\r
-      http://java.sun.com/j2se/javadoc/writingdoccomments/index.html\r
-\r
-    - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html\r
-\r
-    - some best practices\r
-\r
-  Checkstyle is very configurable. Be sure to read the documentation at\r
-  http://checkstyle.sf.net (or in your downloaded distribution).\r
-\r
-  Most Checks are configurable, be sure to consult the documentation.\r
-\r
-  To completely disable a check, just comment it out or delete it from the file.\r
-\r
-  Finally, it is worth reading the documentation.\r
-\r
--->\r
-\r
-<module name="Checker">\r
-\r
-    <!-- Checks that a package.html file exists for each package.     -->\r
-    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->\r
-    <module name="PackageHtml"/>\r
-\r
-    <!-- Checks whether files end with a new line.                        -->\r
-    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->\r
-    <module name="NewlineAtEndOfFile"/>\r
-\r
-    <!-- Checks that property files contain the same keys.         -->\r
-    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->\r
-    <module name="Translation"/>\r
-\r
-\r
-    <module name="TreeWalker">\r
-\r
-        <!-- Checks for Javadoc comments.                     -->\r
-        <!-- See http://checkstyle.sf.net/config_javadoc.html -->\r
-        <module name="JavadocMethod"/>\r
-        <module name="JavadocType"/>\r
-        <module name="JavadocVariable"/>\r
-        <module name="JavadocStyle"/>\r
-\r
-\r
-        <!-- Checks for Naming Conventions.                  -->\r
-        <!-- See http://checkstyle.sf.net/config_naming.html -->\r
-        <module name="ConstantName"/>\r
-        <module name="LocalFinalVariableName"/>\r
-        <module name="LocalVariableName"/>\r
-        <module name="MemberName"/>\r
-        <module name="MethodName"/>\r
-        <module name="PackageName"/>\r
-        <module name="ParameterName"/>\r
-        <module name="StaticVariableName"/>\r
-        <module name="TypeName"/>\r
-\r
-\r
-        <!-- Checks for Headers                                -->\r
-        <!-- See http://checkstyle.sf.net/config_header.html   -->\r
-        <!-- <module name="Header">                            -->\r
-            <!-- The follow property value demonstrates the ability     -->\r
-            <!-- to have access to ANT properties. In this case it uses -->\r
-            <!-- the ${basedir} property to allow Checkstyle to be run  -->\r
-            <!-- from any directory within a project. See property      -->\r
-            <!-- expansion,                                             -->\r
-            <!-- http://checkstyle.sf.net/config.html#properties        -->\r
-            <!-- <property                                              -->\r
-            <!--     name="headerFile"                                  -->\r
-            <!--     value="${basedir}/java.header"/>                   -->\r
-        <!-- </module> -->\r
-\r
-        <!-- Following interprets the header file as regular expressions. -->\r
-        <!-- <module name="RegexpHeader"/>                                -->\r
-\r
-\r
-        <!-- Checks for imports                              -->\r
-        <!-- See http://checkstyle.sf.net/config_import.html -->\r
-        <module name="AvoidStarImport"/>\r
-        <module name="IllegalImport"/> <!-- defaults to sun.* packages -->\r
-        <module name="RedundantImport"/>\r
-        <module name="UnusedImports"/>\r
-\r
-\r
-        <!-- Checks for Size Violations.                    -->\r
-        <!-- See http://checkstyle.sf.net/config_sizes.html -->\r
-        <module name="FileLength"/>\r
-        <module name="LineLength"/>\r
-        <module name="MethodLength"/>\r
-        <module name="ParameterNumber"/>\r
-\r
-\r
-        <!-- Checks for whitespace                               -->\r
-        <!-- See http://checkstyle.sf.net/config_whitespace.html -->\r
-        <module name="EmptyForIteratorPad"/>\r
-        <module name="MethodParamPad"/>\r
-        <module name="NoWhitespaceAfter"/>\r
-        <module name="NoWhitespaceBefore"/>\r
-        <module name="OperatorWrap"/>\r
-        <module name="ParenPad"/>\r
-        <module name="TypecastParenPad"/>\r
-        <module name="TabCharacter"/>\r
-        <module name="WhitespaceAfter"/>\r
-        <module name="WhitespaceAround"/>\r
-\r
-\r
-        <!-- Modifier Checks                                    -->\r
-        <!-- See http://checkstyle.sf.net/config_modifiers.html -->\r
-        <module name="ModifierOrder"/>\r
-        <module name="RedundantModifier"/>\r
-\r
-\r
-        <!-- Checks for blocks. You know, those {}'s         -->\r
-        <!-- See http://checkstyle.sf.net/config_blocks.html -->\r
-        <module name="AvoidNestedBlocks"/>\r
-        <module name="EmptyBlock"/>\r
-        <module name="LeftCurly"/>\r
-        <module name="NeedBraces"/>\r
-        <module name="RightCurly"/>\r
-\r
-\r
-        <!-- Checks for common coding problems               -->\r
-        <!-- See http://checkstyle.sf.net/config_coding.html -->\r
-        <module name="AvoidInlineConditionals"/>\r
-        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->\r
-        <module name="EmptyStatement"/>\r
-        <module name="EqualsHashCode"/>\r
-        <module name="HiddenField"/>\r
-        <module name="IllegalInstantiation"/>\r
-        <module name="InnerAssignment"/>\r
-        <module name="MagicNumber"/>\r
-        <module name="MissingSwitchDefault"/>\r
-        <module name="RedundantThrows"/>\r
-        <module name="SimplifyBooleanExpression"/>\r
-        <module name="SimplifyBooleanReturn"/>\r
-\r
-        <!-- Checks for class design                         -->\r
-        <!-- See http://checkstyle.sf.net/config_design.html -->\r
-        <module name="DesignForExtension"/>\r
-        <module name="FinalClass"/>\r
-        <module name="HideUtilityClassConstructor"/>\r
-        <module name="InterfaceIsType"/>\r
-        <module name="VisibilityModifier"/>\r
-\r
-\r
-        <!-- Miscellaneous other checks.                   -->\r
-        <!-- See http://checkstyle.sf.net/config_misc.html -->\r
-        <module name="ArrayTypeStyle"/>\r
-        <module name="FinalParameters"/>\r
-        <module name="GenericIllegalRegexp">\r
-            <property name="format" value="\s+$"/>\r
-            <property name="message" value="Line has trailing spaces."/>\r
-        </module>\r
-        <module name="TodoComment"/>\r
-        <module name="UpperEll"/>\r
-\r
-    </module>\r
-\r
-</module>\r
index 95ba839c374248d0380a2959caa865339ad70c2d..a57b7da32c38c10f7affaaefb5b0008028a4e7c5 100644 (file)
        </javadoc>
        <echo
                message="Unfortuantely, this target will have generated some errors but the pdf will still look fine" />
+       <echo>Result is available in ${module.pdfdoc.dir}"</echo>
 </target>
 
 <!-- ============================================================================
                classpath="${module.classpath}"
                sourcepath="${module.source.dir}">
        </javadoc>
+       <echo>Results are available in ${module.doccheck.dir}"</echo>
 </target>
 
 <!-- ============================================================================
                <fileset dir="${module.source.dir}" includes="**/*.java" />
                <formatter type="plain" />
        </checkstyle>
-       <!--
-       <checkstyle config="${build.dir}/${checkstyle.test.rules}"
+       <checkstyle config="${build.dir}/${checkstyle.rules}"
                failOnViolation="false">
                <classpath>
                  <pathelement path="${module.testbuild.path}"/>
                <fileset dir="${module.test.dir}" includes="**/*.java" />
                <formatter type="plain" />
        </checkstyle>
-       -->
 </target>
 
 <!-- ============================================================================