You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Jay Burgess <jb...@delanotech.com> on 2001/11/02 15:46:09 UTC
Simple question?
(New Ant user. Apologies if this is doc'ed somewhere. I can't find it.)
The "jar" attribute of the "Java" task indicates "must have a Main-Class
entry in the manifest". The only way I've found to define the Main-Class is
to first create my own manifest, then pass it to the "Jar" task.
It seems easier in my simple case that the "Jar" task could have something
like a "mainclass" attribute, so that Ant could include it in the simple
manifest that it creates. This would save me the step of creating the
manifest first, simply to define the Main-Class. Did I understand things
correctly?
If this is a feature request, then obviously it's not a high priority one.
Thanks.
Jay
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple question?
Posted by T Master <tm...@iknowledgeinc.com>.
I do.
Save creating the damn manifest file which is a pain.
----- Original Message -----
From: "Don Taylor" <do...@yahoo.com>
To: "Ant Users List" <an...@jakarta.apache.org>
Sent: Friday, November 02, 2001 10:21 AM
Subject: Re: Simple question?
> What sounds even better is to have a manifest element that you could
> specify for the jar task. Then in it you can put manifest entry
> elements as name/value pairs.
>
> Does anyone have any interest in anything like this?
>
> -- Don
>
> --- T Master <tm...@iknowledgeinc.com> wrote:
> > Sounds plausible.
> > However, a manifest may contain anything other than the known
> > attributes.
> > I like your idea though.
> >
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple question?
Posted by Don Taylor <do...@yahoo.com>.
What sounds even better is to have a manifest element that you could
specify for the jar task. Then in it you can put manifest entry
elements as name/value pairs.
Does anyone have any interest in anything like this?
-- Don
--- T Master <tm...@iknowledgeinc.com> wrote:
> Sounds plausible.
> However, a manifest may contain anything other than the known
> attributes.
> I like your idea though.
>
>
> ----- Original Message -----
> From: "Jay Burgess" <jb...@delanotech.com>
> To: <an...@jakarta.apache.org>
> Sent: Friday, November 02, 2001 7:46 AM
> Subject: Simple question?
>
>
> > (New Ant user. Apologies if this is doc'ed somewhere. I can't
> find it.)
> >
> > The "jar" attribute of the "Java" task indicates "must have a
> Main-Class
> > entry in the manifest". The only way I've found to define the
> Main-Class
> is
> > to first create my own manifest, then pass it to the "Jar" task.
> >
> > It seems easier in my simple case that the "Jar" task could have
> something
> > like a "mainclass" attribute, so that Ant could include it in the
> simple
> > manifest that it creates. This would save me the step of creating
> the
> > manifest first, simply to define the Main-Class. Did I understand
> things
> > correctly?
> >
> > If this is a feature request, then obviously it's not a high
> priority one.
> >
> > Thanks.
> >
> > Jay
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Simple question?
Posted by T Master <tm...@iknowledgeinc.com>.
Sounds plausible.
However, a manifest may contain anything other than the known attributes.
I like your idea though.
----- Original Message -----
From: "Jay Burgess" <jb...@delanotech.com>
To: <an...@jakarta.apache.org>
Sent: Friday, November 02, 2001 7:46 AM
Subject: Simple question?
> (New Ant user. Apologies if this is doc'ed somewhere. I can't find it.)
>
> The "jar" attribute of the "Java" task indicates "must have a Main-Class
> entry in the manifest". The only way I've found to define the Main-Class
is
> to first create my own manifest, then pass it to the "Jar" task.
>
> It seems easier in my simple case that the "Jar" task could have something
> like a "mainclass" attribute, so that Ant could include it in the simple
> manifest that it creates. This would save me the step of creating the
> manifest first, simply to define the Main-Class. Did I understand things
> correctly?
>
> If this is a feature request, then obviously it's not a high priority one.
>
> Thanks.
>
> Jay
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>