You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Corcoran, Bob" <Bo...@ct.gov> on 2007/07/25 21:21:48 UTC

The Manifest task

Hello,

 

I have large number of library jars that I need to add to a project that
will be deployed on Websphere. I am using the manifest task inside the
ear task to accomplish this. I just list the jars separated by spaces as
the value of the Class-Path attribute. I list them all on one long line.
When I open up the resulting MANIFEST.MF file, it looks all mangled.
That is, it looks something like this: 

 

Manifest-Version: 1.0

Ant-Version: Apache Ant 1.7.0

Created-By: 2.3 (IBM Corporation)

Class-Path: ajax4jsf-1.1.1.jar commons-lang-2.2.jar             common

 s-logging-1.1.jar             commons-logging-adapters-1.1.jar 

 

 

Websphere is apparently not loading these jars (all of them are in the
root of my EAR), and I'm wondering if this is why. Any help would be
greatly appreciated.

 

Thanks,

Bob

 


RE: The Manifest task

Posted by "Corcoran, Bob" <Bo...@ct.gov>.
Ok, thanks.

-----Original Message-----
From: Dominique Devienne [mailto:ddevienne@gmail.com] 
Sent: Wednesday, July 25, 2007 3:50 PM
To: Ant Users List
Subject: Re: The Manifest task

Yep. That's part of the Jar specification, and there's a link in the
jar task doco. --DD

On 7/25/07, Corcoran, Bob <Bo...@ct.gov> wrote:
> Matt,
>
> So the does the fact that the lines are wrapped after a certain number
> of characters mean that the class loader should be able to resolve,
for
> example,
> common
> s-logging-1.1.jar
>
> into:
> commons-logging-1.1.jar
>
> Thanks,
> Bob
>
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> Sent: Wednesday, July 25, 2007 3:31 PM
> To: Ant Users List
> Subject: Re: The Manifest task
>
> Bob:  Please see the relevant information in <jar>'s
> documentation in the manual.
>
> Thanks,
> Matt
>
> --- "Corcoran, Bob" <Bo...@ct.gov> wrote:
>
> > Hello,
> >
> >
> >
> > I have large number of library jars that I need to
> > add to a project that
> > will be deployed on Websphere. I am using the
> > manifest task inside the
> > ear task to accomplish this. I just list the jars
> > separated by spaces as
> > the value of the Class-Path attribute. I list them
> > all on one long line.
> > When I open up the resulting MANIFEST.MF file, it
> > looks all mangled.
> > That is, it looks something like this:
> >
> >
> >
> > Manifest-Version: 1.0
> >
> > Ant-Version: Apache Ant 1.7.0
> >
> > Created-By: 2.3 (IBM Corporation)
> >
> > Class-Path: ajax4jsf-1.1.1.jar commons-lang-2.2.jar
> >            common
> >
> >  s-logging-1.1.jar
> > commons-logging-adapters-1.1.jar
> >
> >
> >
> >
> >
> > Websphere is apparently not loading these jars (all
> > of them are in the
> > root of my EAR), and I'm wondering if this is why.
> > Any help would be
> > greatly appreciated.
> >
> >
> >
> > Thanks,
> >
> > Bob
> >
> >
> >
> >
>
>
>
>
>
________________________________________________________________________
> ____________
> Be a better Globetrotter. Get better travel answers from someone who
> knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: The Manifest task

Posted by Dominique Devienne <dd...@gmail.com>.
Yep. That's part of the Jar specification, and there's a link in the
jar task doco. --DD

On 7/25/07, Corcoran, Bob <Bo...@ct.gov> wrote:
> Matt,
>
> So the does the fact that the lines are wrapped after a certain number
> of characters mean that the class loader should be able to resolve, for
> example,
> common
> s-logging-1.1.jar
>
> into:
> commons-logging-1.1.jar
>
> Thanks,
> Bob
>
> -----Original Message-----
> From: Matt Benson [mailto:gudnabrsam@yahoo.com]
> Sent: Wednesday, July 25, 2007 3:31 PM
> To: Ant Users List
> Subject: Re: The Manifest task
>
> Bob:  Please see the relevant information in <jar>'s
> documentation in the manual.
>
> Thanks,
> Matt
>
> --- "Corcoran, Bob" <Bo...@ct.gov> wrote:
>
> > Hello,
> >
> >
> >
> > I have large number of library jars that I need to
> > add to a project that
> > will be deployed on Websphere. I am using the
> > manifest task inside the
> > ear task to accomplish this. I just list the jars
> > separated by spaces as
> > the value of the Class-Path attribute. I list them
> > all on one long line.
> > When I open up the resulting MANIFEST.MF file, it
> > looks all mangled.
> > That is, it looks something like this:
> >
> >
> >
> > Manifest-Version: 1.0
> >
> > Ant-Version: Apache Ant 1.7.0
> >
> > Created-By: 2.3 (IBM Corporation)
> >
> > Class-Path: ajax4jsf-1.1.1.jar commons-lang-2.2.jar
> >            common
> >
> >  s-logging-1.1.jar
> > commons-logging-adapters-1.1.jar
> >
> >
> >
> >
> >
> > Websphere is apparently not loading these jars (all
> > of them are in the
> > root of my EAR), and I'm wondering if this is why.
> > Any help would be
> > greatly appreciated.
> >
> >
> >
> > Thanks,
> >
> > Bob
> >
> >
> >
> >
>
>
>
>
> ________________________________________________________________________
> ____________
> Be a better Globetrotter. Get better travel answers from someone who
> knows. Yahoo! Answers - Check it out.
> http://answers.yahoo.com/dir/?link=list&sid=396545469
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: The Manifest task

Posted by "Corcoran, Bob" <Bo...@ct.gov>.
Matt,

So the does the fact that the lines are wrapped after a certain number
of characters mean that the class loader should be able to resolve, for
example,
common
s-logging-1.1.jar

into:
commons-logging-1.1.jar

Thanks,
Bob

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com] 
Sent: Wednesday, July 25, 2007 3:31 PM
To: Ant Users List
Subject: Re: The Manifest task

Bob:  Please see the relevant information in <jar>'s
documentation in the manual.

Thanks,
Matt

--- "Corcoran, Bob" <Bo...@ct.gov> wrote:

> Hello,
> 
>  
> 
> I have large number of library jars that I need to
> add to a project that
> will be deployed on Websphere. I am using the
> manifest task inside the
> ear task to accomplish this. I just list the jars
> separated by spaces as
> the value of the Class-Path attribute. I list them
> all on one long line.
> When I open up the resulting MANIFEST.MF file, it
> looks all mangled.
> That is, it looks something like this: 
> 
>  
> 
> Manifest-Version: 1.0
> 
> Ant-Version: Apache Ant 1.7.0
> 
> Created-By: 2.3 (IBM Corporation)
> 
> Class-Path: ajax4jsf-1.1.1.jar commons-lang-2.2.jar 
>            common
> 
>  s-logging-1.1.jar            
> commons-logging-adapters-1.1.jar 
> 
>  
> 
>  
> 
> Websphere is apparently not loading these jars (all
> of them are in the
> root of my EAR), and I'm wondering if this is why.
> Any help would be
> greatly appreciated.
> 
>  
> 
> Thanks,
> 
> Bob
> 
>  
> 
> 



       
________________________________________________________________________
____________
Be a better Globetrotter. Get better travel answers from someone who
knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: The Manifest task

Posted by Matt Benson <gu...@yahoo.com>.
Bob:  Please see the relevant information in <jar>'s
documentation in the manual.

Thanks,
Matt

--- "Corcoran, Bob" <Bo...@ct.gov> wrote:

> Hello,
> 
>  
> 
> I have large number of library jars that I need to
> add to a project that
> will be deployed on Websphere. I am using the
> manifest task inside the
> ear task to accomplish this. I just list the jars
> separated by spaces as
> the value of the Class-Path attribute. I list them
> all on one long line.
> When I open up the resulting MANIFEST.MF file, it
> looks all mangled.
> That is, it looks something like this: 
> 
>  
> 
> Manifest-Version: 1.0
> 
> Ant-Version: Apache Ant 1.7.0
> 
> Created-By: 2.3 (IBM Corporation)
> 
> Class-Path: ajax4jsf-1.1.1.jar commons-lang-2.2.jar 
>            common
> 
>  s-logging-1.1.jar            
> commons-logging-adapters-1.1.jar 
> 
>  
> 
>  
> 
> Websphere is apparently not loading these jars (all
> of them are in the
> root of my EAR), and I'm wondering if this is why.
> Any help would be
> greatly appreciated.
> 
>  
> 
> Thanks,
> 
> Bob
> 
>  
> 
> 



       
____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org