Re: import magic
- From: Roedy Green <look-on@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Jul 2005 20:39:56 GMT
On 27 Jul 2005 12:59:38 -0700, "David R Tribble" <david@xxxxxxxxxxx>
wrote or quoted :
>A brute-force way of doing this is to dump the contents of the .class
>file and look for the names of all the classes embedded within it.
>
>But there should be a standard tool for doing this.
I have created a crude tool. I use Ant/genjar to build the jar. Then I
use wzunzip -t to give me a directory listing. I am finding manually
maintaining forjar.lists is too tedious. I am just going to give my
users ant build.xmls.
Then I run this Funduc script to tidy it up. You could also work with
the manifest, and prune that.
[Script for Search and Replace]
convert wzunzip to forjar.list
[Options]
Search_subdir=1
Prompt_flag=0
Max Display Chars=512
Show Progress Dialog=1
Count across files=0
Replace Processing=0
Process Binary Files=1
Buffer Size=102400
Num Buffers To Process=0
Output_File=
Show_Files=1
Backup Path=
Before Hit=<
After Hit=>
Max Reg Expr=4000
Write to Backup Dir=0
Unzip Dir=C:\DOCUME~1\ADMINI~1.ROE\LOCALS~1\Temp\
Show Files Without Hits=0
Display Replace String=0
Display File Stats=1
Show File Date and Size=0
Reverse Filters=0
Min Size Filter=0
Max Size Filter=0
Min Date Filter=
Max Date Filter=
Skip Files Mask=0
Ignore Attributes=55
Keep file time stamp=0
One hit=0
Sort File Names=0
Sort Ascending=1
Append to output file=0
[Search]
META-INF\MANIFEST.MF
[Replace]
[Search]
OK
[Replace]
[Search]
testing: com
[Replace]
com
[Search]
\
[Replace]
/
[End of Search and Replace Script]
--
Bush crime family lost/embezzled $3 trillion from Pentagon.
Complicit Bush-friendly media keeps mum. Rumsfeld confesses on video.
http://www.infowars.com/articles/us/mckinney_grills_rumsfeld.htm
Canadian Mind Products, Roedy Green.
See http://mindprod.com/iraq.html photos of Bush's war crimes
.
- Follow-Ups:
- Re: import magic
- From: Tim Tyler
- Re: import magic
- References:
- import magic
- From: Roedy Green
- Re: import magic
- From: Boudewijn Dijkstra
- Re: import magic
- From: david
- Re: import magic
- From: Roedy Green
- Re: import magic
- From: Tor Iver Wilhelmsen
- Re: import magic
- From: Roedy Green
- Re: import magic
- From: Tim Tyler
- Re: import magic
- From: David R Tribble
- import magic
- Prev by Date: Re: newbie q: .java file and java project difference
- Next by Date: Re: Silly URL...
- Previous by thread: Re: import magic
- Next by thread: Re: import magic
- Index(es):
Relevant Pages
|