Skip to content
Browse files

Compile the ant task.

fixes #194
  • Loading branch information...
1 parent afe5384 commit d7f39b85351c5b8365d8ae83f5d6a42e75e7ad83 @ribrdb ribrdb committed Nov 8, 2012
Showing with 5 additions and 1 deletion.
  1. +3 −1 Rakefile
  2. +2 −0 src/org/mirah/ant/compile.mirah
View
4 Rakefile
@@ -107,7 +107,9 @@ task :compile => [:init, :bootstrap] do
'src/org/mirah/mirah_command.rb'
])
- # TODO compile ant stuff
+ # compile ant stuff
+ ant_classpath = $CLASSPATH.grep(/ant/).map{|x| x.sub(/^file:/,'')}.join(File::PATH_SEPARATOR)
+ sh *%W(jruby -Ilib bin/mirahc --classpath #{ant_classpath}:build --dest build src/org/mirah/ant)
# compile invokedynamic stuff
ant.javac :destdir => 'build', :srcdir => 'src',
View
2 src/org/mirah/ant/compile.mirah
@@ -13,6 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+package org.mirah.ant
+
import org.apache.tools.ant.BuildException
import org.apache.tools.ant.Task
import org.apache.tools.ant.types.Path

1 comment on commit d7f39b8

@abscondment

Awesome, thanks! I think that missing package was confounding my efforts :\

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