Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 14455 invoked from network); 23 Jan 2002 16:29:10 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 Jan 2002 16:29:10 -0000 Received: (qmail 26989 invoked by uid 97); 23 Jan 2002 16:29:01 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 26962 invoked by uid 97); 23 Jan 2002 16:29:01 -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 26951 invoked from network); 23 Jan 2002 16:29:00 -0000 Message-ID: From: David Hurcomb To: 'Ant Users List' Subject: RE: Problem building Date: Wed, 23 Jan 2002 16:29:22 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N using the include directive in the javac and jar task worked a treat thanks > -----Original Message----- > From: Charles Horan [mailto:cthoran@sympatico.ca] > Sent: 23 January 2002 16:27 > To: Ant Users List > Subject: RE: Problem building > > > The basedir must point to the root of the files that you want > to compile. > > What I would suggest in this case is to compile all of the > files to a build > directory. Then use the include and exclude directives with > the jar task to > create your jar files. > > -----Original Message----- > From: David Hurcomb [mailto:david.hurcomb@viewgate.com] > Sent: January 23, 2002 11:08 AM > To: 'ant-user@jakarta.apache.org' > Subject: Problem building > > > I am a new ant user. I'm sure the answer to this question is in the > archives but they are currently unavailable so here goes: > > If I have a package structure for 2 different modules > > com.sub1.sub2.module1 > com.sub1.sub2.module2 > > files in module 1 have the line " import com.sub1.sub2.module2.*; " > files in module 2 have the line " import com.sub1.sub2.module1.*; " > > I can build from the command line in directory > com/sub1/sub2/module1 using > > java -classpath ../../../.. *.java > > However I want each module to build on its own using ant and > to create its > own jar file. I have specified the dase_dir in my project to be > "../../../.." > and my compile line is: > > > > However the javac command fails on the first "import > com.sub1.sub2.module2.*"; with the error package does not exist > > Why is this?. > > Thanks in advance > > David > > > > -- > To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: