ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Hurcomb <david.hurc...@viewgate.com>
Subject RE: Problem building
Date Wed, 23 Jan 2002 16:29:22 GMT
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:
> 
>         <javac srcdir="com/sub1/sub2/module1" destdir="classes" />
> 
> 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:   
<mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message