buildr 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +24 -1
- data/addon/buildr/bnd.rb +7 -5
- data/addon/buildr/custom_pom.rb +3 -272
- data/addon/buildr/git_auto_version.rb +3 -1
- data/addon/buildr/gwt.rb +66 -7
- data/addon/buildr/protobuf.rb +5 -8
- data/buildr.gemspec +2 -3
- data/doc/contributing.textile +3 -20
- data/doc/download.textile +6 -6
- data/doc/index.textile +7 -0
- data/doc/settings_profiles.textile +1 -1
- data/lib/buildr.rb +1 -1
- data/lib/buildr/core/build.rb +1 -1
- data/lib/buildr/core/filter.rb +1 -1
- data/lib/buildr/core/project.rb +1 -1
- data/lib/buildr/core/transports.rb +1 -1
- data/lib/buildr/ide/idea.rb +18 -3
- data/lib/buildr/java/custom_pom.rb +265 -0
- data/lib/buildr/java/ecj.rb +2 -2
- data/lib/buildr/java/jruby.rb +3 -3
- data/lib/buildr/java/packaging.rb +6 -4
- data/lib/buildr/java/rjb.rb +5 -5
- data/lib/buildr/packaging/archive.rb +3 -3
- data/lib/buildr/packaging/artifact.rb +30 -24
- data/lib/buildr/packaging/package.rb +2 -1
- data/lib/buildr/packaging/zip.rb +2 -2
- data/lib/buildr/scala/bdd.rb +21 -21
- data/lib/buildr/scala/compiler.rb +21 -18
- data/lib/buildr/scala/tests.rb +1 -1
- data/lib/buildr/version.rb +1 -1
- data/rakelib/release.rake +5 -3
- data/rakelib/stage.rake +1 -1
- data/spec/addon/jaxb_xjc_spec.rb +0 -1
- data/spec/core/application_spec.rb +1 -1
- data/spec/core/common_spec.rb +1 -1
- data/spec/core/project_spec.rb +3 -3
- data/spec/core/test_spec.rb +1 -1
- data/spec/core/transport_spec.rb +10 -2
- data/spec/{addon → java}/custom_pom_spec.rb +3 -16
- data/spec/java/ecj_spec.rb +2 -2
- data/spec/java/java_spec.rb +1 -1
- data/spec/java/tests_spec.rb +1 -1
- data/spec/packaging/artifact_spec.rb +23 -15
- data/spec/packaging/packaging_spec.rb +10 -2
- data/spec/scala/bdd_spec.rb +0 -1
- data/spec/scala/compiler_spec.rb +4 -4
- data/spec/scala/doc_spec.rb +0 -1
- data/spec/scala/tests_spec.rb +2 -3
- metadata +18 -36
- data/lib/buildr/scala/org/apache/buildr/Specs2Runner.java +0 -37
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.class +0 -0
- data/lib/buildr/scala/org/apache/buildr/SpecsSingletonRunner.java +0 -57
- data/lib/buildr/scala/org/apache/buildr/ZincRunner.class +0 -0
- data/lib/buildr/scala/org/apache/buildr/ZincRunner.java +0 -37
@@ -1,37 +0,0 @@
|
|
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.
|
15
|
-
*/
|
16
|
-
|
17
|
-
package org.apache.buildr;
|
18
|
-
|
19
|
-
import java.lang.reflect.Field;
|
20
|
-
import java.lang.reflect.Method;
|
21
|
-
|
22
|
-
public class Specs2Runner {
|
23
|
-
|
24
|
-
public static void main(String[] args) {
|
25
|
-
try {
|
26
|
-
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
27
|
-
Class clazz = loader.loadClass("org.specs2.runner.ClassRunner$");
|
28
|
-
Field singleton = clazz.getField("MODULE$");
|
29
|
-
Object instance = singleton.get(null);
|
30
|
-
Method main = clazz.getMethod("run", String[].class);
|
31
|
-
main.invoke(instance, new Object[] { args });
|
32
|
-
} catch (Exception e) {
|
33
|
-
throw new RuntimeException(e);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
}
|
Binary file
|
@@ -1,57 +0,0 @@
|
|
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.
|
15
|
-
*/
|
16
|
-
|
17
|
-
package org.apache.buildr;
|
18
|
-
|
19
|
-
import java.lang.reflect.Field;
|
20
|
-
import java.lang.reflect.Method;
|
21
|
-
import java.net.URL;
|
22
|
-
import java.net.URLClassLoader;
|
23
|
-
import java.io.File;
|
24
|
-
|
25
|
-
/**
|
26
|
-
* @author Daniel Spiewak
|
27
|
-
*/
|
28
|
-
public class SpecsSingletonRunner {
|
29
|
-
// Incompatible with JVM 1.4 target
|
30
|
-
// @throws(classOf[Throwable])
|
31
|
-
public static void main(String[] args) {
|
32
|
-
boolean colors = (args.length > 1 && args[1].equals("-c"));
|
33
|
-
String spec = colors ? args[2] : args[1];
|
34
|
-
|
35
|
-
run(args[0], colors, spec);
|
36
|
-
}
|
37
|
-
|
38
|
-
// Incompatible with JVM 1.4 target
|
39
|
-
// @throws(classOf[Throwable])
|
40
|
-
static void run(String path, boolean colors, String spec) {
|
41
|
-
try {
|
42
|
-
File parent = new File(path);
|
43
|
-
URL specURL = new File(parent, spec.replace('.', '/') + ".class").toURL();
|
44
|
-
URLClassLoader loader = new URLClassLoader(new URL[] { specURL }, Thread.currentThread().getContextClassLoader());
|
45
|
-
|
46
|
-
Class clazz = loader.loadClass(spec);
|
47
|
-
Object instance = clazz.getField("MODULE$").get(null);
|
48
|
-
|
49
|
-
Method main = clazz.getMethod("main", String[].class);
|
50
|
-
|
51
|
-
String[] args = colors ? new String[] { "-c" } : new String[] {};
|
52
|
-
main.invoke(instance, new Object[] { args });
|
53
|
-
} catch (Exception e) {
|
54
|
-
throw new RuntimeException(e);
|
55
|
-
}
|
56
|
-
}
|
57
|
-
}
|
Binary file
|
@@ -1,37 +0,0 @@
|
|
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.
|
15
|
-
*/
|
16
|
-
|
17
|
-
package org.apache.buildr;
|
18
|
-
|
19
|
-
import java.lang.reflect.Field;
|
20
|
-
import java.lang.reflect.Method;
|
21
|
-
|
22
|
-
public class ZincRunner {
|
23
|
-
|
24
|
-
public static void main(String[] args) {
|
25
|
-
try {
|
26
|
-
ClassLoader loader = Thread.currentThread().getContextClassLoader();
|
27
|
-
Class clazz = loader.loadClass("com.typesafe.zinc.Main$");
|
28
|
-
Field singleton = clazz.getField("MODULE$");
|
29
|
-
Object instance = singleton.get(null);
|
30
|
-
Method main = clazz.getMethod("main", String[].class);
|
31
|
-
main.invoke(instance, new Object[] { args });
|
32
|
-
} catch (Exception e) {
|
33
|
-
throw new RuntimeException(e);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
|
37
|
-
}
|