Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 20596 invoked from network); 1 Jun 2007 12:39:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 12:39:01 -0000 Received: (qmail 4407 invoked by uid 500); 1 Jun 2007 12:38:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 4260 invoked by uid 500); 1 Jun 2007 12:38:51 -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 4244 invoked by uid 99); 1 Jun 2007 12:38:50 -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 05:38:50 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,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.240 as permitted sender) Received: from [202.54.124.240] (HELO rediffmail.com) (202.54.124.240) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 01 Jun 2007 05:38:45 -0700 Received: (qmail 11495 invoked by uid 510); 1 Jun 2007 12:37:38 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=redf; d=rediffmail.com; b=I1ta1fCqacUonNQV8Y5MEK+6g9QIiYuiKHjxlf91oDRLaU1LPluPghABeMAKdG7QRDOe5hYYTPePJbb/P8MMaeC8CAc+ORUIaUVZHHdnQ8CKQIYTvDrfnJLnoCXJbzRMOHds8OPl1F/I+dsx4DHUXPreurrhK9QCO/0uFw0kqH8= ; Date: 1 Jun 2007 12:37:38 -0000 MIME-Version: 1.0 To: Received: from unknown 164.164.79.12 by rediffmail.com via HTTP; 01 Jun 2007 12:37:38 -0000 Message-ID: <1180695314.S.5539.8317.webmail63.rediffmail.com.bulk.1180701458.26352@webmail.rediffmail.com> Subject: Re :Re: classpath issue in task From: "query" Content-Type: multipart/alternative; boundary="=_9165970cdb4aceee2c93c91c24f7cbd0" X-Virus-Checked: Checked by ClamAV on apache.org --=_9165970cdb4aceee2c93c91c24f7cbd0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Below is the sample log file and build fileLog 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>On Fri, 1 Jun 2007 06:55:22 -0400 \"Ant Users List\" wroteYou didn\'t include a code snippet, so it is hard to see what you did.There is a nested element in the task where youcan specify a classpath either through a \"fileset\" or via a reference.You can also use the \"classpath=\" parameter to specify the classpath.However, if you do not specify either, it takes the value of classpathvia your environment.How do you specify classpath? Can you print out the classpath rightbefore you call the task to verify that it is set the way youwant?If you\'re setting claspath via reference, you can convert thereference to a parameter and then print the parameter.On 1 Jun 2007 08:36:22 -0000, query wrote:> I have created classpath in a build file and using it in the same build file for compiling java so urce 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 in eg.class.pathAs a result, it 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?> 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 arg uments are    [javac] not part of the command.    [javac] Files to be compiled:> Build file:>   -- --David Weintraubqazwart@gmail.com---------------------------------------------------------------------To unsubscribe, e-mail: user-unsubscribe@ant.apache.orgFor additional commands, e-mail: user-help@ant.apache.org --=_9165970cdb4aceee2c93c91c24f7cbd0--