Hello,
I have a .jar file and am trying to figure out if it is possible to search for some text in all the files in it without extracting it.
I was able to do it using jar xf <filename>.jar and then using grep but want a one liner.
Thanks in advance:) (8 Replies)
Hey Guys,
I need to search inside all the jar files of my directory for a specific string. Can anyone guide me as to how i can do it. I need this urgently please. More specifically i need to search for a class file name in the jar files.
Thanks in advance :-) (4 Replies)
Hello sir,
I have created a jar file having some code in java.What it does is that it calls a shell code (a.sh) which is in the same directory.
Now my requirement is that I want to jar the a.sh also along with the other files and want to call the a.sh which is now inside the jar file and not... (1 Reply)
Hi,
I am new to Linux. I have a executable jar file which I need to run even before the user logs in. The problem is since I don't have good information about the services in Linux its very difficult to understand the same topic posted at other forums.
I have tried many things like java... (0 Replies)
Hi,
I have a below command in ksh ....
$JAVA_HOME/bin/java -cp "/usr/orabase/product/10.2.0/lib:/usr/java/javajar/common/sched.jar:/usr/orabase/product/10.2.0/jdbc/lib/ojdbc14_g.jar:/usr/orabase/product/10.2.0/jdbc/lib/classes12.jar" com.abrt.smart.Smart
I want to know where the... (1 Reply)
Hello everyone,
I am using jar to consolidate a large number of files for transfer, about 2500.
The jar command seems to work fine and it says ....adding.... files while it is building the archive. If I capture the messages to a log the log has 2500 lines each of them says I file was addedd... (2 Replies)
Hi All,
I am having 7 jar files in a dir. abc like listed below
bash-3.00$ cd abc
bash-3.00$ ls
123.jar
23wdawd.jar
dfsa23.jar
dsa.jar
wew234.jar
adsd234234.jar
dfsda423.jarNow i want to assign all this jar files to a variable in the below format
... (6 Replies)
I have a script I am trying to test and run but it runs against a jar file. I wrote an external property file so it would redirect with my script, but it keeps going in search of the previous property file. Is there any way to externally over write the jar file and if not how do you go about... (7 Replies)
Hi,
I am trying to retrieve the "Implementation version" from one of the .jar file
The command which tried is as below.
find /usr/local/platform -name "platform.jar" -exec zipgrep "Implementation-Version:" '{}' \;|awk -F ': ' '{print $2}'I am able to get the version as below
2.9.0-29But... (2 Replies)
Discussion started by: nextStep
2 Replies
LEARN ABOUT SUSE
clean-binary-files
CLEAN-BINARY-FILES(1) User Commands CLEAN-BINARY-FILES(1)NAME
clean-binary-files - remove a third party binaries (JARs) from an upstream archive
SYNOPSIS
clean-binary-files {[-f {-, instructions_file}], [-e exclusion_file] [-l]} [-a archive_file] [-d custom_jar_map] [-n] [-p] [-s]
OPTIONS -f The instructions file, specifying which files to keep and which to remove
-e The exclusions file, specifying special binary files that are to be preserved, or non-binary files that are to be removed.
-l Only list instructions (to put in instructions file), do not delete anything.
-a Archive file on which actions will be performed, as opposed to current directory
-d A custom jar map file (has priority over the generic one).
-n No symlinks (i.e. only clean jars, don't run build-jar-repository afterwards)
-p Preserve original file names (-p to build-jar-repository)
-s Silent mode. Won't output commands during cleanup
-f The instructions file, specifying which files to keep and which to remove
-e - The exclusions file, specifying special binary files that are to be preserved, or non-binary files that are to be removed.
-l - Only list instructions (to put in instructions file), do not delete anything.
-a - Archive file on which actions will be performed, as opposed to current directory
-d - A custom jar map file (has priority over the generic one).
-n - No symlinks (i.e. only clean jars, don't run build-jar-repository afterwards)
-p - Preserve original file names (-p to build-jar-repository)
-s - Silent mode. Won't output commands during cleanup
EXAMPLES
Suppose there is a vanilla tarball abc-1.tar.gz with some binary files (jars) in it. In the source repo, we would want a clean copy without
any jars. We can use the scripts to achieve this:
To generate an instructions file:
clean-binary-files -e <exclusion file> -l -a abc-1.tar.gz > instructions
This creates an 'instructions' file, which contains info on what stays and what goes.
Then, one can run:
clean-binary-files -f instructions -n -a abc-1.tar.gz
This would create abc-1-clean.tar.gz for uploading into jpp/fedora/etc. repositories with no binary (jar) files.
Alternatively, if you have a vanilla tarball, you can clean and create symlinks in it's place all at once by:
clean-binary-files -e <exclusion file> -d <custom_jar_map> -a abc-1.tar.gz
Note: If the -a <file> is not given to clean-binary-files(1), all actions are performed on current directory.
SEE ALSO
Regular Manual Pages
check-binary-files(1), create-jar-ks(1), jpackage-utils(7)
Documentation
Further reading should be found in clean-binary-files.txt located in your standard documentation directory.
Original mail is here:
https://www.zarb.org/pipermail/jpackage-discuss/2005-November/009158.html
AUTHOR
Written by Deepak Bhole
REPORTING BUGS
Report bugs using JPackage Bugzilla (http://www.jpackage.org/bugzilla/)
clean-binary-files (jpackage-utils) 1.7.5 February 2009 CLEAN-BINARY-FILES(1)