You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Antonio Gallardo <ag...@agsoftware.dnsalias.com> on 2003/11/02 15:46:43 UTC

[PATCH] - Exclude tools and tutorial5 from ojb.jar

Hi Jakob:

Did you see this patch?

[PATCH ATTACHED] Explanation below....

In short: The idea is to separate the meat from the fat :-D

I already make test with the patch and works fine. After apply the patch
the main lib will have cca 645 kB instead of 848 kB => lose 203 kB in ONE
DAY! (We can sell this fat reduction in telemarket! lol. ;-)

Best Regards,

Antonio Gallardo

-------- Mensaje Original --------
Asunto: Re: Exclude tools and tutorial5 from ojb.jar
De: "Antonio Gallardo"
Fecha: Jue, 30 de Octubre de 2003, 23:30
Para: ojb list

Great!

Attached is the patch to the build.xml

Best Regards,

Antonio Gallardo

Thomas Mahler dijo:
> Hi Antonio
>
> Antonio Gallardo wrote:
>> Hi:
>>
>> I noted inside the generated jar for OJB there are some classes that
>> are not needed for production:
>>
>> o.a.o.tutorial5.*
>> o.a.o.tools.mapping.reversedb.gui.*
>> o.a.o.tools.swing*
>>
>> Is that OK if we create another jars for this stuff? We can get off
>> some fat of the db-ojb.jar at all.
>
> +1
>
> IMO we could safe a lot of space in the jar files by separating
> runtime stuff from tutorial and tool code!
>
> cheers,
> Thomas
>
>> Please comments.
>>
>> Best Regards,
>>
>> Antonio Gallardo.



Re: [PATCH] - Exclude tools and tutorial5 from ojb.jar

Posted by Antonio Gallardo <ag...@agsoftware.dnsalias.com>.
Jakob Braeuchi dijo:
> hi antonio,
>
> patch applied and commited.
>
> thanks
> jakob

Thanks to you.

Antonio Gallardo



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Re: [PATCH] - Exclude tools and tutorial5 from ojb.jar

Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi antonio,

patch applied and commited.

thanks
jakob

Antonio Gallardo wrote:

> Hi Jakob:
> 
> Did you see this patch?
> 
> [PATCH ATTACHED] Explanation below....
> 
> In short: The idea is to separate the meat from the fat :-D
> 
> I already make test with the patch and works fine. After apply the patch
> the main lib will have cca 645 kB instead of 848 kB => lose 203 kB in ONE
> DAY! (We can sell this fat reduction in telemarket! lol. ;-)
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> -------- Mensaje Original --------
> Asunto: Re: Exclude tools and tutorial5 from ojb.jar
> De: "Antonio Gallardo"
> Fecha: Jue, 30 de Octubre de 2003, 23:30
> Para: ojb list
> 
> Great!
> 
> Attached is the patch to the build.xml
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> Thomas Mahler dijo:
> 
>>Hi Antonio
>>
>>Antonio Gallardo wrote:
>>
>>>Hi:
>>>
>>>I noted inside the generated jar for OJB there are some classes that
>>>are not needed for production:
>>>
>>>o.a.o.tutorial5.*
>>>o.a.o.tools.mapping.reversedb.gui.*
>>>o.a.o.tools.swing*
>>>
>>>Is that OK if we create another jars for this stuff? We can get off
>>>some fat of the db-ojb.jar at all.
>>
>>+1
>>
>>IMO we could safe a lot of space in the jar files by separating
>>runtime stuff from tutorial and tool code!
>>
>>cheers,
>>Thomas
>>
>>
>>>Please comments.
>>>
>>>Best Regards,
>>>
>>>Antonio Gallardo.
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> Index: build.xml
> ===================================================================
> RCS file: /home/cvspublic/db-ojb/build.xml,v
> retrieving revision 1.106
> diff -u -r1.106 build.xml
> --- build.xml	10 Oct 2003 10:55:27 -0000	1.106
> +++ build.xml	31 Oct 2003 05:29:24 -0000
> @@ -379,6 +379,8 @@
>  		<delete file="${dist}/${archive}.jar"/>
>  		<delete file="${dist}/${archive}-junit.jar"/>
>  		<delete file="${dist}/${archive}-src.jar"/>
> +		<delete file="${dist}/${archive}-tools.jar"/>
> +		<delete file="${dist}/${archive}-tutorial.jar"/>
>  		<delete file="${build.dest}/MANIFEST.MF"/>
>  		<copy file="${source}/etc/MANIFEST.MF" tofile="${build.dest}/MANIFEST.MF"/>
>  		<replace file="${build.dest}/MANIFEST.MF" token="$$VERSION$$" value="${version}"/>
> @@ -387,15 +389,22 @@
>  		</copy>
>  		<jar jarfile="${dist}/${archive}.jar" basedir="${build.dest}"
>  			manifest="${build.dest}/MANIFEST.MF"
> -			includes="LICENSE,README,javax/**,org/**"/>
> -
> +			includes="LICENSE,README,javax/**,org/**"
> +			excludes="org/apache/ojb/tutorial5/**,org/apache/ojb/tools/**"/>
> +		<jar jarfile="${dist}/${archive}-tools.jar" basedir="${build.dest}"
> +			manifest="${build.dest}/MANIFEST.MF"
> +			includes="LICENSE,README,org/apache/ojb/tools/**"/>
> +		<jar jarfile="${dist}/${archive}-tutorial.jar" basedir="${build.dest}"
> +			manifest="${build.dest}/MANIFEST.MF"
> +			includes="LICENSE,README,org/apache/ojb/tutorial5/**"/>
>  		<jar jarfile="${dist}/${archive}-junit.jar" basedir="${build.desttest}"
>  			manifest="${build.dest}/MANIFEST.MF"
>  			includes="LICENSE,README,org/**"/>
> -
>  		<jar jarfile="${dist}/${archive}-src.jar" basedir="${build.src}"
>  			manifest="${build.dest}/MANIFEST.MF"
>  			includes="LICENSE,README,org/**"/>
> +
> +			
>  	</target>
>      <!-- ================================================================== -->
>      <!-- Build sample war-file for deployment in tomcat                     -->
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org