Re: [Informa-developer] Including sources in the jar file
Status: Beta
Brought to you by:
niko_schmuck
From: Nilesh B. <nil...@gm...> - 2007-07-01 14:23:13
|
Hi Italo, > Eclipse offers a good way to attach source code to jars ( > http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/tasks-115.htm). > That is the common way to have the source information while developing and > debugging. Yes, sources can be attached to eclipse. But this requires the developer to download the source files for each of the library he is using and add sources. A common application would use 15-20 libraries, and each developer is required to do so. So including sources is just a matter of convenience. > Source information increases the jar file size. Consequently, the time of > deployment is increased, what is not good. See http://java.sun.com/docs/books/performance/1st_edition/html/JPDeployment.fm.htmlAnother One problem is that the file size increases by around 200K. This I agree is bad as it increases the download time. This means that an java applet written using Informa will take extra second to load (download time). I think the increase in size does not affect the performance of desktop applications (please correct me if I am wrong). > solution is to have 2 distributions: with and without code. This may be a good option. thanks Nilesh > > Regards, > > Italo > > > > On 6/30/07, Nilesh Bansal <nil...@gm...> wrote: > > > > Hi all, > > > > Informa jar file does not include java sources. This means that the > > IDE (eclipse) can not display javadoc comments for Informa library's > > methods. It is very convenient to have source information the the jar > > file, and therefore I have done a small change to the build file. > > > > Please let me know if you believe that including sources in the jar is > > not a good idea, in which case we can revert the change. > > > > Index: build.xml > > > =================================================================== > > RCS file: /cvsroot/informa/informa/build.xml,v > > retrieving revision 1.69 > > diff -u -p -r1.69 build.xml > > --- build.xml 6 Jan 2007 22:54:23 -0000 1.69 > > +++ build.xml 30 Jun 2007 20:50:32 -0000 > > @@ -178,6 +178,7 @@ > > <fileset dir="${build.classes}" > > excludes="log4j.properties, hibernate.properties"> > > </fileset> > > + <fileset dir="${src.dir}" /> > > </jar> > > </target> > > > > > > > > thanks > > Nilesh > > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > > Informa-developer mailing list > > Inf...@li... > > > https://lists.sourceforge.net/lists/listinfo/informa-developer > > > > -- Nilesh Bansal. http://queens.db.toronto.edu/~nilesh/ |