> 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