ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 16789] New: - backslash in build.properties
Date Tue, 04 Feb 2003 23:34:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16789

backslash in build.properties

           Summary: backslash in build.properties
           Product: Ant
           Version: 1.5
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: axiom@axiom.f9.co.uk


This one stumped me for a little while.

It appears that \ are treated as escape character in the 
property file.  Thats fine, but maybe the error message could be a little more helpful when
things 
go wrong.

Below is the stack trace

Thanks 
again,
Colin

java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at 
java.util.Properties.loadConvert(Properties.java:309)
        at 
java.util.Properties.load(Properties.java:258)
        at 
org.apache.tools.ant.taskdefs.Property.loadFile(Property.java:388)
        at 
org.apache.tools.ant.taskdefs.Property.execute(Property.java:351)
        at 
org.apache.tools.ant.Task.perform(Task.java:319)
        at 
org.apache.tools.ant.Target.execute(Target.java:309)
        at 
org.apache.tools.ant.Target.performTasks(Target.java:336)
        at 
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at 
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at 
org.apache.tools.ant.Main.runBuild(Main.java:610)
        at 
org.apache.tools.ant.Main.start(Main.java:196)
        at 
org.apache.tools.ant.Main.main(Main.java:235)

Mime
View raw message