1. randyv2zhurosoft
  2. jqplot-zhurosoft

Commits

Chris Leonello  committed 1517e56

Added some description in build file. Renamed jqplot target to dist, made all default target.
Renamed README to README.txt

  • Participants
  • Parent commits 47cee66
  • Branches default

Comments (0)

Files changed (3)

File README

-If you're reading this, you've cloned, copied, fetched or otherwise obtained
-the source distribution of jqPlot.  Altough not recommend unless you are doing
-development, You can use the source distribution directly.
-
-To build a distribution from source you need to have ant <http://ant.apache.org>
-installed.  There are 6 targets: clean, dist, min, tests, docs and all.  Use
-
-> ant -p
-
-to get a description of the various build targets. 

File README.txt

View file
+If you're reading this, you've cloned, copied, fetched or otherwise obtained
+the source distribution of jqPlot.  Altough not recommend unless you are doing
+development, You can use the source distribution directly.
+
+To build a distribution from source you need to have ant <http://ant.apache.org>
+installed.  There are 6 targets: clean, dist, min, tests, docs and all.  Use
+
+> ant -p
+
+to get a description of the various build targets. 

File build.xml

View file
-<project name="jqPlot" default="jqlot" basedir=".">
+<project name="jqPlot" default="all" basedir=".">
     
     <!-- directories for building -->
     <property description="Source directory" name="SRC_DIR" value="src"  />
 
     <!-- MAIN -->
 
-    <target name="jqplot" description="Build jqplot for distribution and compression.">
+    <target name="dist" description="Build uncompressed jqplot for distribution.">
         <echo message="Building jqPlot" />
     	  <replaceregexp match="@VERSION" replace="${version}" file="${SRC_DIR}/jqplot.core.js" />
         <mkdir dir="${BUILD_DIR}" />
         <echo message="jqPlot built." />
     </target>
 
-    <target name="min" depends="jqplot" description="Remove all comments and whitespace, no compression, great in combination with GZip">
+    <target name="min" depends="dist" description="Minify sources with YUI compressor.">
         <echo message="Building minified sources with YUI Compressor" />
     		<apply executable="java" parallel="false" verbose="true" dest="${DIST_DIR}">
     			<fileset dir="${DIST_DIR}">
         <echo message="Minified sources built." />
     </target>
 
-	<target name="tests" depends="jqplot">
+	<target name="tests" depends="dist" description="Create test suite for distribution.">
 		<echo message="Creating automated test suite for distribtion" />
     <mkdir dir="${DIST_DIR}/tests" />
     <copy todir="${DIST_DIR}/tests">
   </target>
 -->
 
-	<target name="docs" depends="jqplot">
+	<target name="docs" depends="dist" description="Create documentation for distribution.">
 		<echo message="Creating documentation" />
     <mkdir dir="${DIST_DIR}/docs" />
     <exec executable="${ND}">
 		<echo message="Documentation Finished" />
 	</target>
 
-    <target name="clean">
+    <target name="clean" description="Clean up, removing build and distribution directories and everything underneath.">
         <delete dir="${BUILD_DIR}" />
         <delete dir="${DIST_DIR}" />
     </target>
 
-    <target name="all" depends="clean,jqplot,min,tests,docs">
+    <target name="all" depends="clean,dist,min,tests,docs" description="Clean then build everything (distribution, minify, tests and docs).">
         <echo message="Build complete distribution, docs and tests" />
     </target>