ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edward Nesterov <...@quadrix.com>
Subject Re: Java task and classpath definition.
Date Wed, 20 Mar 2002 14:01:56 GMT
Thaks Erik,

I found an error.
The problem was in number of arguments of main function.
I was just confused with ant error message.

Thanks again.

Ed.

Erik Hatcher wrote:

> Could you provide the ant -debug output to see where the stack trace is
> coming from?
> 
> Thanks,
>     Erik
> 
> 
> ----- Original Message -----
> From: "Edward Nesterov" <edn@quadrix.com>
> To: <ant-user@jakarta.apache.org>
> Sent: Tuesday, March 19, 2002 3:09 PM
> Subject: Java task and classpath definition.
> 
> 
> 
>>Hi everybody,
>>I am trying to run simple java task:
>>
>>   <target name="run-test" depends="compile">
>>     <java classname="qvm.jms.QvmTestDriver">
>>       <classpath>
>>         <pathelement location="${classes.location}"/>
>>         <fileset dir="${lib.location}">
>>           <include name="**/*.jar"/>
>>         </fileset>
>>       </classpath>
>>     </java>
>>   </target>
>>
>>and keep getting the following output:
>>   Buildfile: build.xml
>>   init:
>>   compile:
>>   run-test:
>>   BUILD FAILED
>>   /opt/home/edn/build.xml:44: java.lang.ArrayIndexOutOfBoundsException
>>
>>When I remove <fileset> element from classpath it works.
>>
>>Could anybody tell me what I am doing in the wrong way.
>>
>>Thanks in advance.
>>
>>Ed.
>>
>>
>>--
>>To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
>>For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>>
>>
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
> 
> 
> 


-- 
Eduard Nesterov
Quadrix Solutions Inc.
(732) 2352335 ext 7014


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message