anttrap 0.01 → 0.02
Sign up to get free protection for your applications and to get access to all the features.
- data/README +2 -0
- data/README.md +10 -3
- data/anttrap.gemspec +3 -2
- metadata +22 -97
data/README
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,14 @@ The AntTrap Ruby Gem
|
|
2
2
|
====================
|
3
3
|
A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to
|
4
4
|
work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls
|
5
|
-
exec on the selected Rake task.
|
5
|
+
exec on the selected Rake task.
|
6
|
+
|
7
|
+
Use It In Your Favorite IDE
|
8
|
+
---
|
9
|
+
Tested on:
|
10
|
+
IntelliJ Idea 10.5.1
|
11
|
+
NetBeans 7.0
|
12
|
+
Eclipse Indigo
|
6
13
|
|
7
14
|
|
8
15
|
Sample rakefile
|
@@ -86,9 +93,9 @@ features. Before submitting a bug report or feature request, check to make sure
|
|
86
93
|
been submitted. You can indicate support for an existing issuse by voting it up. When submitting a
|
87
94
|
bug report, please include a [Gist](http://gist.github.com/) that includes a stack trace and any
|
88
95
|
details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
|
89
|
-
operating system.
|
96
|
+
operating system.
|
90
97
|
|
91
98
|
Copyright
|
92
99
|
---
|
93
100
|
Copyright (c) 2011 Dave Parfitt
|
94
|
-
See
|
101
|
+
See the LICENSE file for more details.
|
data/anttrap.gemspec
CHANGED
@@ -1,16 +1,17 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "anttrap"
|
3
3
|
s.summary = "Generates an Ant build file from a Rakefile so Rake can be used from a Java IDE"
|
4
|
-
s.description = File.read(File.join(File.dirname(__FILE__),'README
|
4
|
+
s.description = File.read(File.join(File.dirname(__FILE__),'README'))
|
5
5
|
s.requirements = "Rake, Ant"
|
6
6
|
s.author = "Dave Parfitt"
|
7
7
|
s.email = "diparfitt@gmail.com"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.02"
|
9
9
|
s.homepage = "http://github.org/metadave/anttrap"
|
10
10
|
s.platform = Gem::Platform::RUBY
|
11
11
|
s.required_ruby_version = ">=1.8"
|
12
12
|
s.files = Dir['**/**']
|
13
13
|
s.has_rdoc = false
|
14
14
|
s.add_dependency('builder', '>= 3.0.0')
|
15
|
+
s.add_dependency('rake', '>= 0.8.7')
|
15
16
|
|
16
17
|
end
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anttrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: "0.
|
8
|
+
- 2
|
9
|
+
version: "0.02"
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Dave Parfitt
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-08-
|
17
|
+
date: 2011-08-10 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -33,101 +33,26 @@ dependencies:
|
|
33
33
|
version: 3.0.0
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rake
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ">="
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 49
|
45
|
+
segments:
|
46
|
+
- 0
|
47
|
+
- 8
|
48
|
+
- 7
|
49
|
+
version: 0.8.7
|
50
|
+
type: :runtime
|
51
|
+
version_requirements: *id002
|
36
52
|
description: |
|
37
|
-
The
|
38
|
-
====================
|
39
|
-
A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to
|
40
|
-
work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls
|
41
|
-
exec on the selected Rake task. As of 8/9/2011, the only tool I have tested so far is Eclipse.
|
42
|
-
|
43
|
-
|
44
|
-
Sample rakefile
|
45
|
-
---
|
46
|
-
require 'anttrap'
|
47
|
-
|
48
|
-
AntTrap.antproject="RakeFile #{Time.new}"
|
49
|
-
AntTrap.rake = '/usr/bin/rake'
|
50
|
-
AntTrap.rakeargs = ["-v"]
|
51
|
-
|
52
|
-
desc "The Bar task"
|
53
|
-
task :Bar do
|
54
|
-
puts "Bar!"
|
55
|
-
end
|
56
|
-
|
57
|
-
desc "The Foo Task"
|
58
|
-
task :Foo do
|
59
|
-
puts "Hello world"
|
60
|
-
end
|
61
|
-
|
62
|
-
|
63
|
-
Sample Generated Ant Build File
|
64
|
-
---
|
65
|
-
<!-- this file is generated automatically -->
|
66
|
-
<?xml version="1.0" encoding="ASCII"?>
|
67
|
-
<project name="RakeFile Tue Aug 09 13:35:22 -0400 2011">
|
68
|
-
<target name="AntTrap" description="Generate an ant build file from this Rake file">
|
69
|
-
<exec executable="/usr/bin/rake">
|
70
|
-
<arg value="-v"/>
|
71
|
-
<arg value="AntTrap"/>
|
72
|
-
</exec>
|
73
|
-
</target>
|
74
|
-
|
75
|
-
<target name="Clean" description="Clean">
|
76
|
-
<exec executable="/usr/bin/rake">
|
77
|
-
<arg value="-v"/>
|
78
|
-
<arg value="Clean"/>
|
79
|
-
</exec>
|
80
|
-
</target>
|
81
|
-
<target name="Compile" description="Compile Java">
|
82
|
-
<exec executable="/usr/bin/rake">
|
83
|
-
<arg value="-v"/>
|
84
|
-
<arg value="Compile"/>
|
85
|
-
</exec>
|
86
|
-
</target>
|
87
|
-
</project>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
Generating an Ant Build File
|
92
|
-
---
|
93
|
-
rake AntTrap
|
94
|
-
|
95
|
-
|
96
|
-
Using the Ant Build file in an IDE
|
97
|
-
---
|
98
|
-
Simply use the Ant build file in your favorite IDE like you always have. Each time you modify the rakefile, be sure to run "rake AntTrap" (or just run the AntTrap task from your IDE).
|
99
|
-
|
100
|
-
Whenever you the build.xml file is generated, the Ant file will need to be
|
101
|
-
refreshed in your IDE. In Eclipse, right click in the Ant view and select "Refresh Buildfiles".
|
102
|
-
|
103
|
-
|
104
|
-
Compiling Multiple Java Files from Rake
|
105
|
-
---
|
106
|
-
see the [sample rakefile](https://github.com/metadave/anttrap/blob/master/samples/rakefile)
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
Installation
|
111
|
-
---
|
112
|
-
Unix:
|
113
|
-
sudo gem install anttrap
|
114
|
-
|
115
|
-
Windows:
|
116
|
-
gem install anttrap
|
117
|
-
|
118
|
-
Submitting an Issue
|
119
|
-
---
|
120
|
-
I use the [GitHub issue tracker](http://github.com/metadave/anttrap/issues) to track bugs and
|
121
|
-
features. Before submitting a bug report or feature request, check to make sure it hasn't already
|
122
|
-
been submitted. You can indicate support for an existing issuse by voting it up. When submitting a
|
123
|
-
bug report, please include a [Gist](http://gist.github.com/) that includes a stack trace and any
|
124
|
-
details that may be necessary to reproduce the bug, including your gem version, Ruby version, and
|
125
|
-
operating system. Ideally, a bug report should include a pull request with failing specs.
|
53
|
+
A tiny Gem that can generate an Apache Ant build file from a Rakefile. This allows for a developer to work in Rake, but integrate with any tool that supports Ant. The generated build file simply calls exec on the selected Rake task.
|
126
54
|
|
127
|
-
|
128
|
-
---
|
129
|
-
Copyright (c) 2011 Dave Parfitt
|
130
|
-
See [LICENSE](https://github.com/metadave/anttrap/blob/LICENSE) for details.
|
55
|
+
see README.md
|
131
56
|
|
132
57
|
email: diparfitt@gmail.com
|
133
58
|
executables: []
|