https://issues.apache.org/bugzilla/show_bug.cgi?id=48815

           Summary: Blank jvmargs attribute value in java task causes
                    java.lang.NoClassDefFoundError
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: [email protected]
        ReportedBy: [email protected]


I have spent a long time trying to assert what has been causing a
NoClassDefFoundError in my build script and have finally worked out that if the
jvmargs element value attribute is blank it tries to execute this value as the
main class rather than the classname attribute of the java element.  There is
no information or stack track because it was literally trying to execute "". 
It is useful to be able to pass in arguments which may or may not be blank as a
jvmarg and this functionality works in the Windows implementation.  I have
found this bug to be present in Ant 1.5.0_19 and 1.7.1.

I couldn't see anything open for this at the moment, nor could I see anything
in the fixes for 1.8.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to