Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 81198 invoked from network); 1 Jun 2007 10:02:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 10:02:18 -0000 Received: (qmail 92449 invoked by uid 500); 1 Jun 2007 10:02:16 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92405 invoked by uid 500); 1 Jun 2007 10:02:16 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 92394 invoked by uid 99); 1 Jun 2007 10:02:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 03:02:16 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of search2006@rediffmail.com designates 202.54.124.178 as permitted sender) Received: from [202.54.124.178] (HELO rediffmail.com) (202.54.124.178) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 01 Jun 2007 03:02:11 -0700 Received: (qmail 690 invoked by uid 510); 1 Jun 2007 10:01:09 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=redf; d=rediffmail.com; b=g474NXoseIRMxyiqbgH6IB/AHtALwdkcvro0VwLM7nJFdJ/vF0KHWenmdOINvOhA1DOudxaMr/Spo2GQqRBCO81lc6YPQA03aNT5cpuZ8ebZkl+HVjaHn4dv29PJIIZAjhLJ/wzHAVqarpZnLu/vcItg8wFseXL9qbLf3DJ0TkA= ; Date: 1 Jun 2007 10:01:09 -0000 Message-ID: <20070601100109.688.qmail@webmail17.rediffmail.com> MIME-Version: 1.0 To: "ant" Received: from unknown 164.164.79.12 by rediffmail.com via HTTP; 01 Jun 2007 10:01:09 -0000 Subject: Classpath issue in task From: "query" Content-Type: multipart/alternative; boundary="=_047e580bb4ed329bbc6289cb493d1ee1" X-Virus-Checked: Checked by ClamAV on apache.org --=_047e580bb4ed329bbc6289cb493d1ee1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit I have created classpath in a build file and using it in the same build file for compiling java source files. When I checked the log file I found that classfile destination folder(absolute path of class.dest) was also included in the classpath though I had not specified it in eg.class.pathAs a result, it is creating more class files.I suspect that this is due to that extra path in classpath. Is there any way to exclude that classpath while compiling java source files? The extra class files that are generated are required by eg2.xml. But they are already created while building eg1.jar and eg1.jar is spcified in classpath. But still while compiling eg2 source files these class files are getting generated again. Why is it so? Log file: [javac] Using modern compiler    [javac] Compilation arguments:    [javac] \'-d\'    [javac] \'E:\\samplebuild\\eg\\eg2\\classfiles\'    [javac] \'-classpath\'    [javac] \'E:\\samplebuild\\eg\\eg2\\classfiles;C:\\PROGRA~1\\jdk1.5;E:\\samplebuild\\eg\\eg1\\eg.jar\'    [javac] \'-sourcepath\'    [javac] \'E:\\samplebuild\\eg\\eg2\\sourcefiles\'    [javac] \'-g:none\'    [javac]     [javac] The \' characters around the executable and arguments are    [javac] not part of the command.    [javac] Files to be compiled: . . . Build file: <javac srcdir=\"${src.dest}\" destdir=\"${class.dest}\" includeAntRuntime=\"no\"> <include name=\"*.java\"/> <classpath refid=\"eg.class.path\"/></javac> --=_047e580bb4ed329bbc6289cb493d1ee1--