DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35590>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35590 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-04 02:43 ------- You can create the following bulid script that copies the original build script and adds <presetdef>. The script uses ANT Contrib and assumes there is a space character (including newline) after <project>. Run it before executing the real build (maybe by creating a shell script), then run ANT with new buildscript with giver parameters: <?xml version="1.0" encoding="iso-8859-1"?> <project name="smartbuild" default="all" basedir="."> <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath> <pathelement location="lib/ant-contrib.jar"/> </classpath> </taskdef> <target name="all"> <if><not><uptodate srcfile="build.xml" targetfile="updated.xml"/></not> <then> <copy file="build.xml" tofile="updated.xml"/> <replaceregexp file="updated.xml" match="(<project.*?>)(\s)" replace="\1<presetdef name="javac"><javac compiler="$${build.compiler}"/></presetdef>\2"/> </then> </if> </target> </project> This is a batch script that can be used to executed updated build: #!/bin/bash ant -f build2.xml ant -f updated.xml $@ With ANT, you can execute the target and then execute <ant> with updated file. - Alexey. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
