Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34561 invoked by uid 500); 30 Jul 2003 10:59:50 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 34498 invoked from network); 30 Jul 2003 10:59:48 -0000 Received: from animal.inescn.pt (192.35.246.1) by daedalus.apache.org with SMTP; 30 Jul 2003 10:59:48 -0000 Received: from bart.inescn.pt (root@bart.inescn.pt [192.35.246.9]) by animal.inescn.pt (8.12.3/8.12.3/5) with ESMTP id h6UAxlTd018334 for ; Wed, 30 Jul 2003 11:59:47 +0100 (WEST) Received: from inescn.pt (luxuria.inescn.pt [194.117.30.114]) by bart.inescn.pt (8.12.5/INESCP-V2.10) with ESMTP id h6UAxk8x020204 for ; Wed, 30 Jul 2003 11:59:46 +0100 (WEST) Message-ID: <3F27A2F4.8020003@inescn.pt> Date: Wed, 30 Jul 2003 11:50:28 +0100 From: Jorge Pereira User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: pt, en-us, en MIME-Version: 1.0 To: user@ant.apache.org Subject: Re: help wanted - escaping from quotes References: <8B4A710A4FF0E8449E1066277C45C58E93CB@Fenris> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Morten, First thanks for your replay. The problem is that if i do as you say (and i have tested this before) the second URL does not apear in the rmi property and the rmid can't download the jini classes. So it gives a "no class def found /net/jini/core/something". In the sun documentation they say (and that is true) that, whenener more that one url is neaded one must put the diferent url's in quotes separated by a space in the refered java.rmi.server.codebase. The problem is that the jvmargs tag does not do this. I think you are right. My first atempt was to put as you say, in the ant build.xml but with no success. I think this is a bug in the ant tag, but, until now, i did not have a response from the ant team. So if i do: - jmarg only provides the first url to forked jvm; and like this: - jmarg only provides the first url to forked jvm with the first quote, so "file:/// is an unknown protocol. So anymore suggestions ??? Regards, Jorge Pereira Morten Mortensen wrote: >Hi Jorge, > >You really want your quotes like - > >"-Djava.rmi.server.codebase=file:///${basedir}/build/classes/ >file:///$basedir/lib/jini/jini-core.jar" > >- on the command-line! > >When you feed in a single "jvmarg" to Ant, the quotes are not necessary >- in fact, the quotes are *not* part of the file-URL, but does become part >of the file-URL; try how things work out without them! > >Regards, > Morten Sabroe Mortensen > > >-----Original Message----- >From: Jorge Pereira >To: user@ant.apache.org >Sent: 29-07-03 17:52 >Subject: help wanted - escaping from quotes > >hi, > > i have to pass the following argument to a class for RMID download >of stubs: > >-Djava.rmi.server.codebase="file:///${basedir}/build/classes/ >file:///$basedir/lib/jini/jini-core.jar" > >the previous line, works fine on the command line. > >But in the ant this doesn't work. > >I tryed : > >value='-Djava.rmi.server.codebase="file:///${basedir}/build/classes/ >file:///$basedir/lib/jini/jini-core.jar"' /> > >but i gives me an error like this one : > >java.net.MalformedURLException: no protocol: >"file:///home/mypath/build/classes/ > >Does anyone tryed this ??? > >thanks in advance. > >Jorge Pereira > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org