Re: unwar and unjar an application

2009-01-29 Thread David kerber

Mihamina Rakotomandimby (R12y) wrote:

Kirk True wrote:

A developer gave me just a .war file to deploy on a tomcat.
I read [w|j]ar files are just zipped.
The .war contains some .jar...
I would like to "explode" all the .war (and the contained jars) and 
have the full code source. I could do it manually. 
Are you sure that the WAR and its contained JARs actually have source 
code? They don't by default (and I've never seen one that does)...


To deplay the application, they usually put the WAR into the webapp 
directory and they it runs: I concluded the source code is in there.


In case the war dont contain the source code:
- Where is the application code?
- Why do they need to upload that big file (1.1Mo big in my case)?

Java classes in a .jar or .war file are normally compiled .class files 
(java byte code), not .java source.  A .war file may also contain .jsp 
files, which typically do have the page source in them, which is then 
compiled by the servlet engine (tomcat).  .Jars and particularly .war's 
get big because they often contain all the dependencies as well, and 
because a complex program takes a lot of code whether it's in source or 
compiled form.




But then there are two questions:
- How to jar and war the exploded code back (to get it all archived 
it it was)?
- if I unarchive some .jar, they dont unarchive in a subdir but 
directly in the current dir. How to manage that (when unarchiving 
_and_ re-archiving)?

Well, the developper used some environment, I want to
- put the code under SVN
- edit it with Emacs/JDE
These aren't really Tomcat-specific questions at all :( I'd advise 
taking each question and finding its answer via your favorite search 
engine.


The last section of my post was to explain the goal, so that people 
could understand my request. Obviously I did not expect some 
indication about that.






-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unwar and unjar an application

2009-01-29 Thread Ken Bowen

Often the following will unpack a jar or war (both):

jar -xf 


On Jan 29, 2009, at 12:45 AM, Mihamina Rakotomandimby (R12y) wrote:


Kirk True wrote:

A developer gave me just a .war file to deploy on a tomcat.
I read [w|j]ar files are just zipped.
The .war contains some .jar...
I would like to "explode" all the .war (and the contained jars)  
and have the full code source. I could do it manually.
Are you sure that the WAR and its contained JARs actually have  
source code? They don't by default (and I've never seen one that  
does)...


To deplay the application, they usually put the WAR into the webapp  
directory and they it runs: I concluded the source code is in there.


In case the war dont contain the source code:
- Where is the application code?
- Why do they need to upload that big file (1.1Mo big in my case)?


But then there are two questions:
- How to jar and war the exploded code back (to get it all  
archived it it was)?
- if I unarchive some .jar, they dont unarchive in a subdir but  
directly in the current dir. How to manage that (when unarchiving  
_and_ re-archiving)?

Well, the developper used some environment, I want to
- put the code under SVN
- edit it with Emacs/JDE
These aren't really Tomcat-specific questions at all :( I'd advise  
taking each question and finding its answer via your favorite  
search engine.


The last section of my post was to explain the goal, so that people  
could understand my request. Obviously I did not expect some  
indication about that.


--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unwar and unjar an application

2009-01-28 Thread Mihamina Rakotomandimby (R12y)

Kirk True wrote:

A developer gave me just a .war file to deploy on a tomcat.
I read [w|j]ar files are just zipped.
The .war contains some .jar...
I would like to "explode" all the .war (and the contained jars) and 
have the full code source. I could do it manually. 
Are you sure that the WAR and its contained JARs actually have source 
code? They don't by default (and I've never seen one that does)...


To deplay the application, they usually put the WAR into the webapp 
directory and they it runs: I concluded the source code is in there.


In case the war dont contain the source code:
- Where is the application code?
- Why do they need to upload that big file (1.1Mo big in my case)?


But then there are two questions:
- How to jar and war the exploded code back (to get it all archived it 
it was)?
- if I unarchive some .jar, they dont unarchive in a subdir but 
directly in the current dir. How to manage that (when unarchiving 
_and_ re-archiving)?

Well, the developper used some environment, I want to
- put the code under SVN
- edit it with Emacs/JDE
These aren't really Tomcat-specific questions at all :( I'd advise 
taking each question and finding its answer via your favorite search 
engine.


The last section of my post was to explain the goal, so that people 
could understand my request. Obviously I did not expect some indication 
about that.


--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: unwar and unjar an application

2009-01-28 Thread Kirk True

Hi Mihamina,

Mihamina Rakotomandimby (R12y) wrote:

Hi,
A developer gave me just a .war file to deploy on a tomcat.
I read [w|j]ar files are just zipped.
The .war contains some .jar...

I would like to "explode" all the .war (and the contained jars) and 
have the full code source. I could do it manually. 


Are you sure that the WAR and its contained JARs actually have source 
code? They don't by default (and I've never seen one that does)...



But then there are two questions:

- How to jar and war the exploded code back (to get it all archived it 
it was)?
- if I unarchive some .jar, they dont unarchive in a subdir but 
directly in the current dir. How to manage that (when unarchiving 
_and_ re-archiving)?


Well, the developper used some environment, I want to
- put the code under SVN
- edit it with Emacs/JDE


These aren't really Tomcat-specific questions at all :( I'd advise 
taking each question and finding its answer via your favorite search engine.


Kirk

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



unwar and unjar an application

2009-01-28 Thread Mihamina Rakotomandimby (R12y)

Hi,
A developer gave me just a .war file to deploy on a tomcat.
I read [w|j]ar files are just zipped.
The .war contains some .jar...

I would like to "explode" all the .war (and the contained jars) and have 
the full code source. I could do it manually. But then there are two 
questions:


- How to jar and war the exploded code back (to get it all archived it 
it was)?
- if I unarchive some .jar, they dont unarchive in a subdir but directly 
in the current dir. How to manage that (when unarchiving _and_ 
re-archiving)?


Well, the developper used some environment, I want to
- put the code under SVN
- edit it with Emacs/JDE

That's why I need to get it all clear.
Thank you for any advice.

--
Chef de projet chez Vectoris
http://www.google.com/search?q=mihamina+rakotomandimby

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org