Re: [Fwd: Re: [architecture] Re: JPackages and ObjectWeb]
- To: Nicolas Mailhot <Nicolas.Mailhot@laPoste.net>
- Cc: Eric Bruneton <Eric.Bruneton@rd.francetelecom.com>, Discussion about JPackage project <jpackage-discuss@zarb.org>, architecture@objectweb.org, gentoo-java@gentoo.org, debian-java@lists.debian.org
- Subject: Re: [Fwd: Re: [architecture] Re: JPackages and ObjectWeb]
- From: Jan Schulz <default@katzien.de>
- Date: Tue, 3 Feb 2004 01:53:27 +0100
- Message-id: <[🔎] 20040203005327.GB28698@katzien.de>
- Mail-followup-to: Nicolas Mailhot <Nicolas.Mailhot@laPoste.net>, Eric Bruneton <Eric.Bruneton@rd.francetelecom.com>, Discussion about JPackage project <jpackage-discuss@zarb.org>, architecture@objectweb.org, gentoo-java@gentoo.org, debian-java@lists.debian.org
- In-reply-to: <[🔎] 1075766551.2245.13.camel@m222.net81-64-248.noos.fr>
- References: <4017009B.5050507@anti-microsoft.org> <[🔎] 200402021026.18018.Eric.Bruneton@rd.francetelecom.com> <[🔎] 1075718767.22070.2.camel@ulysse.olympe.o2t> <200402021720.07283.Eric.Bruneton@rd.francetelecom.com> <[🔎] 401EB00C.5090700@anti-microsoft.org> <[🔎] 20040202222857.GA9228@katzien.de> <[🔎] 1075766551.2245.13.camel@m222.net81-64-248.noos.fr>
Hallo Nicolas,
* Nicolas Mailhot wrote:
>jsse.libs=$(build-classpath jsse)
>javamail.libs=$(build-classpath javamail)
>test.libs=$(build-classpath junit xerces-j2 httpunit)
^^^^^^^^^^^^^^^
I thought you don't have such a script. Thats exactly what I propose
to use, but on runtime. And merging it with your static 'put all the
symlinks in place' code and redoing it so that it outputs one line,
which incldues all the information and can be used to start the JVM.
So instead of doing symlinks and then start the JVM, you will do
java-config --execute-line --jvms="JVMpackage1:JVMPackage2" \
--classpath="$ANT_PUT_FIRST;package1;package2" \
--jvm-options="server:256MB" \
--add-lib-path="/some/other/path/you/asked/for/"
which will output:
/usr/bin/jvm \
-Djava.library.path=/usr/lib/jni;/some/other/path/you/asked/for/ \
-bootclasspath "some added jars, specified by the JVM package..." \
-cp "the whole CP, as requested by the app and tailored to the JVM" \
<specific JVM options, to enable server, heap size and so on>
Add the main class and the options, and you're done :)
$JAVA Main.class.Name Options
This script could even do dependency checking upwards (lib has more
restriction than app, so less JVM are taken in account)
>Some points I forgot but I agree with - care to add them to the
>writeup ?
Will do after the discussion is over. Don't want to discuss in the
wiki if we have such a nice ML :)
Jan
--
Jan Schulz jasc@gmx.net
"Wer nicht fragt, bleibt dumm."
Reply to: