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 2010/12/16 00:03:34 UTC
DO NOT REPLY [Bug 50482] New: JUnit test crash when executed from
Ant with empty jvmarg option
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.
DO NOT REPLY [Bug 50482] JUnit test crash when executed from Ant
with empty jvmarg option
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50482
--- Comment #1 from Igor Nikolaev <ig...@nikisoft.ru> 2010-12-15 18:08:50 EST ---
Created an attachment (id=26413)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26413)
Eclipse project that demonstrates the issue
I had to remove Ant libs from the project to make archive size below 1 Mb
--
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 50482] JUnit test crash when executed from Ant
with empty jvmarg option
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50482
Antoine Levy-Lambert <an...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|1.8.1 |1.8.2
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.