Permalink
Browse files

Fix hypothetical Java example

The documentation had an example rule for a hypothetical compile of
a .java file that would compile down to a .class file, but the
example began with:

    rule '.java' => ...

Since the extension after 'rule' is supposed to be the target
extension rather than the source extension, it should begin with:

    rule '.class' => ...
  • Loading branch information...
1 parent 7df9e67 commit 90d8a899d2a9ac883ead1866065dd44fc4fdd6ca @mmorearty mmorearty committed Jan 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/rakefile.rdoc
View
@@ -337,7 +337,7 @@ required on *rule* when the first argument is a regular expression.
The following rule might be used for Java files ...
- rule '.java' => [
+ rule '.class' => [
proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
] do |t|
java_compile(t.source, t.name)

0 comments on commit 90d8a89

Please sign in to comment.