ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinar Bicioglu <p.bicio...@CustomerDialogue.com>
Subject RE: FW: Can't find the files
Date Fri, 06 Apr 2001 16:18:23 GMT
Just for trying, since my JDKs live in D drive in my machine, I wrote

<property name="$Java122Classes" value="d:/jdk1.2.2/jre/lib/rt.jar" />
<property name="Java118Classes" value="d:/jdk1.1.8/lib/classes.zip" />

in my "build.properties" file. After deleting

<property name= " Java122Classes" value="/jdk122/jre/lib/rt.jar" />
<property name= " Java118Classes" value="/jdk118/jre/lib/classes.zip" />

lines from build.xml file, I wrote 

<property file="build.properties" /> on the top of build.xml file. 

So it's suppose to go and find files and work correctly right? but it's not
working and I don't know what I am doing wrong here :(


-----Original Message-----
From: Diane Holt [mailto:holtdl@yahoo.com]
Sent: Friday, April 06, 2001 11:59 AM
To: ant-user@jakarta.apache.org
Subject: Re: FW: Can't find the files


--- Pinar Bicioglu <p.bicioglu@CustomerDialogue.com> wrote:
> :) Not really. I have been still working on that. I made a properties
> file containing 
> 
> <property name="Java122Classes"
> value="${jdk122root}/jdk1.2.2/jre/lib/rt.jar" />\
> <property name="Java118Classes"
> value="${jdk118root}/jdk1.1.8/lib/classes.zip" />
> 
> then I added the <properties name="build.properties"/> line on the top
> of my build.xml file. But it still not working. I also tried Nico's and
> Anuj's suggestions but no result!! I think I am messing something up
> here!

You would read in a properties file called build.properties using the file
attribute, not the name attribute:

  <property file="build.properties"/>

You also need to set the "jdk122root" and "jdk118root" properties to the
appropriate path. For example, if the JDK jars on your machine live in,
say, d:/java/tools, then you need to get the "jdk122root" and "jdk118root"
properties set to that before you run 'ant'. You can do that in a number
of different ways, and the way you choose depends on how you've designed
your build process. For now, just to get things working so you can at
least get past this hump, try just defining it on the 'ant' command line:

C:\> ant -Djdk122root=d:/java/tools -Djdk118root=d:/java/tools

substituting "d:/java/tools" for the actual path of where your two JDKs
live on your machine.

Diane 

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Mime
View raw message