Title: [1057] trunk/jopenssl/Rakefile: Don' t display the horrid command line for JavaC
Revision
1057
Author
olabini
Date
2008-07-21 14:41:14 -0400 (Mon, 21 Jul 2008)

Log Message

Don't display the horrid command line for JavaC

Modified Paths


Diff

Modified: trunk/jopenssl/Rakefile (1056 => 1057)


--- trunk/jopenssl/Rakefile	2008-07-21 18:41:13 UTC (rev 1056)
+++ trunk/jopenssl/Rakefile	2008-07-21 18:41:14 UTC (rev 1057)
@@ -24,7 +24,20 @@
 desc "Compile the native Java code."
 task :java_compile do
   mkdir_p "pkg/classes"
-  sh "javac -target 1.5 -source 1.5 -Xlint:unchecked -Xlint:deprecation -d pkg/classes #{java_classpath_arg} #{FileList['src/java/**/*.java'].join(' ')}"
+
+  File.open("pkg/compile_options", "w") do |f|
+    f << "-target 1.5 -source 1.5 -Xlint:unchecked -Xlint:deprecation -d pkg/classes"
+  end
+
+  File.open("pkg/compile_classpath", "w") do |f|
+    f << java_classpath_arg
+  end
+
+  File.open("pkg/compile_sourcefiles", "w") do |f|
+    f << FileList['src/java/**/*.java'].join(' ')
+  end
+  
+  sh "javac @pkg/compile_options @pkg/compile_classpath @pkg/compile_sourcefiles"
   File.open("pkg/classes/manifest.mf", "w") {|f| f.puts "Class-Path: #{BC_JARS.map{|f| File.basename(f) }.join(' ')}"}
   sh "jar cfm lib/jopenssl.jar pkg/classes/manifest.mf -C pkg/classes/ ."
 end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to