Skip to content
Browse files

Add build directories and authors file

  • Loading branch information...
1 parent 0e0cfd1 commit 3f0f1d7ac9e950d0e536c77c4744a838de5af474 @jsl committed Aug 4, 2012
Showing with 36 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +7 −0 AUTHORS
  3. +26 −0 Rakefile
  4. 0 build/.gitignore
  5. 0 lib/.gitignore
View
4 .gitignore
@@ -1,2 +1,4 @@
*.class
-*.jar
+*.jar
+build/*
+lib/*
View
7 AUTHORS
@@ -0,0 +1,7 @@
+Chris Hunt
+@chrishunt
+Square
+
+Justin Leitgeb
+@justinleitgeb
+Stack Builders
View
26 Rakefile
@@ -0,0 +1,26 @@
+task :clean do
+ system "rm -rf ~/.m2/repository/{schedule, jruby}"
+end
+
+task :compile => :clean do
+ system "jrubyc --javac steel_city/schedule.rb -t build/"
+ system "jrubyc build/com/steelcity/schedule.java"
+
+ system "jar -cf lib/schedule.jar build/com/steelcity/schedule.class"
+ system "cp \`which jruby | sed 's/bin\\/jruby//'\`/lib/jruby.jar lib/"
+end
+
+task :install => :compile do
+ [['schedule', '0.0.0'], ['jruby', '1.6.7.2']].each do |(package, version)|
+ cmd = <<-CMD
+ mvn install:install-file \
+ -DgroupId=#{package} \
+ -DartifactId=#{package} \
+ -Dversion=#{version} \
+ -Dpackaging=jar \
+ -Dfile=./lib/#{package}.jar
+ CMD
+
+ system cmd
+ end
+end
View
0 build/.gitignore
No changes.
View
0 lib/.gitignore
No changes.

0 comments on commit 3f0f1d7

Please sign in to comment.
Something went wrong with that request. Please try again.