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 47129] New: trying to set a long to an ${unexpanded-property} generates an ugly error message and stack trace
Date Thu, 30 Apr 2009 10:23:46 GMT
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.

Mime
View raw message