Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add build directories and authors file

  • Loading branch information...
commit 3f0f1d7ac9e950d0e536c77c4744a838de5af474 1 parent 0e0cfd1
Justin S. Leitgeb authored
4 .gitignore
... ... @@ -1,2 +1,4 @@
1 1 *.class
2   -*.jar
  2 +*.jar
  3 +build/*
  4 +lib/*
7 AUTHORS
... ... @@ -0,0 +1,7 @@
  1 +Chris Hunt
  2 +@chrishunt
  3 +Square
  4 +
  5 +Justin Leitgeb
  6 +@justinleitgeb
  7 +Stack Builders
26 Rakefile
... ... @@ -0,0 +1,26 @@
  1 +task :clean do
  2 + system "rm -rf ~/.m2/repository/{schedule, jruby}"
  3 +end
  4 +
  5 +task :compile => :clean do
  6 + system "jrubyc --javac steel_city/schedule.rb -t build/"
  7 + system "jrubyc build/com/steelcity/schedule.java"
  8 +
  9 + system "jar -cf lib/schedule.jar build/com/steelcity/schedule.class"
  10 + system "cp \`which jruby | sed 's/bin\\/jruby//'\`/lib/jruby.jar lib/"
  11 +end
  12 +
  13 +task :install => :compile do
  14 + [['schedule', '0.0.0'], ['jruby', '1.6.7.2']].each do |(package, version)|
  15 + cmd = <<-CMD
  16 + mvn install:install-file \
  17 + -DgroupId=#{package} \
  18 + -DartifactId=#{package} \
  19 + -Dversion=#{version} \
  20 + -Dpackaging=jar \
  21 + -Dfile=./lib/#{package}.jar
  22 + CMD
  23 +
  24 + system cmd
  25 + end
  26 +end
0  build/.gitignore
No changes.
0  lib/.gitignore
No changes.

0 comments on commit 3f0f1d7

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