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=29723>. 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=29723 File creation/read issue with record and loadfile tasks Summary: File creation/read issue with record and loadfile tasks Product: Ant Version: 1.6.1 Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Core tasks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] The record task is not generating the output files relative to the basedir folder of a build script, but the loadfile task seems to be loading files relative to the basedir??? Background; I have an outer task wherein I record a log file (jspcompile.log) using the record task (start and stop). Subsequent to the stop task, I attempt to read in jspcompile.log using the loadfile task and I get a java.io.FileNotFoundException. Reason; Assume that you have the following folder structure. Root |----build |----antxml |----scripts I invoked the script file from the "scripts" folder. I set the basedir to Root passing in -Dbasedir="..\..". The record task created jspcompile.log file in the scripts folder and loadfile looks for jspcompile.log file in the Root folder. Actual build task; <target name="jspcompile" if="module.name"> <record name="jspcompile.log" action="start" loglevel="verbose"/> <wljspc src="${webstaging}\${module.name}" dest="${classesdir}\webcompile\${module.name}" package="jsp"> <classpath refid="compile.class.path"/> </wljspc> <record name="jspcompile.log" action="stop"/> <loadfile property="jspcompile.output" srcfile="jspcompile.log" failonerror="false"/> <condition property="jspcompile.failure"> <or> <contains string="${build.output}" substring="BUILD FAILED" /> <contains string="${build.output}" substring=" error"/> </or> </condition> <fail message="Jsp compile failed. See jspcompile.log for more info" if="jspcompile.failure"/> </target> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]