Subversion Repositories SmartDukaan

Rev

Rev 1016 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
48 ashish 1
#!/bin/bash
2
 
3
#read the language
4
 
5
path=$1
6
 
7
 
8
reldir=`dirname $0`
9
cd $reldir
10
 
11
directory=`pwd`
12
echo $directory
13
#gen-java path
14
 
15
java_path=`dirname $1`
16
 
17
 
18
echo "Deleting the directory gen-javabean"
19
 
20
remove=`rm -rf $java_path/gen-javabean`
21
 
22
remove=`rm -rf gen-javabean`
23
echo "Generating java files from thrift files"
24
#cd $java_path
25
 
3377 rajveer 26
status=`thrift -I GenericService -gen java:beans $path`
48 ashish 27
 
28
echo $directory
29
 
30
 
31
echo "If no errors appear above, then files generated"
32
 
33
 
34
reldir=`dirname $0`
35
 
36
echo "copying files"
37
 
1016 chandransh 38
dir_to_copy="$java_path/../../../ThriftConfig/src/main/java"
48 ashish 39
 
40
echo $dir_to_copy
41
 
1016 chandransh 42
copy=`cp -r gen-javabean/* $java_path/../../../ThriftConfig/src/main/java`
48 ashish 43
 
44
echo "files copied, pleae refresh ThriftConfig in eclipse"