You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by sa...@apache.org on 2009/02/15 15:43:04 UTC

svn commit: r744672 - in /incubator/click/trunk/click: README.txt build/build.xml documentation/docs/developer-guide/releasing.html

Author: sabob
Date: Sun Feb 15 14:43:04 2009
New Revision: 744672

URL: http://svn.apache.org/viewvc?rev=744672&view=rev
Log:
added some build information to the README notes

Modified:
    incubator/click/trunk/click/README.txt
    incubator/click/trunk/click/build/build.xml
    incubator/click/trunk/click/documentation/docs/developer-guide/releasing.html

Modified: incubator/click/trunk/click/README.txt
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/README.txt?rev=744672&r1=744671&r2=744672&view=diff
==============================================================================
--- incubator/click/trunk/click/README.txt (original)
+++ incubator/click/trunk/click/README.txt Sun Feb 15 14:43:04 2009
@@ -65,11 +65,35 @@
     build-extras          build click-extras JAR file
     build-framework       build click framework JAR file
     build-maven-bundles   build Maven repository upload bundles
+    build-mock            build mock JAR file
     build-sources         build source ZIP files for use with IDEs
+    checkstyle            run checkstyle report on Java soruce
     deploy-examples       copy example WAR files to app server
     get-deps              download JAR dependencies
     get-deps-proxy        download JAR dependencies via proxy
     help                  display the Help message
     javadoc               create Javadoc HTML files
     project-quick-start   build application template
+    test-all              run all unit tests
 
+
+Before building the framework, all third-party library dependencies must be
+downloaded using the command:
+
+    ant get-deps
+
+To build a new distribution use run the command:
+
+    ant build-distribution
+
+To build the core library, click-x.x.x.jar, run the command:
+
+    ant build-framework
+
+To build the extras library, click-extras.x.x.x.jar, run the command:
+
+    ant build-extras
+
+Further information on building Click is available here:
+
+   documentation/docs/developer-guide/building.html

Modified: incubator/click/trunk/click/build/build.xml
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/build/build.xml?rev=744672&r1=744671&r2=744672&view=diff
==============================================================================
--- incubator/click/trunk/click/build/build.xml (original)
+++ incubator/click/trunk/click/build/build.xml Sun Feb 15 14:43:04 2009
@@ -246,14 +246,15 @@
    </target>
 
 
-   <target name="build-examples" description="build click-examples WAR file">
+   <target name="build-examples" description="build click-examples WAR file" depends="check-deps">
       <ant antfile="build.xml" 
            dir="examples"
            target="build" 
            inheritall="false"/>
    </target>
 
-   <target name="build-extras" description="build extras JAR file" depends="prepare-hibernate">
+
+   <target name="build-extras" description="build extras JAR file" depends="check-deps, prepare-hibernate">
       <available file="dist/${click}.jar" property="isClickAvail"/>
       <fail message="Build framework first with 'build-framework'">
          <condition>
@@ -301,14 +302,8 @@
    </target>
 
 
-   <target name="build-framework" description="build framework JAR file">
+   <target name="build-framework" description="build framework JAR file" depends="check-deps">
       <mkdir dir="dist"/>
-      <available file="lib/${jar.codec}" property="isJarAvail"/>
-      <fail message="Download JAR dependencies first with 'get-deps'">
-         <condition>
-  	        <or><isfalse value="${isJarAvail}"/></or>
-  	     </condition>
-      </fail>
       <delete file="dist/${click}.jar" quiet="false"/>
       <delete file="dist/${click-nodeps}.jar" quiet="false"/>
       <property name="dir.source" value="framework/src"/>
@@ -394,7 +389,7 @@
    </target>
 
 
-   <target name="build-mock" description="build mock JAR file">
+   <target name="build-mock" description="build mock JAR file" depends="check-deps">
       <available file="dist/${click}.jar" property="isClickAvail"/>
       <fail message="Build framework first with 'build-framework'">
          <condition>
@@ -501,7 +496,23 @@
       </checkstyle>
    </target>
 
-   
+
+   <target name="check-deps">
+      <available file="lib/${jar.codec}" property="isCodecAvail"/>
+      <fail message="Download JAR dependencies first with 'ant get-deps'">
+         <condition>
+  	        <or><isfalse value="${isCodecAvail}"/></or>
+  	     </condition>
+      </fail>
+      <available file="lib/${jar.junit}" property="isJUnitAvail"/>
+      <fail message="Download JAR dependencies first with 'ant get-deps'">
+         <condition>
+  	        <or><isfalse value="${isJUnitAvail}"/></or>
+  	     </condition>
+      </fail>
+   </target>
+
+
    <target name="clean"> 
       <delete dir="dist" quiet="false"/>
       <mkdir dir="dist"/>
@@ -725,7 +736,7 @@
      Testing tasks
      -->
 
-   <target name="test-framework">
+   <target name="test-framework" depends="check-deps">
       <copy todir="framework/classes">
          <fileset dir="framework/src">
             <exclude name="**/package.html"/>
@@ -762,7 +773,7 @@
    </target>
 
    
-   <target name="test-extras" >
+   <target name="test-extras" depends="check-deps">
       <copy todir="extras/classes">
          <fileset dir="extras/src">
             <exclude name="**/package.html"/>
@@ -799,7 +810,7 @@
    </target>
 
 
-   <target name="test-mock">
+   <target name="test-mock" depends="check-deps">
       <copy todir="mock/classes">
          <fileset dir="mock/src">
             <exclude name="**/package.html"/>
@@ -837,7 +848,7 @@
 
 
    <target name="test-all" depends="test-framework, test-extras, test-mock"
-       description="Run all unit tests"/>
+       description="run all unit tests"/>
 
 
     <!--

Modified: incubator/click/trunk/click/documentation/docs/developer-guide/releasing.html
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/documentation/docs/developer-guide/releasing.html?rev=744672&r1=744671&r2=744672&view=diff
==============================================================================
--- incubator/click/trunk/click/documentation/docs/developer-guide/releasing.html (original)
+++ incubator/click/trunk/click/documentation/docs/developer-guide/releasing.html Sun Feb 15 14:43:04 2009
@@ -87,6 +87,10 @@
                 Also ensure the release date in the <tt>downloads.html</tt> page is correct.
             </li>
             <li>
+                Download the list of third-party library dependencies:
+                <pre class="codeConfig">ant get-deps</pre>
+            </li>
+            <li>
                 Run checkstyle to ensure source code adheres to the coding standard:
                 <pre class="codeConfig">ant checkstyle</pre>
             </li>