Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 47523 invoked by uid 500); 14 Sep 2001 17:55:34 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 47509 invoked from network); 14 Sep 2001 17:55:34 -0000 Message-ID: <005301c13d46$871219c0$6601a8c0@computer> From: "Sanjeev Pai" To: "Ant Users \(E-mail\)" Subject: Question regarding classpath available to a Java Program running within Ant Date: Fri, 14 Sep 2001 12:56:06 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, I am using Ant on Win2K to run tests on a program written to use the Kodo JDO implementation. The build.sysclasspath property has been set to "ignore" to ignore the system classpath and use the classpath specified in the property. Unfrtunately, the classpath available to the Java program from the System Property java.class.path seems to be the one set by the ant.bat file, effectively ignoring the path set by me in the build.xml file. I have the following directive - When the following line executes - System.out.println("classpath is " + System.getProperty("java.class.path") + "\n"); The output is classpath is c:\jdk1.3.1\lib\tools.jar;c:\gnu\jakarta-ant-1.3\lib\parser.jar;c:\ gnu\jakarta-ant-1.3\lib\jaxp.jar;c:\gnu\jakarta-ant-1.3\lib\ant.jar;c:\jdk1. 3.1\ lib;c:\gnu\jakarta-ant-1.3\lib\ant.jar This is the classpath set by the ant.bat batch file How can the program see the classpath set by the build.xml file? Rgds, sanjeev pai