Skip to content

Commit 4c4a9a3

Browse files
committed
add a Rakefile
1 parent 457b21e commit 4c4a9a3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

nature-of-code/xor/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Building the xor (neural net) Library
22
===================
33

4-
Here we do a [polyglot maven][polyglot] build. But you could do a manual build quite easily if you wished. If you have a recent maven installed all you need to do is
4+
Here we do a [polyglot maven][polyglot] build. But you could do a manual build quite easily if you wished. If you have a recent maven installed all you need to do is to compile and run.
55

66
```bash
7-
mvn package
7+
rake
88
```
99

1010
See also how to build jruby [extensions][extensions] with polyglot maven

nature-of-code/xor/Rakefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
task default: [:compile, :run]
2+
3+
desc 'Compile'
4+
task :compile do
5+
sh 'mvn package'
6+
end
7+
8+
desc 'Run'
9+
task :run do
10+
sh 'jruby xor.rb'
11+
end

0 commit comments

Comments
 (0)