buildr 1.3.1.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +26 -0
- data/NOTICE +3 -5
- data/README +1 -0
- data/Rakefile +4 -3
- data/addon/buildr/nailgun.rb +3 -2
- data/addon/buildr/xmlbeans.rb +1 -1
- data/buildr.gemspec +7 -7
- data/doc/css/syntax.css +40 -31
- data/doc/pages/building.textile +0 -1
- data/doc/pages/contributing.textile +21 -1
- data/doc/pages/download.textile +18 -5
- data/doc/pages/getting_started.textile +23 -12
- data/doc/pages/index.textile +1 -1
- data/doc/pages/packaging.textile +10 -7
- data/doc/pages/projects.textile +3 -3
- data/doc/pages/whats_new.textile +19 -0
- data/doc/scripts/install-jruby.sh +1 -1
- data/doc/scripts/install-linux.sh +4 -4
- data/lib/buildr.rb +1 -9
- data/lib/buildr/core/application.rb +11 -0
- data/lib/buildr/core/application_cli.rb +6 -1
- data/lib/buildr/core/build.rb +1 -1
- data/lib/buildr/core/compile.rb +6 -6
- data/lib/buildr/core/project.rb +1 -0
- data/lib/buildr/core/test.rb +3 -3
- data/lib/buildr/core/transports.rb +4 -2
- data/lib/buildr/core/util.rb +2 -0
- data/lib/buildr/ide/idea7x.rb +13 -12
- data/lib/buildr/java/compilers.rb +2 -4
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.class +0 -0
- data/lib/buildr/java/org/apache/buildr/JavaTestFilter.java +4 -1
- data/lib/buildr/java/test_frameworks.rb +162 -3
- data/rakelib/apache.rake +14 -0
- data/rakelib/package.rake +28 -0
- data/rakelib/setup.rake +3 -2
- data/spec/compile_spec.rb +9 -8
- data/spec/java_test_frameworks_spec.rb +19 -0
- data/spec/project_spec.rb +12 -0
- data/spec/sandbox.rb +4 -0
- data/spec/scala_compilers_spec.rb +1 -12
- data/spec/scala_test_frameworks_spec.rb +216 -0
- data/spec/test_spec.rb +20 -4
- data/spec/transport_spec.rb +30 -14
- data/spec/version_requirement_spec.rb +5 -1
- metadata +23 -13
data/CHANGELOG
CHANGED
@@ -1,3 +1,29 @@
|
|
1
|
+
1.3.2 (2008-07-18)
|
2
|
+
* Added: --prereqs command line argument to show all tasks and their
|
3
|
+
dependencies. You can also follow with regular expression to narrow down the
|
4
|
+
list of tasks.
|
5
|
+
* Changed: Upgraded to Rubyforge 1.0.0.
|
6
|
+
* Changed: BUILDR-86 Use newest versions of net-ssh and net-sftp gems.
|
7
|
+
* Changed: BUILDR-88 Test classes/resources should come before compile
|
8
|
+
classes/resources so they load up earlier in java classpath.
|
9
|
+
* Changed: BUILDR-102 Update JUnit Version to 4.4.
|
10
|
+
* Fixed: BUILDR-73 idea7x task incorrect adds target/resources to the sources
|
11
|
+
paths.
|
12
|
+
* Fixed: BUILDR-76 Added more specs and fixes to compile task.
|
13
|
+
* Fixed: BUILDR-77 Layout feature not working.
|
14
|
+
* Fixed: BUILDR-79 Remove :source option for Scala compiler
|
15
|
+
* Fixed: BUILDR-80 Fix reference to Util#timestamp method on nailgun addon.
|
16
|
+
* Fixed: BUILDR-82 Temporary work around for Net::SSH 2.0.2 attempting to
|
17
|
+
load Pageant DLLs when running on JRuby/Windows.
|
18
|
+
* Fixed: BUILDR-89 JUnit (and all other Java frameworks) no longer include
|
19
|
+
abstract classes.
|
20
|
+
* Fixed: BUILDR-90 Installing from source doesn't work with JRuby.
|
21
|
+
* Fixed: BUILDR-91 When doing a release, buildr should spawn the same version of buildr
|
22
|
+
* Fixed: BUILDR-92 IDEA 7x: add resources directories to classpath.
|
23
|
+
* Fixed: BUILDR-95: Only download Scala test framework artifacts when required
|
24
|
+
* Fixed: BUILDR-100 Directory structure documentation needs updating.
|
25
|
+
* Fixed: Installation instructions updated for RubyGems 1.2.0.
|
26
|
+
|
1
27
|
1.3.1.1 (2008-06-04)
|
2
28
|
* Fixed: BUILDR-78 Broken dependency on Rubyforge Gem.
|
3
29
|
|
data/NOTICE
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
=========================================================================
|
2
|
-
== NOTICE file for use with the Apache License, Version 2.0, ==
|
3
|
-
== in this case for the Apache Buildr distribution. ==
|
4
|
-
=========================================================================
|
5
|
-
|
6
1
|
Apache Buildr
|
2
|
+
Copyright 2008 The Apache Software Foundation
|
3
|
+
|
7
4
|
This product includes software developed at
|
8
5
|
The Apache Software Foundation (http://www.apache.org/).
|
9
6
|
|
7
|
+
|
10
8
|
COPYRIGHT NOTICES
|
11
9
|
-----------------
|
12
10
|
Copyright 2007 Intalio
|
data/README
CHANGED
data/Rakefile
CHANGED
@@ -16,7 +16,6 @@
|
|
16
16
|
|
17
17
|
require 'rake/gempackagetask'
|
18
18
|
|
19
|
-
|
20
19
|
def spec(platform = nil)
|
21
20
|
@specs ||= {}
|
22
21
|
platform ||= RUBY_PLATFORM =~ /java/ ? 'java' : 'ruby'
|
@@ -28,7 +27,7 @@ def spec(platform = nil)
|
|
28
27
|
spec.add_dependency 'ci_reporter', '1.5.1' # must come after builder dependency
|
29
28
|
else
|
30
29
|
# Place first on the dependency list, otherwise AntWrap picks the latest RJB.
|
31
|
-
spec.dependencies.unshift Gem::Dependency.new('rjb',
|
30
|
+
spec.dependencies.unshift Gem::Dependency.new('rjb', '1.1.2')
|
32
31
|
end
|
33
32
|
spec
|
34
33
|
end
|
@@ -54,7 +53,7 @@ ENV['incubating'] = 'true'
|
|
54
53
|
ENV['staging'] = "people.apache.org:~/public_html/#{spec.name}/#{spec.version}"
|
55
54
|
|
56
55
|
task 'apache:license'=>spec.files
|
57
|
-
task('apache:license').prerequisites.exclude(
|
56
|
+
#task('apache:license').prerequisites.exclude( ..not ASL.. )
|
58
57
|
|
59
58
|
task 'spec:check' do
|
60
59
|
print 'Checking that we have JRuby, Scala and Groovy available ... '
|
@@ -63,3 +62,5 @@ task 'spec:check' do
|
|
63
62
|
fail 'Full testing requires Groovy!' unless which('groovy')
|
64
63
|
puts 'OK'
|
65
64
|
end
|
65
|
+
|
66
|
+
|
data/addon/buildr/nailgun.rb
CHANGED
@@ -315,6 +315,7 @@ module Buildr
|
|
315
315
|
end
|
316
316
|
|
317
317
|
module Util
|
318
|
+
extend Buildr::Util
|
318
319
|
extend self
|
319
320
|
|
320
321
|
def find_buildfile(pwd, candidates, nosearch=false)
|
@@ -457,7 +458,7 @@ module Buildr
|
|
457
458
|
end
|
458
459
|
|
459
460
|
def last_modification
|
460
|
-
|
461
|
+
Util.timestamp(path)
|
461
462
|
end
|
462
463
|
|
463
464
|
def should_be_loaded?
|
@@ -841,7 +842,7 @@ module Buildr
|
|
841
842
|
puts "Starting #{$nailgun_server}"
|
842
843
|
$nailgun_server.start_server
|
843
844
|
|
844
|
-
is_win =
|
845
|
+
is_win = Util.win_os?
|
845
846
|
bin_path = File.expand_path(installed_bin.to_s.pathmap("%d"))
|
846
847
|
bin_name = installed_bin.to_s.pathmap("%f")
|
847
848
|
|
data/addon/buildr/xmlbeans.rb
CHANGED
@@ -78,7 +78,7 @@ module Buildr
|
|
78
78
|
verbose(false) do
|
79
79
|
base = generated.to_s
|
80
80
|
FileList["#{base}/**/*.{class,xsb,xsd}"].each do |file|
|
81
|
-
target = File.join(compile.target.to_s, Util.relative_path(
|
81
|
+
target = File.join(compile.target.to_s, Util.relative_path(file, base))
|
82
82
|
mkpath File.dirname(target) ; cp file, target
|
83
83
|
end
|
84
84
|
end
|
data/buildr.gemspec
CHANGED
@@ -16,14 +16,14 @@
|
|
16
16
|
|
17
17
|
Gem::Specification.new do |spec|
|
18
18
|
spec.name = 'buildr'
|
19
|
-
spec.version = '1.3.
|
19
|
+
spec.version = '1.3.2'
|
20
20
|
spec.author = 'Apache Buildr'
|
21
21
|
spec.email = "#{spec.name}-user@incubator.apache.org"
|
22
22
|
spec.homepage = "http://incubator.apache.org/#{spec.name}/"
|
23
23
|
spec.summary = 'A build system that doesn\'t suck'
|
24
24
|
|
25
25
|
spec.files = FileList['lib/**/*', 'addon/**/*', 'README', 'CHANGELOG', 'LICENSE', 'NOTICE', 'DISCLAIMER', 'KEYS',
|
26
|
-
|
26
|
+
'*.gemspec', 'Rakefile', 'rakelib/**/*', 'spec/**/*', 'doc/**/*']
|
27
27
|
spec.require_paths = ['lib', 'addon']
|
28
28
|
spec.bindir = 'bin' # Use these for applications.
|
29
29
|
spec.executable = 'buildr'
|
@@ -38,14 +38,14 @@ Gem::Specification.new do |spec|
|
|
38
38
|
# Tested against these dependencies.
|
39
39
|
spec.add_dependency 'rake', '0.8.1'
|
40
40
|
spec.add_dependency 'builder', '2.1.2'
|
41
|
-
spec.add_dependency 'net-ssh', '2.0.
|
42
|
-
spec.add_dependency 'net-sftp', '2.0.
|
41
|
+
spec.add_dependency 'net-ssh', '2.0.3'
|
42
|
+
spec.add_dependency 'net-sftp', '2.0.1'
|
43
43
|
spec.add_dependency 'rubyzip', '0.9.1'
|
44
44
|
spec.add_dependency 'highline', '1.4.0'
|
45
|
-
spec.add_dependency 'rubyforge', '0.
|
46
|
-
spec.add_dependency 'hoe', '1.
|
45
|
+
spec.add_dependency 'rubyforge', '1.0.0'
|
46
|
+
spec.add_dependency 'hoe', '1.6.0'
|
47
47
|
spec.add_dependency 'Antwrap', '0.7.0'
|
48
|
-
spec.add_dependency 'rspec', '1.1.
|
48
|
+
spec.add_dependency 'rspec', '1.1.4'
|
49
49
|
spec.add_dependency 'xml-simple', '1.0.11'
|
50
50
|
spec.add_dependency 'archive-tar-minitar', '0.5.2'
|
51
51
|
end
|
data/doc/css/syntax.css
CHANGED
@@ -1,43 +1,52 @@
|
|
1
|
-
|
2
|
-
*
|
1
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
2
|
+
* contributor license agreements. See the NOTICE file distributed with this
|
3
|
+
* work for additional information regarding copyright ownership. The ASF
|
4
|
+
* licenses this file to you under the Apache License, Version 2.0 (the
|
5
|
+
* "License"); you may not use this file except in compliance with the License.
|
6
|
+
* You may obtain a copy of the License at
|
7
|
+
*
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
9
|
+
*
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
12
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
13
|
+
* License for the specific language governing permissions and limitations
|
14
|
+
* under the License.
|
3
15
|
*/
|
4
16
|
|
17
|
+
|
5
18
|
.ruby .normal {}
|
6
|
-
.ruby .comment { color:
|
7
|
-
.ruby .
|
8
|
-
.ruby .
|
9
|
-
.ruby .
|
10
|
-
.ruby .
|
11
|
-
.ruby .
|
12
|
-
.ruby .
|
13
|
-
.ruby .
|
14
|
-
.ruby .
|
15
|
-
.ruby .
|
16
|
-
.ruby .
|
17
|
-
.ruby .
|
18
|
-
.ruby .
|
19
|
-
.ruby .attribute { color: #7BB; }
|
20
|
-
.ruby .global { color: #7FB; }
|
21
|
-
.ruby .expr { color: #227; }
|
22
|
-
.ruby .escape { color: #277; }
|
19
|
+
.ruby .comment { color: gray; }
|
20
|
+
.ruby .method { color: lightblue; }
|
21
|
+
.ruby .punct { color: darkblue; }
|
22
|
+
.ruby .keyword, .ruby .symbol { color: blue; }
|
23
|
+
.ruby .string, .ruby .regex { color: green; }
|
24
|
+
.ruby .char { }
|
25
|
+
.ruby .ident { color: black; }
|
26
|
+
.ruby .constant, ruby .class, ruby .module { color: darkblue; }
|
27
|
+
.ruby .number { color: blue; }
|
28
|
+
.ruby .attribute { }
|
29
|
+
.ruby .global { }
|
30
|
+
.ruby .expr { }
|
31
|
+
.ruby .escape { }
|
23
32
|
|
24
33
|
.xml .normal {}
|
25
|
-
.xml .namespace { color:
|
26
|
-
.xml .tag { color:
|
27
|
-
.xml .comment { color:
|
28
|
-
.xml .punct { color:
|
29
|
-
.xml .string {
|
30
|
-
.xml .number {
|
31
|
-
.xml .attribute { color:
|
34
|
+
.xml .namespace { color: darkblue; }
|
35
|
+
.xml .tag { color: blue; }
|
36
|
+
.xml .comment { color: gray; }
|
37
|
+
.xml .punct { color: darkblue; }
|
38
|
+
.xml .string { }
|
39
|
+
.xml .number { }
|
40
|
+
.xml .attribute { color: blue; }
|
32
41
|
|
33
42
|
.yaml .document { }
|
34
43
|
.yaml .type { }
|
35
|
-
.yaml .key { color:
|
36
|
-
.yaml .comment { color:
|
37
|
-
.yaml .punct { }
|
44
|
+
.yaml .key { color: blue; }
|
45
|
+
.yaml .comment { color: gray; }
|
46
|
+
.yaml .punct { color: darkblue; }
|
38
47
|
.yaml .string { }
|
39
48
|
.yaml .number { }
|
40
49
|
.yaml .time { }
|
41
50
|
.yaml .date { }
|
42
|
-
.yaml .ref { color:
|
43
|
-
.yaml .anchor { color:
|
51
|
+
.yaml .ref { color: green; }
|
52
|
+
.yaml .anchor { color: green; }
|
data/doc/pages/building.textile
CHANGED
@@ -249,7 +249,6 @@ also override this by setting the environment variable @debug@ to @off@. |
|
|
249
249
|
program. |
|
250
250
|
| @:other@ | Array of options passed to the compiler (e.g.
|
251
251
|
@:other=>'-Xprint-types'@). |
|
252
|
-
| @:source@ | Source code compatibility (e.g. '1.5'). |
|
253
252
|
| @:target@ | Bytecode compatibility (e.g. '1.4'). |
|
254
253
|
| @:warnings@ | Issue warnings when compiling. True when running in verbose
|
255
254
|
mode. |
|
@@ -55,6 +55,8 @@ Did we mention Buildr is an open source project? In fact, when you install
|
|
55
55
|
Buildr you get all the source code, documentation, test case and everything you
|
56
56
|
need to use it, extend it and patch it. Have a look in your Gem directory.
|
57
57
|
|
58
|
+
h4. Using SVN
|
59
|
+
|
58
60
|
But if you want to work with the latest and greatest, you'll want to check out
|
59
61
|
"Buildr from SVN":http://svn.apache.org/repos/asf/incubator/buildr:
|
60
62
|
|
@@ -65,13 +67,31 @@ $ svn co http://svn.apache.org/repos/asf/incubator/buildr/trunk buildr
|
|
65
67
|
You can also browse the "Buildr
|
66
68
|
repository":http://svn.apache.org/repos/asf/incubator/buildr.
|
67
69
|
|
70
|
+
h4. Using Git
|
71
|
+
|
68
72
|
Not a fan SVN? We understand. You can also grab a copy of "Buildr from
|
69
|
-
|
73
|
+
GitHub":http://github.com/vic/buildr/tree/master:
|
70
74
|
|
71
75
|
{{{!sh
|
72
76
|
$ git clone git://github.com/vic/buildr.git
|
73
77
|
}}}
|
74
78
|
|
79
|
+
The GitHub repository is maintained by contributors to this project, but is
|
80
|
+
*not* an official Apache repository. To obtain Buildr from the official Apache
|
81
|
+
repository, consider using @giv-svn@ instead.
|
82
|
+
|
83
|
+
If you want to learn more about Git, you can start by watching Scott Chacon’s
|
84
|
+
"Git presentation":http://en.oreilly.com/rails2008/public/asset/attachment/2816
|
85
|
+
(PDF), or any of the "Git screencasts":http://www.gitcasts.com/. For more,
|
86
|
+
there's also the "Git Internals
|
87
|
+
book":http://peepcode.com/products/git-internals-pdf.
|
88
|
+
|
89
|
+
And keep this "Git cheat
|
90
|
+
sheet":http://ktown.kde.org/~zrusin/git/git-cheat-sheet-medium.png handy at
|
91
|
+
hand. Very useful.
|
92
|
+
|
93
|
+
h4. Installing from Source
|
94
|
+
|
75
95
|
To install Buildr from the source directory:
|
76
96
|
|
77
97
|
{{{!sh
|
data/doc/pages/download.textile
CHANGED
@@ -4,15 +4,28 @@ h1. Download
|
|
4
4
|
h2. Installing Buildr
|
5
5
|
|
6
6
|
The easiest way to install Buildr is using the fabulous RubyGems package
|
7
|
-
manager. Of course, you will need either Ruby or JRuby, and we recommend
|
8
|
-
recent version of RubyGems
|
9
|
-
We'll show you how to install Buildr on Linux, OS/X, Windows
|
10
|
-
"Getting Started guide":getting_started.html, we even provide
|
11
|
-
installation scripts.
|
7
|
+
manager. Of course, you will need either Ruby or JRuby, and we recommend
|
8
|
+
upgrading to the most recent version of RubyGems. If this sounds foreign to
|
9
|
+
you, don't worry. We'll show you how to install Buildr on Linux, OS/X, Windows
|
10
|
+
and JRuby in the "Getting Started guide":getting_started.html, we even provide
|
11
|
+
automated installation scripts.
|
12
|
+
|
13
|
+
The *official Apache distribution* consists of the digitally signed binaries
|
14
|
+
(gems) and source packages "available below":#binaries_and_source_code. To
|
15
|
+
install these binaries, you must first download them to disk and then install
|
16
|
+
them using the @gem install@ command (or @rake install@ for a source
|
17
|
+
distribution).
|
18
|
+
|
19
|
+
In addition, contributors to this project maintain a separate distribution over
|
20
|
+
on "RubyForge":http://rubyforge.org/projects/buildr. Using this distribution,
|
21
|
+
you're able to install Buildr directly from the remote gem repository and to
|
22
|
+
automatically upgrade when a new release comes out. The RubyForge distribution
|
23
|
+
is *not* an official Apache distribution.
|
12
24
|
|
13
25
|
|
14
26
|
h2. Binaries and Source Code
|
15
27
|
|
28
|
+
|
16
29
|
h3. buildr 1.3.1-incubating (2008-05-19)
|
17
30
|
|
18
31
|
|_. Package |_. MD5 Checksum |_. PGP |
|
@@ -3,12 +3,16 @@ h1. Getting Started
|
|
3
3
|
h2. Installing Buildr
|
4
4
|
|
5
5
|
The installation instructions are slightly different for each operating system.
|
6
|
-
|
7
|
-
target platform.
|
6
|
+
Pick the one that best matches your operating system and target platform.
|
8
7
|
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
The @gem install@ and @gem update@ commands install Buildr from a binary
|
9
|
+
distribution provided through "RubyForge":http://rubyforge.org/projects/buildr.
|
10
|
+
This distribution is maintained by contributors to this project, but is *not*
|
11
|
+
an official Apache distribution. You can obtain the official Apache
|
12
|
+
distribution files from the "download page":download.html.
|
13
|
+
|
14
|
+
The current release of Buildr for Ruby may not work well with Java 6, only
|
15
|
+
Java 1.5 or earlier. If you need to use Java 6, consider "Buildr for JRuby":#jruby.
|
12
16
|
|
13
17
|
|
14
18
|
h3. Linux
|
@@ -34,9 +38,9 @@ The Debian package for @rubygems@ will not allow you to install Buildr, so you
|
|
34
38
|
need to install RubyGems from source:
|
35
39
|
|
36
40
|
{{{!sh
|
37
|
-
$
|
38
|
-
$ tar xzf rubygems-1.0.
|
39
|
-
$ cd rubygems-1.0
|
41
|
+
$ wget http://rubyforge.org/frs/download.php/38646/rubygems-1.2.0.tgz
|
42
|
+
$ tar xzf rubygems-1.2.0.tgz
|
43
|
+
$ cd rubygems-1.2.0
|
40
44
|
$ sudo ruby setup.rb
|
41
45
|
$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
|
42
46
|
}}}
|
@@ -200,7 +204,7 @@ you are using by default. If you see @(JRuby ...)@, Buildr is running on that
|
|
200
204
|
version of JRuby.
|
201
205
|
|
202
206
|
|
203
|
-
h2. Conventions
|
207
|
+
h2. Document Conventions
|
204
208
|
|
205
209
|
Lines that start with @$@ are command lines, for example:
|
206
210
|
|
@@ -320,10 +324,17 @@ method before the project or task definition.
|
|
320
324
|
So next let's talk about "projects":projects.html.
|
321
325
|
|
322
326
|
|
323
|
-
h2. More
|
327
|
+
h2. Learning More
|
328
|
+
|
329
|
+
*Ruby* It pays to pick up Ruby as a second (or first) programming language.
|
330
|
+
It's fun, powerful and slightly addictive. If you're interested in learning
|
331
|
+
Ruby the language, a good place to start is "Programming Ruby: The Pragmatic
|
332
|
+
Programmer's Guide":http://www.pragprog.com/titles/ruby/programming-ruby,
|
333
|
+
fondly known as the _Pickaxe book_.
|
324
334
|
|
325
|
-
|
326
|
-
|
335
|
+
For a quicker read (and much more humor), "Why’s (Poignant) Guide to
|
336
|
+
Ruby":http://poignantguide.net/ruby/ is available online. More resources are
|
337
|
+
listed on the "ruby-lang web site":http://www.ruby-lang.org/en/documentation/.
|
327
338
|
|
328
339
|
*Rake* Buildr is based on Rake, a Ruby build system that handles tasks and
|
329
340
|
dependencies. Check out the "Rake documentation":http://docs.rubyrake.org/ for
|
data/doc/pages/index.textile
CHANGED
@@ -30,7 +30,7 @@ write code using variables, functions and objects.
|
|
30
30
|
|
31
31
|
h2. News
|
32
32
|
|
33
|
-
Check out "all that's new in Buildr 1.3.
|
33
|
+
Check out "all that's new in Buildr 1.3.2":whats_new.html.
|
34
34
|
|
35
35
|
* Buildr 1.3 now runs on JRuby 1.1
|
36
36
|
* Support for building Scala projects
|
data/doc/pages/packaging.textile
CHANGED
@@ -508,13 +508,16 @@ Of course, you'll need to tell Buildr about the release server:
|
|
508
508
|
repositories.release_to = 'sftp://john:secret@release/usr/share/repo'
|
509
509
|
}}}
|
510
510
|
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
511
|
+
This example uses the SFTP protocol. In addition, you can use the HTTP
|
512
|
+
protocol -- Buildr supports HTTP and HTTPS, Basic Authentication and uploads
|
513
|
+
using PUT -- or point to a directory on your file system.
|
514
|
+
|
515
|
+
The URL in this example contains the release server ("release"), path to
|
516
|
+
repository ("user/share/repo") and username/password for access. The way SFTP
|
517
|
+
works, you specify the path on the release server, and give the user
|
518
|
+
permissions to create directories and files inside the repository. The file
|
519
|
+
system path is different from the path you use to download these artifacts
|
520
|
+
through an HTTP server, and starts at the root, not the user's home directory.
|
518
521
|
|
519
522
|
Of course, you'll want to specify the release server URL in the Buildfile, but
|
520
523
|
leave the username/password settings private in your local @buildr.rb@ file.
|
data/doc/pages/projects.textile
CHANGED
@@ -79,9 +79,9 @@ projects.
|
|
79
79
|
|
80
80
|
Java projects are laid out so the source files are in the @src/main/java@
|
81
81
|
directory and compile into the @target/classes@ directory. Resource files go
|
82
|
-
in the @src/main/resources@ directory,
|
83
|
-
Likewise,
|
84
|
-
|
82
|
+
in the @src/main/resources@ directory, and copied over to @target/resources@.
|
83
|
+
Likewise, tests come from @src/test/java@ and @src/test/resources@, and end
|
84
|
+
life in @target/test/classes@ and @target/test/resources@, respectively.
|
85
85
|
|
86
86
|
WAR packages pick up additional files from the aptly named @src/main/webapp@.
|
87
87
|
And most stuff, including generated source files are parked under the @target@
|
data/doc/pages/whats_new.textile
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
h1. What's New
|
2
2
|
|
3
|
+
h2. Buildr 1.3.2
|
4
|
+
|
5
|
+
* New @--prereqs@ command line argument lists all the tasks and their
|
6
|
+
dependencies. You can also filter specific tasks by following with a regular
|
7
|
+
expression, for example, @--prereqs foo@.
|
8
|
+
* Upgraded to latest release of Net::SSH, Net::SFTP, RubyForge and RubyGems.
|
9
|
+
* Upgraded to JUnit 4.4 and fixed case where abstract classes extending
|
10
|
+
TestCase would lead to tests failing.
|
11
|
+
* The target/test/class and /resources directories now come first in the
|
12
|
+
classpath, ahead of any code compiled code and resources copied over from
|
13
|
+
src/main.
|
14
|
+
* Fixed: BUILDR-90 Installing from source doesn't work with JRuby.
|
15
|
+
* Fixed: BUILDR-91 When doing a release, buildr should spawn the same version
|
16
|
+
of buildr
|
17
|
+
* Fixed: BUILDR-92 IDEA 7x: add resources directories to classpath.
|
18
|
+
* Fixed: BUILDR-95: Only download Scala test framework artifacts when required
|
19
|
+
* Fixed: BUILDR-100 Directory structure documentation needs updating.
|
20
|
+
* Fixed: Installation instructions updated for RubyGems 1.2.0.
|
21
|
+
|
3
22
|
h2. Buildr 1.3.1
|
4
23
|
|
5
24
|
* Fixed to specific Gem dependencies, so should install cleanly on Windows.
|