9:31 AM
To: Ant Users List
Subject: Re: Using Main-Class and Class-Path in a manifest file
Many thanks to those who have offered suggestions. We'll experiment
with the various options and settle on something.
Todd
Diane Holt wrote:
> --- Todd Wilson <[EMAIL PROTECTED]>
Many thanks to those who have offered suggestions. We'll experiment
with the various options and settle on something.
Todd
Diane Holt wrote:
> --- Todd Wilson <[EMAIL PROTECTED]> wrote:
>
>>It's not an absolute necessity for us to include everything in a single
>>jar file, but it is a conv
--- Todd Wilson <[EMAIL PROTECTED]> wrote:
> It's not an absolute necessity for us to include everything in a single
> jar file, but it is a convenience.
Would there be a problem with sticking the individual log4j files into
your jar (as opposed to putting them in as a jar themselves)? If you d
On Tuesday, March 12, 2002, at 04:07 PM, Todd Wilson wrote:
> It's not an absolute necessity for us to include everything in a single
> jar file, but it is a convenience. In the jar spec it seems to hint at
> the fact that you can do this, though I'm inferring that.
The best way to do what
On Tuesday, March 12, 2002, at 04:03 PM, Todd Wilson wrote:
> I think the answer to your question is "yes." Check out the JAR spec
> for more on this: http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html.
Hmmm. My reading was that jars inside jars were not explicitly
supported, and that wh
>
> As you suspect, the CLASS-Path in a jar's manifest is used to
> find other
> jars relative to your jar, not jars within your jar
>
> Conor
>
This appears to be true:
$ cat > A.java
public class A {
public static void main(String[] args) {
B b = new B();
System.out.pri
It's not an absolute necessity for us to include everything in a single
jar file, but it is a convenience. In the jar spec it seems to hint at
the fact that you can do this, though I'm inferring that. It doesn't
seem to be very explicit about it.
Anyway, if we're trying to make the java runt
I think the answer to your question is "yes." Check out the JAR spec
for more on this: http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html.
Todd
Diane Holt wrote:
> --- Diane Holt <[EMAIL PROTECTED]> wrote:
>
>>So I'm thinking it's actually the log4j.jar file inside
>>HelloWorld.jar that's
ist
> Subject: Re: Using Main-Class and Class-Path in a manifest file
>
>
> Todd,
>
> I don't think you should include you log4j.jar iin your
> HelloWorld.jar, I can't find any info on whether a jar will be seached
> for other jars when searching for a class. I have t
Todd,
I don't think you should include you log4j.jar iin your
HelloWorld.jar, I can't find any info on whether a jar will be seached
for other jars when searching for a class. I have tried a similar test
to yours using the Main-Class and Class-Path and didn't have a problem
but I didn't package
--- Diane Holt <[EMAIL PROTECTED]> wrote:
> So I'm thinking it's actually the log4j.jar file inside
> HelloWorld.jar that's getting munged in some way that's the actual
> problem.
Actually, it can't be that it's getting munged in some way, because then
it wouldn't work once I extracted it, either
Richard,
what problems does the scrambling of order of entries cause you?
Conor
> -Original Message-
> From: Hensley, Richard [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, 13 March 2002 9:28 AM
> To: 'Ant Users List'
> Subject: RE: Using Main-Class and Clas
--- "Hensley, Richard" <[EMAIL PROTECTED]> wrote:
> +1
>
> A vector solution would fix the problem I've been having. I am willing
> to code or test this change given direction.
I'm not saying you shouldn't necessarily make the change, but before you
go too far down that road...
To the origina
chard
-Original Message-
From: Paul Cody [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Tuesday, March 12, 2002 2:48 PM
To: 'Ant Users List'
Subject: RE: Using Main-Class and Class-Path in a manifest file
>
> I can't confirm that Class
>
> I can't confirm that Class-Path is needed first, but I can
> confirm that
> ant 1.4.1 scrambles the order of entries in the Manifest. This has
> caused me problems to such a degree, that I just went back to
> using ant
> 1.3. I posted a message about it a few days ago, I didn't get a
> resp
nd haven't had time to get back to it.
The bug seems to be that ant rearranges.
Richard
-Original Message-
From: Paul Cody [ mailto:[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> ]
Sent: Tuesday, March 12, 2002 2:12 PM
To: 'Ant Users List'
Subject: RE: Using
Guess I was not of much help then!!!
Sorry!
Ylan.
> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Todd
> Wilson
> Enviado el: Martes, 12 de Marzo de 2002 04:05 p.m.
> Para: Ant Users List
> Asunto: Re: Using Main-Class and Class-
Hmm. Sounds interesting. I had a look at
org.apache.tools.ant.taskdefs.Manifest to see what I could see.
-- A Manifest object contains a set of Section object keyed by name
-- A Section contains a set of Attribute objects, keyed by
name.toLowerCase().
-- Both mappings use java.util.Hashtabl
Thanks for your response, Ylan. That is, indeed, a space. The JAR spec
dictates that individual paths need to be separated by one or more
spaces (see
http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html#JAR%20Manifest for
more info), so in our case we're designating the current directory as
I am not to familiar with your problem, but this just jumped at me:
>
>
>
>
>
^
^- Is this a space?
>
>
>
>
And Another thing, in your Hel
20 matches
Mail list logo