ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maria Ivanova" <m_ivan...@prosyst.bg>
Subject java task classpath is not added to java.class.path?
Date Wed, 02 Apr 2003 16:50:30 GMT
Hello,

How to add classpath to java.class.path when running a java task (is it possible without using
<jvmarg value="-classpath" /> <jvmarg value="${some.classpath}" />")?  I could
not make it using the <classpath> element.

Here is a test project: 

<?xml version="1.0"?>
<project name="framework" default="test" basedir=".">
 <target name="test">
  <java classname="demo.jsp.DeviceBean">
   <classpath>
    <pathelement path=".;D:/develop/embeddedsoft/frameworktools/bin/tools/framework/jsp/jsptool.jar;../../../lib/frameworklib.jar"/>
    <pathelement path="${java.class.path}" />
   </classpath>
  </java>
 </target>
</project>


The DeviceBean class prints the java.class.path property, here is the output of the test target:


test:
     [java] >>>>>>>java.class.path is:c:\jdk1.2.2\lib\tools.jar;D:\develop\embed
dedsoft\embsoft-general\tools\ant\lib\xml-apis.jar;D:\develop\embeddedsoft\embso
ft-general\tools\ant\lib\xercesImpl.jar;D:\develop\embeddedsoft\embsoft-general\
tools\ant\lib\optional.jar;D:\develop\embeddedsoft\embsoft-general\tools\ant\lib
\ant.jar;

The custom classpath (.;D:/develop/embeddedsoft/frameworktools/bin/tools/framework/jsp/jsptool.jar;../../../lib/frameworklib.jar)
is not added to java.class.path. The jar files from the classpath exist.

Any idea? 


Best regards,
 
--------------------------------------------------------
Maria Ivanova, Developer
Dept: mBedded Server/Core    
ProSyst Bulgaria, Inc.       
48 Vladaiska Str, Sofia 1606, Bulgaria         
Tel.  (+359 2) 952 35 81 (108)
http://www.prosyst.com/
--------------------------------------------------------
Leading Software Technology for Open Service Gateways
--------------------------------------------------------
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message