Permalink
Browse files

put hadoop jar in tree

  • Loading branch information...
1 parent cca4fc0 commit 88bd3acc4f2fd69720509f69fe097fcf7e568c5a @erh erh committed May 11, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 buildscripts/emr/emr.py
  2. BIN buildscripts/emr/lib/hadoop-core-0.20.205.0.jar
View
@@ -83,9 +83,15 @@ def build_jar():
shutil.copyfile( src + "/" + x , root + "/" + x )
shutil.copyfile( src + "/MANIFEST.MF" , root + "/MANIFEST.FM" )
+ classpath = os.listdir( src + "/lib" )
+ for x in classpath:
+ shutil.copyfile( src + "/lib/" + x , root + "/" + x )
+ classpath.append( "." )
+ classpath = ":".join(classpath)
+
for x in os.listdir( root ):
if x.endswith( ".java" ):
- if subprocess.call( [ "javac" , x ] , cwd=root) != 0:
+ if subprocess.call( [ "javac" , "-cp" , classpath , x ] , cwd=root) != 0:
raise Exception( "compiled failed" )
args = [ "jar" , "-cfm" , "emr.jar" , "MANIFEST.FM" ]
Binary file not shown.

0 comments on commit 88bd3ac

Please sign in to comment.