/[cvs]/jsr166/build.xml
ViewVC logotype

Diff of /jsr166/build.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.88 by jsr166, Sun May 29 16:00:20 2011 UTC revision 1.91 by jsr166, Sun Nov 18 06:21:11 2012 UTC
# Line 42  Line 42 
42    <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>    <property name="build.jsr166ylib.dir"        location="${build.dir}/jsr166ylib"/>
43    <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>    <property name="build.jsr166yjavadocs.dir"   location="${build.dir}/jsr166yjavadocs"/>
44    
45      <property name="build.jsr166e.dir"           location="${build.dir}/jsr166e"/>
46      <property name="build.jsr166elib.dir"        location="${build.dir}/jsr166elib"/>
47      <property name="build.jsr166ejavadocs.dir"   location="${build.dir}/jsr166ejavadocs"/>
48    
49    <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>    <property name="build.extra166y.dir"         location="${build.dir}/extra166y"/>
50    <property name="build.extra166ylib.dir"      location="${build.dir}/extra166ylib"/>    <property name="build.extra166ylib.dir"      location="${build.dir}/extra166ylib"/>
51    <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>    <property name="build.extra166yjavadocs.dir" location="${build.dir}/extra166yjavadocs"/>
# Line 57  Line 61 
61    <property name="topsrc.dir"           location="${basedir}/src"/>    <property name="topsrc.dir"           location="${basedir}/src"/>
62    <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>    <property name="jsr166xsrc.dir"       location="${basedir}/src/jsr166x"/>
63    <property name="jsr166ysrc.dir"       location="${basedir}/src/jsr166y"/>    <property name="jsr166ysrc.dir"       location="${basedir}/src/jsr166y"/>
64      <property name="jsr166esrc.dir"       location="${basedir}/src/jsr166e"/>
65    <property name="extra166ysrc.dir"     location="${basedir}/src/extra166y"/>    <property name="extra166ysrc.dir"     location="${basedir}/src/extra166y"/>
66    <property name="jdksrc.dir"           location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>    <property name="jdksrc.dir"           location="/home/dl/1.6.0/j2se/martin/j2se/src/share/classes"/>
67    
68    <!-- Distribution locations -->    <!-- Distribution locations -->
69    <property name="dist.javadocs.dir"           location="${dist.dir}/docs"/>    <property name="dist.javadocs.dir"           location="${dist.dir}/docs"/>
70    <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>    <property name="dist.jsr166xjavadocs.dir"    location="${dist.dir}/jsr166xdocs"/>
71    <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>    <property name="dist.jsr166yjavadocs.dir"    location="${dist.dir}/jsr166ydocs"/>
72      <property name="dist.jsr166ejavadocs.dir"    location="${dist.dir}/jsr166edocs"/>
73    <property name="dist.extra166yjavadocs.dir"  location="${dist.dir}/extra166ydocs"/>    <property name="dist.extra166yjavadocs.dir"  location="${dist.dir}/extra166ydocs"/>
74    
75    <!-- Jar locations -->    <!-- Jar locations -->
76    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>    <property name="product.jar"          location="${build.lib.dir}/jsr166.jar"/>
77    <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>    <property name="jsr166xproduct.jar"   location="${build.jsr166xlib.dir}/jsr166x.jar"/>
78    <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>    <property name="jsr166yproduct.jar"   location="${build.jsr166ylib.dir}/jsr166y.jar"/>
79      <property name="jsr166eproduct.jar"   location="${build.jsr166elib.dir}/jsr166e.jar"/>
80    <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>    <property name="extra166yproduct.jar" location="${build.extra166ylib.dir}/extra166y.jar"/>
81    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>    <property name="junit.jar"            location="${lib.dir}/junit.jar"/>
82    
83    <!-- Bootclasspath argument -->    <!-- Bootclasspath argument -->
84    <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>    <property name="bootclasspath.args"   value="-Xbootclasspath/p:${product.jar}"/>
85    
86      <!-- Canonical location of jdk API docs, to use with javadoc link attribute -->
87      <property name="jdkapi5docs.url"      value="http://docs.oracle.com/javase/1.5.0/docs/api/"/>
88      <property name="jdkapi6docs.url"      value="http://docs.oracle.com/javase/6/docs/api/"/>
89      <property name="jdkapi7docs.url"      value="http://docs.oracle.com/javase/7/docs/api/"/>
90    
91      <property name="jdkapi8docs.url"      value="http://download.java.net/jdk8/docs/api/"/>
92      <!-- The below does not yet exist as of 2012-11 -->
93      <!-- <property name="jdkapi8docs.url" value="http://docs.oracle.com/javase/8/docs/api/"/> -->
94      <property name="jdkapidocs.url"       value="${jdkapi7docs.url}"/>
95    
96    <!-- Test classpath -->    <!-- Test classpath -->
97    <path id="test.classpath">    <path id="test.classpath">
98      <pathelement location="${build.testcases.dir}"/>      <pathelement location="${build.testcases.dir}"/>
# Line 90  Line 108 
108    <!-- Main targets -->    <!-- Main targets -->
109    
110    <target name="dists"    <target name="dists"
111            depends="dist, jsr166xdist, jsr166ydist, extra166ydist"            depends="dist, jsr166xdist, jsr166ydist,jsr166edist,  extra166ydist"
112            description="Builds all public jars and docs"/>            description="Builds all public jars and docs"/>
113    
114    <target name="compile"    <target name="compile"
# Line 153  Line 171 
171    
172      <javadoc destdir="${build.javadocs.dir}"      <javadoc destdir="${build.javadocs.dir}"
173               packagenames="none"               packagenames="none"
174               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
175               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
176               sourcepath="${src.dir}:${jdksrc.dir}" >               sourcepath="${src.dir}:${jdksrc.dir}"
177                 additionalparam="-XDignore.symbol.file=true" >
178        <fileset dir="${src.dir}" defaultexcludes="yes">        <fileset dir="${src.dir}" defaultexcludes="yes">
179        <include name="**/*.java"/>        <include name="**/*.java"/>
180        </fileset>        </fileset>
# Line 221  Line 240 
240    
241      <javadoc destdir="${dist.javadocs.dir}"      <javadoc destdir="${dist.javadocs.dir}"
242               packagenames="none"               packagenames="none"
243               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
244               overview="${src.dir}/intro.html"               overview="${src.dir}/intro.html"
245               sourcepath="${src.dir}:${jdksrc.dir}" >               sourcepath="${src.dir}:${jdksrc.dir}"
246                 additionalparam="-XDignore.symbol.file=true" >
247        <fileset dir="${src.dir}" defaultexcludes="yes">        <fileset dir="${src.dir}" defaultexcludes="yes">
248        <include name="**/*.java"/>        <include name="**/*.java"/>
249        </fileset>        </fileset>
# Line 505  Line 525 
525    
526      <javadoc destdir="${build.jsr166xjavadocs.dir}"      <javadoc destdir="${build.jsr166xjavadocs.dir}"
527               packagenames="jsr166x"               packagenames="jsr166x"
528               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
529               source="${build.sourcelevel}"               source="${build.sourcelevel}"
530               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
531                 additionalparam="-XDignore.symbol.file=true" />
532    
533    </target>    </target>
534    
# Line 543  Line 564 
564    
565      <javadoc destdir="${dist.jsr166xjavadocs.dir}"      <javadoc destdir="${dist.jsr166xjavadocs.dir}"
566               packagenames="jsr166x"               packagenames="jsr166x"
567               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
568               source="${build.sourcelevel}"               source="${build.sourcelevel}"
569               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
570                 additionalparam="-XDignore.symbol.file=true" />
571    
572    </target>    </target>
573    
# Line 608  Line 630 
630    
631      <javadoc destdir="${build.jsr166yjavadocs.dir}"      <javadoc destdir="${build.jsr166yjavadocs.dir}"
632               packagenames="jsr166y"               packagenames="jsr166y"
633               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
634               source="${build.sourcelevel}"               source="${build.sourcelevel}"
635               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
636                 additionalparam="-XDignore.symbol.file=true" />
637    
638    </target>    </target>
639    
# Line 644  Line 667 
667    
668      <javadoc destdir="${dist.jsr166yjavadocs.dir}"      <javadoc destdir="${dist.jsr166yjavadocs.dir}"
669               packagenames="jsr166y"               packagenames="jsr166y"
670               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
671               source="${build.sourcelevel}"               source="${build.sourcelevel}"
672               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
673                 additionalparam="-XDignore.symbol.file=true" />
674    
675    </target>    </target>
676    
# Line 657  Line 681 
681    
682    </target>    </target>
683    
684    
685    <!-- extra166y -->    <!-- extra166y -->
686    
687    
# Line 710  Line 735 
735    
736      <javadoc destdir="${build.extra166yjavadocs.dir}"      <javadoc destdir="${build.extra166yjavadocs.dir}"
737               packagenames="extra166y"               packagenames="extra166y"
738               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
739               source="${build.sourcelevel}"               source="${build.sourcelevel}"
740               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
741                 additionalparam="-XDignore.symbol.file=true" />
742    
743    </target>    </target>
744    
# Line 746  Line 772 
772    
773      <javadoc destdir="${dist.extra166yjavadocs.dir}"      <javadoc destdir="${dist.extra166yjavadocs.dir}"
774               packagenames="extra166y"               packagenames="extra166y"
775               link="http://download.oracle.com/javase/7/docs/api/"               link="${jdkapidocs.url}"
776               source="${build.sourcelevel}"               source="${build.sourcelevel}"
777               sourcepath="${topsrc.dir}:${jdksrc.dir}" />               sourcepath="${topsrc.dir}:${jdksrc.dir}"
778                 additionalparam="-XDignore.symbol.file=true" />
779    
780    </target>    </target>
781    
# Line 759  Line 786 
786    
787    </target>    </target>
788    
789      <!-- jsr166e -->
790    
791    
792      <target name="jsr166ecompile"
793              depends="init, configure-compiler"
794              description="Compiles jsr166e sources">
795    
796        <mkdir dir="${build.jsr166e.dir}"/>
797    
798        <javac srcdir="${jsr166esrc.dir}"
799              destdir="${build.jsr166e.dir}"
800                debug="${build.debug}"
801           debuglevel="${build.debuglevel}"
802          deprecation="${build.deprecation}"
803               source="1.7"
804                 fork="true">
805    
806          <include name="**/*.java"/>
807          <compilerarg line="${build.args}"/>
808          <compilerarg value="-XDignore.symbol.file=true"/>
809          <compilerarg value="${bootclasspath.args}"/>
810    
811    <!--       <compilerarg line="-Xlint -Xmaxwarns 1000"/> -->
812    
813        </javac>
814    
815      </target>
816    
817    
818    
819      <target name="jsr166ejar"
820              depends="jsr166ecompile"
821              description="Builds library jar from compiled sources">
822    
823        <mkdir dir="${build.jsr166elib.dir}"/>
824    
825        <jar destfile="${jsr166eproduct.jar}" index="true">
826          <fileset dir="${build.jsr166e.dir}"/>
827        </jar>
828    
829      </target>
830    
831    
832    
833      <target name="jsr166edocs"
834              description="Builds javadocs with custom tags to build folder">
835    
836        <delete dir="${build.jsr166ejavadocs.dir}"/>
837        <mkdir dir="${build.jsr166ejavadocs.dir}"/>
838    
839        <javadoc destdir="${build.jsr166ejavadocs.dir}"
840                 packagenames="jsr166e,jsr166e.extra"
841                 link="${jdkapidocs.url}"
842                 source="1.7"
843                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
844                 additionalparam="-XDignore.symbol.file=true" />
845    
846      </target>
847    
848    
849      <target name="jsr166edist"
850              depends="jsr166edist-clean, jsr166edist-jar, jsr166edist-docs"
851              description="Puts all distributable products in single hierarchy"/>
852    
853    
854    
855      <target name="jsr166eclean"
856              description="Removes all build products">
857    
858        <delete dir="${build.jsr166e.dir}"/>
859        <delete dir="${build.jsr166elib.dir}"/>
860    
861      </target>
862    
863    
864    
865      <target name="jsr166edist-clean"
866              description="Removes all build and distribution products">
867    
868      </target>
869    
870      <target name="jsr166edist-docs"
871              description="Builds javadocs without custom tags to dist folder">
872    
873        <delete dir="${dist.jsr166ejavadocs.dir}"/>
874        <mkdir dir="${dist.jsr166ejavadocs.dir}"/>
875    
876        <javadoc destdir="${dist.jsr166ejavadocs.dir}"
877                 packagenames="jsr166e,jsr166e.extra"
878                 link="${jdkapidocs.url}"
879                 source="1.7"
880                 sourcepath="${topsrc.dir}:${jdksrc.dir}"
881                 additionalparam="-XDignore.symbol.file=true" />
882    
883      </target>
884    
885      <target name="jsr166edist-jar"
886              depends="jsr166eclean, jsr166ejar">
887    
888        <copy file="${jsr166eproduct.jar}" todir="${dist.dir}"/>
889    
890      </target>
891    
892  </project>  </project>

Legend:
Removed from v.1.88  
changed lines
  Added in v.1.91

dl@cs.oswego.edu
ViewVC Help
Powered by ViewVC 1.1.27