ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Attempting to split the same package into two jars
Date Thu, 03 Feb 2005 06:52:37 GMT
> Currently I am building a project which has the following elements:
> 
> com.foo.sbo.*
> com.foo.tbo.*
> com.foo.*
> 
> I want to create two jar files one which has com.foo.sbo and 
> com.foo.tbo in
> the same file and another which has the rest of com.foo* 
> excluding the sbo
> and tbo.
> 
> Below is what I have attempted:
> 
>   <target name="deploy">
>       <echo message="Packaging BOF..."/>
>                   <jar jarfile="${dist_dir}/${dist_bof_file}" >
>                   <fileset dir="${scr_tbo_dir}"/>
>                         <fileset dir="${scr_tbo_dir}"/>


Two times the same fileset?



>             </jar>
>     <echo message="Packaging server side Java code..."/>
>     <jar jarfile="${dist_sun_dir}/${dist_sun_file}"
>             basedir="${comp_sun_dir}"
>             excludes="${comp_sun_dir}/${scr_tbo_dir}/**, 
> ${comp_sun_dir}/
> ${scr_sbo_dir}/**" />


DonĀ“t specify the ${comp_sun_dir} phrase in the exclude clause - their
values
are relative to the basedir attribute (like in <fileset>).



>     <echo message="Done."/>
>   </target>
> 
> There has the following two problems:
> 
> The first jar file packages the correct classes but doesn't 
> include the
> com.foo at the start therefore the jar doesn't work correctly.
> 
> The second jar isn't excluding the com.foo..sbo.* and com.foo.tbo.*
> classses.



Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message