You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2009/04/30 12:23:46 UTC

DO NOT REPLY [Bug 47129] New: trying to set a long to an ${unexpanded-property} generates an ugly error message and stack trace

https://issues.apache.org/bugzilla/show_bug.cgi?id=47129

           Summary: trying to set a long to an ${unexpanded-property}
                    generates an ugly error message and stack trace
           Product: Ant
           Version: 1.8Alpha (nightly)
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: notifications@ant.apache.org
        ReportedBy: stevel@apache.org


This is what you see when you set a long to an unexpanded property. A java
stack trace, not the line in your build file where the problem lies.

BUILD FAILED - at 30/04/09 11:20
java.lang.NumberFormatException: For input string: "${deploy.timeout}"
    at
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Long.parseLong(Long.java:403)
    at java.lang.Long.parseLong(Long.java:461)
    at
org.apache.tools.ant.util.StringUtils.parseHumanSizes(StringUtils.java:242)
    at
org.apache.tools.ant.IntrospectionHelper$10.set(IntrospectionHelper.java:1051)
    at
org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(IntrospectionHelper.java:1398)
    at
org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHelper.java:389)
    at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:392)
    at
org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
    at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
    at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:193)
    at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:160)
    at org.apache.tools.ant.Task.perform(Task.java:347)
    at org.apache.tools.ant.Target.execute(Target.java:354)
    at org.apache.tools.ant.Target.performTasks(Target.java:379)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
    at org.apache.tools.ant.Main.runBuild(Main.java:762)
    at org.apache.tools.ant.Main.startAnt(Main.java:217)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:279)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 47129] trying to set a long to an ${unexpanded-property} generates an ugly error message and stack trace

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47129


Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |1.8.0




--- Comment #1 from Stefan Bodewig <bo...@apache.org>  2009-05-07 03:58:54 PST ---
it doesn't take an unexpanded property

<sleep milliseconds="a"/>

doesn't look any better.

Fixed with svn revision 772606 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=772606 )

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.