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 9010] New: - Using <property environment="env"/> crashes ant
Date Sun, 12 May 2002 14:17:40 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=9010>.
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=9010

Using <property environment="env"/> crashes ant

           Summary: Using <property environment="env"/> crashes ant
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Build Process
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: afuechsel@slb.com


The following fragment of a build.xml crashes ant: 

<project name="Test" default="compile" basedir=".">
    <property environment="env"/>
</project>

Here is the output of ant compile -verbose

Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.0\jre
Detected OS: Windows XP
parsing buildfile D:\Projekte\OpenCms\opencms\build.xml with URI = 
file:D:/Projekte/OpenCms/opencms/build.xml
Project base dir set to: D:\Projekte\OpenCms\opencms
 [property] Loading Environment env.

BUILD FAILED

D:\Projekte\OpenCms\opencms\build.xml:3: java.lang.NullPointerException
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:135)
        at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:439)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.tools.ant.taskdefs.Property.loadEnvironment
(Property.java:253)
        at org.apache.tools.ant.taskdefs.Property.execute(Property.java:183)
        at org.apache.tools.ant.ProjectHelper$TaskHandler.finished
(ProjectHelper.java:485)
        at org.apache.tools.ant.ProjectHelper$AbstractHandler.endElement
(ProjectHelper.java:204)
        at org.xml.sax.helpers.XMLReaderAdapter.endElement
(XMLReaderAdapter.java:347)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1536)
        at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
        at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
        at org.apache.crimson.parser.XMLReaderImpl.parse
(XMLReaderImpl.java:442)
        at org.xml.sax.helpers.XMLReaderAdapter.parse
(XMLReaderAdapter.java:223)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:314)
        at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:117)
        at org.apache.tools.ant.ProjectHelper.configureProject
(ProjectHelper.java:85)
        at org.apache.tools.ant.Main.runBuild(Main.java:439)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 5 seconds

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message