ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44256] New: - Javac debug ability is not switched on properly using a property value
Date Thu, 17 Jan 2008 05:33:07 GMT
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: notifications@ant.apache.org
        ReportedBy: kierans_777@hotmail.com
                CC: kierans_777@hotmail.com


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.

Mime
View raw message