torquespec 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ module TorqueSpec
6
6
  end
7
7
 
8
8
  def start_command
9
- "#{ENV['JAVA_HOME']}/bin/java -cp #{TorqueSpec.jboss_home}/bin/run.jar #{TorqueSpec.jvm_args} -Djava.endorsed.dirs=#{TorqueSpec.jboss_home}/lib/endorsed org.jboss.Main"
9
+ "#{TorqueSpec.java_home}/bin/java -cp #{TorqueSpec.jboss_home}/bin/run.jar #{TorqueSpec.jvm_args} -Djava.endorsed.dirs=#{TorqueSpec.jboss_home}/lib/endorsed org.jboss.Main"
10
10
  end
11
11
 
12
12
  def shutdown
@@ -10,7 +10,7 @@ module TorqueSpec
10
10
  end
11
11
 
12
12
  def start_command
13
- "#{ENV['JAVA_HOME']}/bin/java #{TorqueSpec.jvm_args} -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.boot.log.file=#{TorqueSpec.jboss_home}/standalone/log/boot.log -Dlogging.configuration=file:#{TorqueSpec.jboss_home}/standalone/configuration/logging.properties -jar #{TorqueSpec.jboss_home}/jboss-modules.jar -mp #{TorqueSpec.jboss_home}/modules -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=#{TorqueSpec.jboss_home}"
13
+ "#{TorqueSpec.java_home}/bin/java #{TorqueSpec.jvm_args} -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.boot.log.file=#{TorqueSpec.jboss_home}/standalone/log/boot.log -Dlogging.configuration=file:#{TorqueSpec.jboss_home}/standalone/configuration/logging.properties -jar #{TorqueSpec.jboss_home}/jboss-modules.jar -mp #{TorqueSpec.jboss_home}/modules -logmodule org.jboss.logmanager -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=#{TorqueSpec.jboss_home}"
14
14
  end
15
15
 
16
16
  def shutdown
@@ -36,6 +36,9 @@ module TorqueSpec
36
36
  require 'java'
37
37
  File.expand_path(java.lang.System.getProperty('jruby.home'))
38
38
  end
39
+ def java_home
40
+ ENV['JAVA_HOME'] || File.expand_path(java.lang.System.getProperty('java.home'))
41
+ end
39
42
  def jboss_home_from_server_gem
40
43
  require 'torquebox-server'
41
44
  TorqueBox::Server.jboss_home
@@ -1,3 +1,3 @@
1
1
  module TorqueSpec
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
@@ -31,6 +31,7 @@ describe "war deployment" do
31
31
  deploy File.join( File.dirname(__FILE__), "../apps/node-info.war" )
32
32
 
33
33
  it "should greet the world" do
34
+ pending("until jboss fixes war deployment")
34
35
  response = open("http://localhost:8080/node-info") {|f| f.read}
35
36
  response.should include( 'JBoss-Cloud node info' )
36
37
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torquespec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jim Crossley
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-29 00:00:00 -04:00
19
+ date: 2011-09-14 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency