crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | |
| 3 | <project name="guice" default="compile"> |
sberlin | 1547789 | 2011-06-29 17:52:52 +0000 | [diff] [blame] | 4 | <!-- common definitions are stored in common.xml. --> |
crazyboblee | efdb6f3 | 2007-02-26 02:54:11 +0000 | [diff] [blame] | 5 | <import file="common.xml"/> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 6 | |
| 7 | <path id="compile.classpath"> |
| 8 | <fileset dir="${lib.dir}" includes="*.jar"/> |
| 9 | <fileset dir="${lib.dir}/build" includes="*.jar"/> |
| 10 | </path> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 11 | |
| 12 | <path id="javadoc.classpath"> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 13 | <path refid="compile.classpath"/> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 14 | <fileset dir="extensions"> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 15 | <include name="*/lib/*.jar"/> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 16 | </fileset> |
| 17 | <pathelement location="${build.dir}/classes"/> |
| 18 | </path> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 19 | |
limpbizkit | 53708f0 | 2008-11-29 20:45:55 +0000 | [diff] [blame] | 20 | |
| 21 | <target name="jar" depends="jar.withdeps, manifest" description="Build jar."> |
| 22 | <jar jarfile="${build.dir}/dist/guice-${version}.jar" |
limpbizkit | f716cf4 | 2008-06-03 09:19:35 +0000 | [diff] [blame] | 23 | manifest="${build.dir}/META-INF/MANIFEST.MF"> |
limpbizkit | 53708f0 | 2008-11-29 20:45:55 +0000 | [diff] [blame] | 24 | <zipfileset src="${build.dir}/${ant.project.name}-with-deps.jar"/> |
| 25 | </jar> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 26 | </target> |
| 27 | |
limpbizkit | 28d083b | 2008-05-07 17:25:38 +0000 | [diff] [blame] | 28 | <target name="dist" depends="distjars, javadoc" |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 29 | description="Build entire distribution."> |
sberlin | f8537ea | 2010-08-21 23:50:30 +0000 | [diff] [blame] | 30 | <ant antfile="extensions/servlet/build.xml" target="distjars" inheritAll="false"/> |
| 31 | <ant antfile="extensions/spring/build.xml" target="distjars" inheritAll="false"/> |
sberlin@gmail.com | 81a0c60 | 2010-12-02 23:50:16 +0000 | [diff] [blame] | 32 | <ant antfile="extensions/struts2/build.xml" target="distjars" inheritAll="false"/> |
limpbizkit | 28d083b | 2008-05-07 17:25:38 +0000 | [diff] [blame] | 33 | <ant antfile="extensions/assistedinject/build.xml" target="distjars" inheritAll="false"/> |
limpbizkit | e05f254 | 2009-05-19 00:58:48 +0000 | [diff] [blame] | 34 | <ant antfile="extensions/jmx/build.xml" target="distjars" inheritAll="false"/> |
| 35 | <ant antfile="extensions/jndi/build.xml" target="distjars" inheritAll="false"/> |
limpbizkit | 28d083b | 2008-05-07 17:25:38 +0000 | [diff] [blame] | 36 | <ant antfile="extensions/throwingproviders/build.xml" target="distjars" inheritAll="false"/> |
| 37 | <ant antfile="extensions/multibindings/build.xml" target="distjars" inheritAll="false"/> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 38 | <ant antfile="extensions/dagger-adapter/build.xml" target="distjars" inheritAll="false"/> |
limpbizkit@gmail.com | 9bcb0a2 | 2010-09-11 05:06:17 +0000 | [diff] [blame] | 39 | <ant antfile="extensions/persist/build.xml" target="distjars" inheritAll="false"/> |
Sam Berlin | c7ae433 | 2014-04-10 19:17:37 -0400 | [diff] [blame] | 40 | <ant antfile="extensions/grapher/build.xml" target="distjars" inheritAll="false"/> |
| 41 | <ant antfile="extensions/testlib/build.xml" target="distjars" inheritAll="false"/> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 42 | |
crazyboblee | efdb6f3 | 2007-02-26 02:54:11 +0000 | [diff] [blame] | 43 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 44 | <fileset dir="extensions/servlet/build" includes="*.jar"/> |
crazyboblee | efdb6f3 | 2007-02-26 02:54:11 +0000 | [diff] [blame] | 45 | </copy> |
| 46 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 47 | <fileset dir="extensions/spring/build" includes="*.jar"/> |
crazyboblee | f739015 | 2007-03-02 23:44:34 +0000 | [diff] [blame] | 48 | </copy> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 49 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 50 | <fileset dir="extensions/struts2/build" includes="*.jar"/> |
sberlin@gmail.com | 81a0c60 | 2010-12-02 23:50:16 +0000 | [diff] [blame] | 51 | </copy> |
| 52 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 53 | <fileset dir="extensions/assistedinject/build" includes="*.jar"/> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 54 | </copy> |
| 55 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 56 | <fileset dir="extensions/jmx/build" includes="*.jar"/> |
limpbizkit | e05f254 | 2009-05-19 00:58:48 +0000 | [diff] [blame] | 57 | </copy> |
| 58 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 59 | <fileset dir="extensions/jndi/build" includes="*.jar"/> |
limpbizkit | e05f254 | 2009-05-19 00:58:48 +0000 | [diff] [blame] | 60 | </copy> |
| 61 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 62 | <fileset dir="extensions/throwingproviders/build" includes="*.jar"/> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 63 | </copy> |
limpbizkit | bf5d227 | 2008-02-16 01:49:41 +0000 | [diff] [blame] | 64 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 65 | <fileset dir="extensions/multibindings/build" includes="*.jar"/> |
limpbizkit | 5019270 | 2008-05-01 09:55:02 +0000 | [diff] [blame] | 66 | </copy> |
mcculls | f8d74d6 | 2010-10-21 21:32:26 +0000 | [diff] [blame] | 67 | <copy toDir="${build.dir}/dist"> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 68 | <fileset dir="extensions/dagger-adapter/build" includes="*.jar"/> |
| 69 | </copy> |
| 70 | <copy toDir="${build.dir}/dist"> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 71 | <fileset dir="extensions/persist/build" includes="*.jar"/> |
mcculls | f8d74d6 | 2010-10-21 21:32:26 +0000 | [diff] [blame] | 72 | </copy> |
Sam Berlin | c7ae433 | 2014-04-10 19:17:37 -0400 | [diff] [blame] | 73 | <copy toDir="${build.dir}/dist"> |
| 74 | <fileset dir="extensions/grapher/build" includes="*.jar"/> |
| 75 | </copy> |
| 76 | <copy toDir="${build.dir}/dist"> |
| 77 | <fileset dir="extensions/testlib/build" includes="*.jar"/> |
| 78 | </copy> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 79 | |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 80 | <copy toDir="${build.dir}/dist" file="COPYING"/> |
| 81 | <copy toDir="${build.dir}/dist"> |
| 82 | <fileset dir="${lib.dir}" |
| 83 | includes="*.jar"/> |
| 84 | </copy> |
| 85 | <copy toDir="${build.dir}/dist"> |
crazyboblee | efdb6f3 | 2007-02-26 02:54:11 +0000 | [diff] [blame] | 86 | <fileset dir="${build.dir}" includes="javadoc/**/*"/> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 87 | </copy> |
| 88 | |
limpbizkit | 7bf3e3c | 2008-07-12 20:16:31 +0000 | [diff] [blame] | 89 | <zip destfile="${build.dir}/guice-${version}.zip"> |
limpbizkit | 53708f0 | 2008-11-29 20:45:55 +0000 | [diff] [blame] | 90 | <zipfileset dir="${build.dir}/dist" prefix="guice-${version}" excludes="*-src.jar"/> |
limpbizkit | 7bf3e3c | 2008-07-12 20:16:31 +0000 | [diff] [blame] | 91 | </zip> |
| 92 | <zip destfile="${build.dir}/guice-${version}-src.zip"> |
| 93 | <zipfileset dir="." prefix="guice-${version}-src" |
sberlin@gmail.com | 9db504f | 2010-10-31 21:32:49 +0000 | [diff] [blame] | 94 | excludes="build/**,**/.svn/**,classes/**,.settings/**,bin/**,latest-api-diffs/**,latest-javadoc/**,.classpath,.project"/> |
limpbizkit | 7bf3e3c | 2008-07-12 20:16:31 +0000 | [diff] [blame] | 95 | </zip> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 96 | </target> |
Christian Edward Gruber | ba5acdf | 2013-10-05 14:05:39 -0700 | [diff] [blame] | 97 | |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 98 | <target name="test.dist" |
Christian Edward Gruber | ba5acdf | 2013-10-05 14:05:39 -0700 | [diff] [blame] | 99 | description="Execute JUnit tests against distribution jar."> |
| 100 | <antcall target="test.dist.run"> |
| 101 | <param name="jvmarg-value" value="-Dguice_include_stack_traces="/> |
| 102 | </antcall> |
| 103 | <antcall target="test.dist.run"> |
| 104 | <param name="jvmarg-value" value="-Dguice_include_stack_traces=OFF"/> |
| 105 | </antcall> |
| 106 | <antcall target="test.dist.run"> |
| 107 | <param name="jvmarg-value" value="-Dguice_include_stack_traces=COMPLETE"/> |
| 108 | </antcall> |
| 109 | </target> |
| 110 | |
| 111 | <target name="test.dist.run" |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 112 | depends="jar, test.withdeps" |
Christian Edward Gruber | ba5acdf | 2013-10-05 14:05:39 -0700 | [diff] [blame] | 113 | description="Execute JUnit tests against distribution jar with the given jvmarg."> |
| 114 | <java fork="true" |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 115 | classname="junit.textui.TestRunner" |
| 116 | failonerror="true" |
| 117 | taskname="junit"> |
| 118 | <classpath> |
sberlin | 6e37096 | 2010-10-27 01:48:00 +0000 | [diff] [blame] | 119 | <pathelement location="${build.dir}/guice-${version}-tests.jar"/> |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 120 | <pathelement location="${build.dir}/dist/guice-${version}.jar"/> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 121 | <pathelement location="lib/javax.inject.jar"/> |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 122 | <pathelement location="lib/aopalliance.jar"/> |
Christian Edward Gruber | 3236b10 | 2014-02-13 10:37:24 -0800 | [diff] [blame] | 123 | <pathelement location="lib/guava-16.0.1.jar"/> |
Sam Berlin | d57f8ec | 2014-04-08 12:25:33 -0400 | [diff] [blame] | 124 | <pathelement location="lib/build/guava-testlib-16.0.1.jar"/> |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 125 | <pathelement location="lib/build/junit.jar"/> |
crazyboblee | 3a09e29 | 2007-02-08 22:36:21 +0000 | [diff] [blame] | 126 | <pathelement location="lib/build/servlet-api-2.5.jar"/> |
| 127 | <pathelement location="lib/build/easymock.jar"/> |
dhanji | 2cd3f72 | 2009-10-20 08:02:21 +0000 | [diff] [blame] | 128 | <pathelement location="lib/build/javax.inject-tck.jar"/> |
sberlin | f7ac6ea | 2010-05-09 12:48:24 +0000 | [diff] [blame] | 129 | <pathelement location="lib/build/bnd-0.0.384.jar"/> |
| 130 | <pathelement location="lib/build/felix-2.0.5.jar"/> |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 131 | </classpath> |
Christian Edward Gruber | ba5acdf | 2013-10-05 14:05:39 -0700 | [diff] [blame] | 132 | <arg value="com.google.inject.AllTests"/> |
| 133 | <jvmarg value="${jvmarg-value}"/> |
limpbizkit | 869a3c0 | 2008-06-27 01:09:41 +0000 | [diff] [blame] | 134 | <syspropertyset> |
sberlin | f7ac6ea | 2010-05-09 12:48:24 +0000 | [diff] [blame] | 135 | <propertyref name="version"/> |
| 136 | <propertyref name="build.dir"/> |
| 137 | <propertyref name="lib.dir"/> |
limpbizkit | 869a3c0 | 2008-06-27 01:09:41 +0000 | [diff] [blame] | 138 | </syspropertyset> |
crazyboblee | 861eb33 | 2007-02-03 02:42:05 +0000 | [diff] [blame] | 139 | </java> |
| 140 | </target> |
Christian Edward Gruber | 9e2d95b | 2013-06-26 17:43:11 -0700 | [diff] [blame] | 141 | |
Christian Edward Gruber | 54565b2 | 2013-09-20 17:32:30 -0700 | [diff] [blame] | 142 | <property name="old.api" value="3.0"/> |
Sam Berlin | 4b8795e | 2014-07-09 15:47:24 -0400 | [diff] [blame] | 143 | <property name="new.api" value="latest"/> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 144 | <target name="jdiff" depends="compile"> |
Christian Edward Gruber | a78c488 | 2014-03-20 20:39:02 -0700 | [diff] [blame] | 145 | <property name="jdiff.home" value="lib/build/jdiff"/> |
| 146 | <property name="jdiff.tmp" value="build/docs/latest-api-diffs"/> |
| 147 | <delete dir="${jdiff.tmp}"/> |
| 148 | <mkdir dir="${jdiff.tmp}"/> |
| 149 | |
| 150 | <!-- Generate API for current version. --> |
limpbizkit@gmail.com | 011d7c4 | 2010-10-05 02:50:47 +0000 | [diff] [blame] | 151 | <javadoc packagenames="com.google.*" |
Christian Edward Gruber | a78c488 | 2014-03-20 20:39:02 -0700 | [diff] [blame] | 152 | docletpath="${jdiff.home}/jdiff.jar${path.separator}${jdiff.home}/xerces.jar" |
| 153 | maxmemory="1024M" |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 154 | classpathref="javadoc.classpath"> |
mcculls | 74d714c | 2010-10-21 19:10:16 +0000 | [diff] [blame] | 155 | <fileset dir="${src.dir}" defaultexcludes="yes"> |
limpbizkit@gmail.com | 011d7c4 | 2010-10-05 02:50:47 +0000 | [diff] [blame] | 156 | <include name="com/google/**"/> |
| 157 | <exclude name="com/google/inject/internal/**"/> |
| 158 | </fileset> |
| 159 | <fileset dir="${servlet.src.dir}"/> |
| 160 | <fileset dir="${spring.src.dir}"/> |
| 161 | <fileset dir="${assistedinject.src.dir}"/> |
| 162 | <fileset dir="${jmx.src.dir}"/> |
| 163 | <fileset dir="${jndi.src.dir}"/> |
| 164 | <fileset dir="${throwingproviders.src.dir}"/> |
| 165 | <fileset dir="${multibindings.src.dir}"/> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 166 | <fileset dir="${daggeradapter.src.dir}"/> |
limpbizkit@gmail.com | 011d7c4 | 2010-10-05 02:50:47 +0000 | [diff] [blame] | 167 | <fileset dir="${persist.src.dir}"/> |
sberlin@gmail.com | 81a0c60 | 2010-12-02 23:50:16 +0000 | [diff] [blame] | 168 | <fileset dir="${struts2.src.dir}"/> |
Christian Edward Gruber | a78c488 | 2014-03-20 20:39:02 -0700 | [diff] [blame] | 169 | <fileset dir="${grapher.src.dir}"/> |
Sam Berlin | c7ae433 | 2014-04-10 19:17:37 -0400 | [diff] [blame] | 170 | <fileset dir="${testlib.src.dir}"/> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 171 | |
Christian Edward Gruber | a78c488 | 2014-03-20 20:39:02 -0700 | [diff] [blame] | 172 | <doclet name="jdiff.JDiff" path="${jdiff.home}/jdiff.jar:${jdiff.home}/xerces.jar"> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 173 | <param name="-apidir" value="${jdiff.tmp}" /> |
| 174 | <param name="-apiname" value="${new.api}" /> |
| 175 | </doclet> |
| 176 | </javadoc> |
| 177 | |
Sam Berlin | 4b8795e | 2014-07-09 15:47:24 -0400 | [diff] [blame] | 178 | <!-- Do a diff against the previous version. --> |
| 179 | <javadoc packagenames="com.google.*" |
| 180 | destdir="${jdiff.tmp}" |
| 181 | docletpath="${jdiff.home}/jdiff.jar${path.separator}${jdiff.home}/xerces.jar" |
| 182 | maxmemory="512M" |
| 183 | sourcefiles="${jdiff.home}/Null.java" |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 184 | classpathref="javadoc.classpath"> |
Sam Berlin | 4b8795e | 2014-07-09 15:47:24 -0400 | [diff] [blame] | 185 | <doclet name="jdiff.JDiff"> |
| 186 | <param name="-oldapi" value="${old.api}"/> |
Sam Berlin | 0558b32 | 2014-07-10 16:33:32 -0400 | [diff] [blame] | 187 | <param name="-oldapidir" value="latest-api-diffs"/> |
Sam Berlin | 77d1bae | 2014-07-10 08:57:22 -0400 | [diff] [blame] | 188 | <param name="-javadocold" value="http://google.github.io/guice/api-docs/${old.api}/javadoc/"/> |
Sam Berlin | 4b8795e | 2014-07-09 15:47:24 -0400 | [diff] [blame] | 189 | <param name="-newapi" value="${new.api}"/> |
| 190 | <param name="-newapidir" value="${jdiff.tmp}"/> |
Sam Berlin | 77d1bae | 2014-07-10 08:57:22 -0400 | [diff] [blame] | 191 | <param name="-javadocnew" value="http://google.github.io/guice/api-docs/${new.api}/javadoc/"/> |
Sam Berlin | 4b8795e | 2014-07-09 15:47:24 -0400 | [diff] [blame] | 192 | <param name="-stats"/> |
| 193 | <param name="-docchanges"/> |
| 194 | </doclet> |
| 195 | </javadoc> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 196 | </target> |
Sam Berlin | c7ae433 | 2014-04-10 19:17:37 -0400 | [diff] [blame] | 197 | |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 198 | <target name="javadoc" depends="compile"> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 199 | <javadoc packagenames="com.google.*" |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 200 | destdir="build/docs/javadoc" |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 201 | maxmemory="512M" |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 202 | classpathref="javadoc.classpath" |
Sam Berlin | 173d733 | 2014-07-23 09:12:56 -0400 | [diff] [blame] | 203 | additionalparam="-Xdoclint:none -notimestamp" |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 204 | windowtitle="Guice ${new.api} API" |
| 205 | author="false" |
| 206 | protected="true"> |
| 207 | <group title="Guice Core" packages="com.google.inject:com.google.inject.util:com.google.inject.spi:com.google.inject.name:com.google.inject.matcher:com.google.inject.binder"/> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 208 | <fileset dir="${src.dir}" defaultexcludes="yes"> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 209 | <include name="com/google/inject/**"/> |
sberlin | e0359ad | 2010-10-31 20:39:41 +0000 | [diff] [blame] | 210 | <exclude name="com/google/inject/internal/**"/> |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 211 | </fileset> |
limpbizkit@gmail.com | 011d7c4 | 2010-10-05 02:50:47 +0000 | [diff] [blame] | 212 | |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 213 | <group title="Servlet Extension" packages="com.google.inject.servlet"/> |
| 214 | <fileset dir="${servlet.src.dir}"/> |
| 215 | |
| 216 | <group title="AssistedInject Extension" packages="com.google.inject.assistedinject"/> |
| 217 | <fileset dir="${assistedinject.src.dir}"/> |
| 218 | |
| 219 | <group title="Multibinder Extension" packages="com.google.inject.multibindings"/> |
| 220 | <fileset dir="${multibindings.src.dir}"/> |
| 221 | |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 222 | <group title="Dagger Adapter" packages="com.google.inject.daggeradapter"/> |
| 223 | <fileset dir="${daggeradapter.src.dir}"/> |
| 224 | |
Sam Berlin | 6b3086d | 2014-07-20 13:03:09 -0400 | [diff] [blame] | 225 | <group title="ThrowingProviders Extension" packages="com.google.inject.throwingproviders"/> |
| 226 | <fileset dir="${throwingproviders.src.dir}"/> |
| 227 | |
| 228 | <group title="Test Libraries Extension" packages="com.google.inject.testing.*"/> |
| 229 | <fileset dir="${testlib.src.dir}"/> |
| 230 | |
| 231 | <group title="Grapher Extension" packages="com.google.inject.grapher:com.google.inject.grapher.*"/> |
| 232 | <fileset dir="${grapher.src.dir}"/> |
| 233 | |
| 234 | <group title="Persist Extension" packages="com.google.inject.persist:com.google.inject.persist.*"/> |
| 235 | <fileset dir="${persist.src.dir}"/> |
| 236 | |
| 237 | <group title="Spring Extension" packages="com.google.inject.spring"/> |
| 238 | <fileset dir="${spring.src.dir}"/> |
| 239 | |
| 240 | <group title="Struts2 Extension" packages="com.google.inject.struts2"/> |
| 241 | <fileset dir="${struts2.src.dir}"/> |
| 242 | |
| 243 | <group title="JNDI Extension" packages="com.google.inject.jndi"/> |
| 244 | <fileset dir="${jndi.src.dir}"/> |
| 245 | |
| 246 | <group title="JMX Extension" packages="com.google.inject.tools.jmx"/> |
| 247 | <fileset dir="${jmx.src.dir}"/> |
| 248 | |
| 249 | <link href="http://aopalliance.sourceforge.net/doc/"/> |
| 250 | <link href="http://docs.oracle.com/javase/7/docs/api/"/> |
| 251 | <link href="http://atinject.googlecode.com/svn/trunk/javadoc/"/> |
| 252 | <link href="http://docs.guava-libraries.googlecode.com/git/javadoc/"/> |
| 253 | <link href="https://tomcat.apache.org/tomcat-5.5-doc/servletapi/"/> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 254 | </javadoc> |
| 255 | </target> |
| 256 | |
limpbizkit | 7c508c2 | 2009-02-19 02:56:27 +0000 | [diff] [blame] | 257 | <target name="no_aop" |
| 258 | description="Create a copy of the Guice source that doesn't do bytecode generation."> |
| 259 | <taskdef name="munge" classname="MungeTask" classpath="lib/build/munge.jar"/> |
| 260 | <mkdir dir="build/no_aop"/> |
| 261 | <munge todir="build/no_aop"> |
limpbizkit | bf0d876 | 2009-02-19 09:06:22 +0000 | [diff] [blame] | 262 | <fileset dir="."> |
limpbizkit | 4f6274a | 2009-02-19 21:57:55 +0000 | [diff] [blame] | 263 | <!-- exclude generated files --> |
| 264 | <exclude name="build/**"/> |
| 265 | <exclude name="classes/**"/> |
| 266 | <exclude name="latest-api-diffs/**"/> |
| 267 | <exclude name="javadoc/**"/> |
| 268 | <exclude name="latest-javadoc/**"/> |
| 269 | <!-- exclude AOP-specific libraries --> |
| 270 | <exclude name="lib/aopalliance.jar"/> |
| 271 | <exclude name="lib/build/asm-*.jar"/> |
| 272 | <exclude name="lib/build/cglib-*.jar"/> |
| 273 | <!-- exclude AOP-specific classes --> |
| 274 | <exclude name="**/LineNumbers.java"/> |
limpbizkit | bf0d876 | 2009-02-19 09:06:22 +0000 | [diff] [blame] | 275 | <exclude name="**/InterceptorBindingProcessor.java"/> |
| 276 | <exclude name="**/ProxyFactory.java"/> |
limpbizkit | 4f6274a | 2009-02-19 21:57:55 +0000 | [diff] [blame] | 277 | <exclude name="**/ProxyFactoryTest.java"/> |
limpbizkit | bf0d876 | 2009-02-19 09:06:22 +0000 | [diff] [blame] | 278 | <exclude name="**/InterceptorStackCallback.java"/> |
| 279 | <exclude name="**/InterceptorBinding.java"/> |
| 280 | <exclude name="**/MethodAspect.java"/> |
| 281 | <exclude name="**/MethodInterceptionTest.java"/> |
| 282 | <exclude name="**/BytecodeGenTest.java"/> |
| 283 | <exclude name="**/IntegrationTest.java"/> |
| 284 | <exclude name="**/MethodInterceptionTest.java"/> |
| 285 | </fileset> |
limpbizkit | 7c508c2 | 2009-02-19 02:56:27 +0000 | [diff] [blame] | 286 | <arg value="-DNO_AOP" /> |
| 287 | </munge> |
sberlin | b7a02b0 | 2011-07-08 00:34:16 +0000 | [diff] [blame] | 288 | <replace file="build/no_aop/common.xml" value=""> |
Sam Berlin | 22d4cca | 2014-08-09 14:21:04 -0400 | [diff] [blame] | 289 | <replacetoken><![CDATA[<zipfileset src="${common.basedir}/lib/build/asm-5.0.3.jar"/>]]></replacetoken> |
sberlin | b7a02b0 | 2011-07-08 00:34:16 +0000 | [diff] [blame] | 290 | </replace> |
| 291 | <replace file="build/no_aop/common.xml" value=""> |
Sam Berlin | e812003 | 2013-12-07 12:47:34 -0500 | [diff] [blame] | 292 | <replacetoken><![CDATA[<zipfileset src="${common.basedir}/lib/build/cglib-3.1.jar"/>]]></replacetoken> |
sberlin | b7a02b0 | 2011-07-08 00:34:16 +0000 | [diff] [blame] | 293 | </replace> |
| 294 | <replace file="build/no_aop/common.xml" value=""> |
Sam Berlin | 1047e98 | 2013-12-07 13:23:58 -0500 | [diff] [blame] | 295 | <replacetoken><![CDATA[<zipfileset src="${common.basedir}/lib/build/cglib-3.1.jar"><include name="LICENSE"/><include name="NOTICE"/></zipfileset>]]></replacetoken> |
sberlin | b7a02b0 | 2011-07-08 00:34:16 +0000 | [diff] [blame] | 296 | </replace> |
Sam Berlin | 32a8f24 | 2013-12-06 17:07:07 -0500 | [diff] [blame] | 297 | <replace file="build/no_aop/common.xml" value='Bundle-Name" value="$${ant.project.name} (no_aop)'> |
| 298 | <replacetoken><![CDATA[Bundle-Name" value="${ant.project.name}]]></replacetoken> |
| 299 | </replace> |
limpbizkit | 7c508c2 | 2009-02-19 02:56:27 +0000 | [diff] [blame] | 300 | </target> |
| 301 | |
crazyboblee | efdb6f3 | 2007-02-26 02:54:11 +0000 | [diff] [blame] | 302 | <target name="clean.all" |
| 303 | depends="clean" |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 304 | description="Remove generated files."> |
sberlin | f8537ea | 2010-08-21 23:50:30 +0000 | [diff] [blame] | 305 | <ant dir="extensions/servlet" antfile="build.xml" target="clean"/> |
| 306 | <ant dir="extensions/spring" antfile="build.xml" target="clean"/> |
sberlin@gmail.com | 81a0c60 | 2010-12-02 23:50:16 +0000 | [diff] [blame] | 307 | <ant dir="extensions/struts2" antfile="build.xml" target="clean"/> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 308 | <ant dir="extensions/assistedinject" antfile="build.xml" target="clean"/> |
limpbizkit | e05f254 | 2009-05-19 00:58:48 +0000 | [diff] [blame] | 309 | <ant dir="extensions/jmx" antfile="build.xml" target="clean"/> |
| 310 | <ant dir="extensions/jndi" antfile="build.xml" target="clean"/> |
limpbizkit | 0c43f22 | 2007-12-19 01:38:16 +0000 | [diff] [blame] | 311 | <ant dir="extensions/throwingproviders" antfile="build.xml" target="clean"/> |
limpbizkit | 5019270 | 2008-05-01 09:55:02 +0000 | [diff] [blame] | 312 | <ant dir="extensions/multibindings" antfile="build.xml" target="clean"/> |
cgruber | 0910c1e | 2015-02-18 12:07:13 -0800 | [diff] [blame] | 313 | <ant dir="extensions/dagger-adapter" antfile="build.xml" target="clean"/> |
mcculls | f8d74d6 | 2010-10-21 21:32:26 +0000 | [diff] [blame] | 314 | <ant dir="extensions/persist" antfile="build.xml" target="clean"/> |
sberlin@gmail.com | c9ece6b | 2010-12-20 22:26:44 +0000 | [diff] [blame] | 315 | <ant dir="extensions/grapher" antfile="build.xml" target="clean"/> |
Sam Berlin | c7ae433 | 2014-04-10 19:17:37 -0400 | [diff] [blame] | 316 | <ant dir="extensions/testlib" antfile="build.xml" target="clean"/> |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 317 | </target> |
Sam Berlin | 0558b32 | 2014-07-10 16:33:32 -0400 | [diff] [blame] | 318 | |
crazyboblee | 66b415a | 2006-08-25 02:01:19 +0000 | [diff] [blame] | 319 | </project> |