[Carrot2-cvs] carrot2/components/filters/diagnostic/stream-interceptor stream-interceptor.dep.xml,NO
Brought to you by:
dawidweiss,
stachoo
From: <daw...@us...> - 2004-02-06 18:19:42
|
Update of /cvsroot/carrot2/carrot2/components/filters/diagnostic/stream-interceptor In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4867/components/filters/diagnostic/stream-interceptor Modified Files: build.xml Added Files: stream-interceptor.dep.xml Log Message: [new], component: global Added a new ANT task to manage JAR interdependencies in the project. Now you can easily collect all JARs that a component requires, plus only these JARs are use d at compile-time. Try using these targets on build files of components: 'ant show.dependencies' (shows all required components and JAR files), 'ant collect.dependencies' (copies the required JARs to the distribution.dir folder). [refactoring], component: global Build files have changed, so ANT1.6 is now a requirement. --- NEW FILE: stream-interceptor.dep.xml --- <!-- A dependency descriptor. This has to be updated manually when new JARs are required. --> <component name="stream-interceptor"> <dependency name="carrot2-shared-lib" /> </component> Index: build.xml =================================================================== RCS file: /cvsroot/carrot2/carrot2/components/filters/diagnostic/stream-interceptor/build.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** build.xml 23 Nov 2003 23:37:54 -0000 1.2 --- build.xml 6 Feb 2004 18:16:23 -0000 1.3 *************** *** 22,39 **** <property name="javac.debug" value="on" /> - <!-- ## classpath for compiling classes ## --> - - <path id="carrot.shared.libs"> - <!-- all jars runtime/shared/lib --> - <fileset dir="${carrot2.cvs.dir}/lib"> - <include name="**/*.jar"/> - </fileset> - </path> - - <!-- ## project classpath ### --> - <path id="compile.classpath"> - <path refid="carrot.shared.libs" /> - </path> - <!-- ##################################### --> <!-- ### {{{ CLEAN ### --> --- 22,25 ---- *************** *** 51,55 **** <!-- ##################################### --> ! <target name="prepare"> <mkdir dir="${distribution.dir}" /> <mkdir dir="${build.dir}" /> --- 37,41 ---- <!-- ##################################### --> ! <target name="prepare" depends="generate.dependency.path"> <mkdir dir="${distribution.dir}" /> <mkdir dir="${build.dir}" /> *************** *** 60,63 **** --- 46,99 ---- <!-- }}} --> + <!-- ##################################### --> + <!-- ### {{{ DEPENDENCY analysis ### --> + <!-- ##################################### --> + <property name="component.descriptor" location="stream-interceptor.dep.xml" /> + + <target name="define.dependency.task"> + <taskdef resource="com/dawidweiss/carrot/ant/dependencies.antlib.xml"> + <classpath location="${carrot2.cvs.dir}/lib/carrot2-shared-lib.jar" /> + </taskdef> + </target> + + <target name="generate.dependency.path" depends="define.dependency.task"> + <dependencylist + property="component.dep" + fileListId="component.dep.flist" + componentDescriptor="${component.descriptor}" + verbose="false" + > + <dependencies dir="${carrot2.cvs.dir}/lib"> + <include name="*.dep.xml" /> + </dependencies> + </dependencylist> + <path id="classpath.dependencies"> + <filelist refid="component.dep.flist" /> + </path> + </target> + + <target name="show.dependencies" depends="define.dependency.task"> + <dependencylist componentDescriptor="${component.descriptor}" verbose="on"> + <dependencies dir="${carrot2.cvs.dir}/lib"> + <include name="*.dep.xml" /> + </dependencies> + </dependencylist> + </target> + + <target name="collect.dependencies" depends="prepare"> + <dependencylist componentDescriptor="${component.descriptor}" verbose="on" + fileListId="component.dep.flist"> + <dependencies dir="${carrot2.cvs.dir}/lib"> + <include name="*.dep.xml" /> + </dependencies> + </dependencylist> + + <copyfilelist todir="${distribution.dir}"> + <filelist refid="component.dep.flist" /> + </copyfilelist> + </target> + <!-- }}} --> + + <!-- ##################################### --> *************** *** 72,77 **** includeantruntime = "false" includejavaruntime = "false" - classpathref = "compile.classpath" > <!-- add source code paths. --> <src path="${src.path}" /> --- 108,114 ---- includeantruntime = "false" includejavaruntime = "false" > + <classpath refid="classpath.dependencies" /> + <classpath location="${carrot2.cvs.dir}/lib/compile-time-only/servlet.jar" /> <!-- add source code paths. --> <src path="${src.path}" /> |