Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 94363 invoked from network); 16 Nov 2001 13:17:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 16 Nov 2001 13:17:58 -0000 Received: (qmail 21281 invoked by uid 97); 16 Nov 2001 13:17:26 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 21245 invoked by uid 97); 16 Nov 2001 13:17:25 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 15498 invoked from network); 16 Nov 2001 12:15:05 -0000 Subject: building package by package while using depend. From: Michael Teixeira To: ant-user@jakarta.apache.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Evolution/0.99.0 (Preview Release) Date: 16 Nov 2001 07:14:42 -0500 Message-Id: <1005912882.7675.3.camel@michaelt> Mime-Version: 1.0 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I'm having difficulty doing these two things, building package by package, and using depend, at the same time. I'm able to do either separately without any difficulty. By building package by package, I mean that I want to build package com.odi.A first, then com.odi.B, then com.odi.C. Package B depends on package A, but package A doesn't depend on package B. So that when package A builds, the code for package B shouldn't be visible to javac. If it is, then javac will happily build a class from package B if I refer to it in a class from package A. I don't want that, if package A refers to a class from package B I want an error to be generated. I want the build process to enforce the package modularity. I'm accomplishing that by setting basedir to com.odi.A when I build A, this hides the code in package B. On the other hand, I can get the depend task to work only if I have basedir set to the top of the package hierarchy, or the directory just above com. Setting basedir to this value makes all the code visible. So depend works in the case, with basedir set to /home/michaelt But not in this case, with basedir set to /home/michaelt/com/odi/util. I'm using ant 1.4.1. I'm relatively new to ant, so maybe I am missing something basic, or am going about this the wrong way. Thanks for any help, Michael Teixeira -- To unsubscribe, e-mail: For additional commands, e-mail: