Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 39295 invoked from network); 9 Jan 2001 18:48:41 -0000 Received: from relay1.nw.smtp.psi.net (38.9.154.2) by h31.sny.collab.net with SMTP; 9 Jan 2001 18:48:41 -0000 Received: from nntllc.com ([38.138.100.8] helo=nntnys4.nntllc.com) by relay1.nw.smtp.psi.net with esmtp (Exim 3.13 #3) id 14G3ov-0002Y3-00 for ant-user@jakarta.apache.org; Tue, 09 Jan 2001 13:48:34 -0500 Received: by nntllc.com with Internet Mail Service (5.5.2650.21) id ; Tue, 9 Jan 2001 13:45:18 -0500 Message-ID: From: "Boniakowski,Jeb" To: "'ant-user@jakarta.apache.org'" Subject: RE: ${java.home} - why is it pointing at the JRE? Date: Tue, 9 Jan 2001 13:45:11 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C07A6C.4BCEE200" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C07A6C.4BCEE200 Content-Type: text/plain; charset="ISO-8859-1" perhaps you are overriding what you have set in some script? The build script maybe? jeb. -----Original Message----- From: Filip Hanik [mailto:filip@filip.net] Sent: Tuesday, January 09, 2001 12:55 PM To: ant-user@jakarta.apache.org Subject: ${java.home} - why is it pointing at the JRE? Hi, when I run ant (on Windows) I set the JAVA_HOME variable to be "d:\java\jdk1.3" but when I use it in ant, it points to "d:\java\jdk1.3\jre" any idea if this is correct behavior? Filip ----- Original Message ----- From: Boniakowski,Jeb To: 'ant-user@jakarta.apache.org' Sent: Tuesday, January 09, 2001 9:29 AM Subject: ant and I have a failure to communicate (on compile targets/javac tasks) Hi. Sorry for this admittedly annoying type of question, but I can't figure out the answer, after reading everything else I could find. I'm using basically the included build.xml. Here's the compile target: Haven't changed it all. All of my directories are set up as suggested by the docs. The comment in build.xml says that the "javac" task should recurse down the dir tree compiling classes that don't exist or are newer than their .class files. Well, mine doesn't even go down one level. If I put a file in src that looks like this: Foo.java: public class Foo{ break compiler } Ant marches on ahead without complaint. There is no Foo.class in my {deploy.home}/WEB-INF/classes directory. It copies non-.java files from my src/ dir fine. If I do "build clean", my webapps/nnt (name of my app) is deleted. If I do build all, it is deleted and then all of the classes are copied back to the same place and work fine and all, but only if I go through the src/ try and manually compile them first. Does anyone have any idea what I am missing here? jeb. ------_=_NextPart_001_01C07A6C.4BCEE200 Content-Type: text/html; charset="ISO-8859-1" ant and I have a failure to communicate (on compile targets/javac tasks)
perhaps you are overriding what you have set in some script?  The build script maybe?
 
jeb.
-----Original Message-----
From: Filip Hanik [mailto:filip@filip.net]
Sent: Tuesday, January 09, 2001 12:55 PM
To: ant-user@jakarta.apache.org
Subject: ${java.home} - why is it pointing at the JRE?

Hi,
when I run ant (on Windows) I set the JAVA_HOME variable to be "d:\java\jdk1.3"
but when I use it in ant, it points to "d:\java\jdk1.3\jre"
 
any idea if this is correct behavior?
 
Filip
 
----- Original Message -----
Sent: Tuesday, January 09, 2001 9:29 AM
Subject: ant and I have a failure to communicate (on compile targets/javac tasks)

Hi.  Sorry for this admittedly annoying type of question, but I can't figure out the answer, after reading everything else I could find.

I'm using basically the included build.xml.  Here's the compile target:

  <target name="compile" depends="prepare">
    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
           classpath="${deploy.home}/WEB-INF/classes"
           debug="on" optimize="off" deprecation="off"/>
  </target>

Haven't changed it all.  All of my directories are set up as suggested by the docs.

The comment in build.xml says that the "javac" task should recurse down the dir tree compiling classes that don't exist or are newer than their .class files.  Well, mine doesn't even go down one level.  If I put a file in src that looks like this:

Foo.java:
        public class Foo{ break compiler }

Ant marches on ahead without complaint.  There is no Foo.class in my {deploy.home}/WEB-INF/classes directory.  It copies non-.java files from my src/ dir fine.  If I do "build clean", my webapps/nnt (name of my app) is deleted.  If I do build all, it is deleted and then all of the classes are copied back to the same place and work fine and all, but only if I go through the src/ try and manually compile them first.

Does anyone have any idea what I am missing here?

jeb.

------_=_NextPart_001_01C07A6C.4BCEE200--