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 4107] New: - <java> runs class twice
Date Thu, 11 Oct 2001 15:28:38 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=4107>.
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=4107

<java> runs class twice

           Summary: <java> runs class twice
           Product: Ant
           Version: 1.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: ant-dev@jakarta.apache.org
        ReportedBy: andy_bhoy@yahoo.com


I have a class com.aw.httpLoadTester.httpLoadTester that runs correctly from 
the command line with: 

java -cp classes com.naryx.httpLoadTester.httpLoadTester

But when I use ANT to run it with:

ant runclass -Dclass=com.naryx.httpLoadTester.httpLoadTester

where build.xml is:

...
<target name="runclass">
    <!-- Run the class given as a command line argument -->
    <echo message="Running ${class}"/>
    <java classname="${class}">
      <classpath>
        <pathelement location="${build}"/>
        <pathelement location="${jarpath}jsdk.jar"/>
      </classpath>
    </java>
</target>
...

the httpLoadTester class runs twice.

Mime
View raw message