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=44256>. 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=44256 Summary: Javac debug ability is not switched on properly using a property value Product: Ant Version: 1.7.0 Platform: PC OS/Version: Windows XP Status: NEW Severity: major Priority: P3 Component: Core tasks AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] For my build if I define the following in a .properties file: javac.debug = on javac.debuglevel = lines,vars,source In the javac task, if I define: <javac srcdir="src/java" destdir="${build}/classes" classpathref="classpath" debug="on" debuglevel="${javac.debuglevel}" nowarn="${javac.nowarn}" deprecation="${javac.deprecation}" encoding="Cp1252" source="1.5" target="1.5" includes="**/*.java" /> running 'ant -v' produces "[javac] '-g:lines,vars,source" However if change the attribute "debug" to 'debug="${javac.debug}"' 'ant -v' produces "[javac] '-g:none'" If I place an <echo message="value of javac.debug = ${javac.debug}"/> ant produces "value of javac.debug = on" Thus the property value is being read and set however the javac task does not pass the correct debug flags to the Java compiler. -- 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.
