DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28099>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=28099

junit problem with quotes in path

           Summary: junit problem with quotes in path
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The junit task appears to have a problem whenever the %PATH% variable contains 
an element enclosed in quotes.  ex: 
PATH=C:\somedir\someutility;"C:\someother\path";C:\yet\another\path
The java command line calls formed by the junit task appear to mess up the 
value of the java.library.path system property.  The problem appears to be 
close to where the value of the dir attribute of the junit task is inserted 
into the java.library.path value.  (Not sure about the last part, the problem 
has rolled out of my screen buffer and I'm short on time.)

The relevant snipts from my build file are below.  I believe one could emulate 
the problem in the following situation:
1) junit nested batchtest forks
2) junit dir attribute is set
3) java.library.path system property is set
4) PATH environment variable contains something in quotes.

I doubt all of this is necessary to duplicate the bug.  Unfortuantely, I don't 
have the time to debug this and submit a patch.  For now I just made sure I 
didn't have any quoted elements in my PATH.


=====
Build file snipts:
=====
<property name="javalib.including.dlls.path" value="${java.library.path}"/>

<junit haltonfailure="no"
       failureproperty="tests.failed"
       dir="${basedir}"
       printsummary="yes">

       <sysproperty key="java.library.path"
          path="${javalib.including.dlls.path}"/>
        <classpath refid="test.classpath.ref"/>
        <formatter type="plain" usefile="no"/>
        <batchtest fork="yes"
            todir="${simpletest.reports}">

            <fileset dir="${testsrc.home}">
               <patternset refid="test.simple.patternset"/>
             </fileset>
        </batchtest>
</junit>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to