Sha256: 24d1d18142e09ea036f19d7df52f2d634d0e101ce7363c148fa97ac8b2c19913
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
module Asposetasksjava module CreateEmptyProject def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate project object project = Rjb::import('com.aspose.tasks.Project').new project_stream = Rjb::import('java.io.FileOutputStream').new(data_dir + "Project1.xml") project.save(project_stream, Rjb::import('com.aspose.tasks.SaveFileFormat').XML) project_stream.close() # Display Status puts "Created project Successfully." end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Projects/createemptyproject.rb |