Changeset 260

Show
Ignore:
Timestamp:
01/29/09 14:22:04 (10 years ago)
Author:
samuraraujo
Message:
 
Location:
activerdf_sparql-1.3.6/lib/activerdf_sparql
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • activerdf_sparql-1.3.6/lib/activerdf_sparql/sparql_sesame_api.rb

    r252 r260  
    44class SparqlSesameApiAdapter < ActiveRdfAdapter 
    55  $activerdflog.info "loading SPARQL SESAME API adapter" 
     6   
    67  ConnectionPool.register_adapter(:sparql_sesame_api, self)   
    78  attr_reader :caching  , :bridge 
     
    2425    @result_format = :sparql_xml        
    2526    @repository = params[:repository]  
     27    @sesamedir =params[:dir]  
    2628     
    2729    sesame_jars='' 
     
    3133    }    
    3234    begin 
    33       Rjb::load sesame_jars , [ '-Dinfo.aduna.platform.appdata.basedir=C:\Desenvolvimento\Sesame', '-Xms256m', '-Xmx1024m' ] 
     35      vmargs = [ '-Xms256m', '-Xmx1024m' ] 
     36      vmargs << ('-Dinfo.aduna.platform.appdata.basedir=' + @sesamedir) 
     37      Rjb::load sesame_jars , vmargs 
    3438 
    3539    rescue => ex