You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by to...@apache.org on 2016/08/15 06:10:42 UTC
[5/7] buildr git commit: Use JarSigner to test the presence of
tools.jar on the classpath
Use JarSigner to test the presence of tools.jar on the classpath
Project: http://git-wip-us.apache.org/repos/asf/buildr/repo
Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/c18b8555
Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/c18b8555
Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/c18b8555
Branch: refs/heads/master
Commit: c18b85559d7f86f2bcec53960905439d14b20617
Parents: eb7b6ba
Author: Antoine Toulme <an...@lunar-ocean.com>
Authored: Sun Aug 14 21:59:54 2016 -0700
Committer: Antoine Toulme <an...@lunar-ocean.com>
Committed: Sun Aug 14 21:59:54 2016 -0700
----------------------------------------------------------------------
spec/java/compiler_spec.rb | 8 ++++----
spec/java/ecj_spec.rb | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/buildr/blob/c18b8555/spec/java/compiler_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/compiler_spec.rb b/spec/java/compiler_spec.rb
index 305ea6f..385e4fa 100644
--- a/spec/java/compiler_spec.rb
+++ b/spec/java/compiler_spec.rb
@@ -99,12 +99,12 @@ describe 'javac compiler' do
end
it 'should include tools.jar dependency' do
- write 'src/main/java/UseApt.java', <<-JAVA
- import com.sun.mirror.apt.AnnotationProcessor;
- public class UseApt { }
+ write 'src/main/java/UseJarSigner.java', <<-JAVA
+ import sun.security.tools.jarsigner.Main;
+ public class UseJarSigner { }
JAVA
define('foo').compile.invoke
- file('target/classes/UseApt.class').should exist
+ file('target/classes/UseJarSigner.class').should exist
end
it 'should ignore package-info.java files in up-to-date check' do
http://git-wip-us.apache.org/repos/asf/buildr/blob/c18b8555/spec/java/ecj_spec.rb
----------------------------------------------------------------------
diff --git a/spec/java/ecj_spec.rb b/spec/java/ecj_spec.rb
index 3f444b1..a1ca98c 100644
--- a/spec/java/ecj_spec.rb
+++ b/spec/java/ecj_spec.rb
@@ -78,12 +78,12 @@ describe 'ecj compiler' do
it 'should include tools.jar dependency' do
repositories.remote << "http://repo1.maven.org/maven2/"
- write 'src/main/java/UseApt.java', <<-JAVA
- import com.sun.mirror.apt.AnnotationProcessor;
- public class UseApt { }
+ write 'src/main/java/UseJarSigner.java', <<-JAVA
+ import sun.security.tools.jarsigner.Main;
+ public class UseJarSigner { }
JAVA
define('foo').compile.using(:ecj).invoke
- file('target/classes/UseApt.class').should exist
+ file('target/classes/UseJarSigner.class').should exist
end
it 'should ignore package-info.java files in up-to-date check' do