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 50482] New: JUnit test crash when executed from Ant with empty jvmarg option
Date Wed, 15 Dec 2010 23:03:34 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50482

           Summary: JUnit test crash when executed from Ant with empty
                    jvmarg option
           Product: Ant
           Version: 1.8.1
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: notifications@ant.apache.org
        ReportedBy: igor.nikolaev@nikisoft.ru


I have a JUnit task in my build.xml that forkss JVM for test execution. 
And I specify jvmarg which takes a value from property.

If property value is empty string, Ant fails with ClassDefNotFoundError.

I have prepared a simple test case that demonstrates the issue.
This issue can be reproduced on Mac OS X, Solaris and, probably, Unix/Linux.
Under Windows the issue doesn't reproduce.

The reason of failure is that empty jvmarg get converted to period when
substituted in JVM command line and gets treated as a class name e.g.: java .
EmptyJvmargTest

Expected behavior: ignore empty jvmarg and do not append period to java command
line

-- 
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