Find WebService in java files

Version 7 by Bård Lind
on Dec 03, 2013 14:16.

compared with
Current by Bård Lind
on Dec 03, 2013 14:46.

Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (6)

View Page History
*printServiceMethod.sh*
{code}
#!/usr/bin/sh #!/bin/bash
output=ServiceMethod.txt
S2='WebService('
while read F ; do
#echo $F >> $output
awk '/@WebService/' $F | cut -d'"' -f2 >> $output
serviceName=$(awk '/@WebService/' $F | cut -d'"' -f2 )
if [[ $serviceName == *"$S2"* ]]
then
echo match $serviceName
else
echo nomatch $serviceName
fi
#grep public $F >> $output
echo $serviceName >> $output
done <./WebServiceClass.txt
{code}