Re: import magic



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
.



Relevant Pages

  • Re: refresh causes double post
    ... submit, your comment appears as it should, but then if you hit refresh ... In most cases this is the page the receiving script of the form generates. ... Now if you hit 'refresh' the browser assumes you want the same page ... And in page1.php you could display the result if it exists in the ...
    (comp.lang.php)
  • Re: Scripter Studio v2.6 release
    ... You can, for example, build a script header like this: ... {put filter criteria here based on MessageObj object} ... Whenever you want to>> run a script, you don't need to recompile it, only load>> the compiled code and run. ... This sounds like exactly what I need for my newsreader.I want to> make it possible to use scripts for message filtering, message coloring and> display, etc. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Active Directory Scripting
    ... I don't have time to write the script at this point but I would run a ... ldifde export of all users and filter on the Display Name. ...
    (microsoft.public.scripting.vbscript)
  • Re: inserting Adobe Illustrator graphics, more experience
    ... Word's "picture editing" tools, they can work only with bitmaps. ... The 'shapes' group are all very similar to CGM (Computer Graphics Metafile) ... as a group, it can have a name, a hyperlink, display ... the import filter, which says "Is this something like CGM?" ...
    (microsoft.public.mac.office.word)
  • Re: Internet Explorer - Firefox
    ... Firefox, the problem is how publisher displayed it in IE. ... I imagine it is a problem with how the script is ... suppose to display a search box for flights..i am pretty sure that the ...
    (microsoft.public.publisher.webdesign)