Skip to content

Commit

Permalink
Merge pull request #20 from Nuix/move_to_gradle
Browse files Browse the repository at this point in the history
Move to gradle
  • Loading branch information
JuicyDragon authored Aug 10, 2023
2 parents dbb48e2 + ffb251d commit 6eef654
Show file tree
Hide file tree
Showing 460 changed files with 49,870 additions and 46,598 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ buildNumber.properties
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored)
!/.mvn/wrapper/maven-wrapper.jar
/Java/*.jardesc

# We do not want to version test run output
TestOutput
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
# dialog in your script
# ==========================================================================

case_directory ||= "FALLBACK_VALUE"

# Open a test case, change this to a case on your system
$current_case = $utilities.getCaseFactory.open('D:\cases\FakeData_8.0',{:migrate=>true})
$current_case = $utilities.getCaseFactory.create(case_directory,{})

# Tell the library what the current case is
NuixConnection.setCurrentCase($current_case)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

# Create an instance of the tabbed dialog
dialog = TabbedCustomDialog.new
dialog.enableStickySettings("D:\\temp\\TestStickSettings.json")

require 'securerandom'

Expand Down
11 changes: 6 additions & 5 deletions Examples/IngestionProgressDialog.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Bootstrap the library
require_relative "NxBootstrap.rb"

java_import "com.nuix.nx.dialogs.ProcessingStatusDialog"
# Following variables are expected to be set elsewhere
test_case_location ||= "FALLBACK_VALUE"
test_evidence_location ||= "FALLBACK_VALUE"

test_case_location = "D:\\cases\\FakeData_8.0"
test_evidence_location = "D:\\natives\\FakeData"
java_import "com.nuix.nx.dialogs.ProcessingStatusDialog"

$current_case = $utilities.getCaseFactory.open(test_case_location)
$current_case = $utilities.getCaseFactory.create(test_case_location,{})

processor = $current_case.createProcessor

Expand Down Expand Up @@ -61,11 +62,11 @@
# should set them explicitly
processor.setParallelProcessingSettings({
"workerCount" => 4,
"workerTemp" => "D:\\WorkerTemp",
})

processing_status_dialog = ProcessingStatusDialog.new
# This will begin processing and display the processing status dialog
puts "Handing off to processing status dialog..."
processing_status_dialog.displayAndBeginProcessing(processor)

$current_case.close
6 changes: 3 additions & 3 deletions Examples/ProgressDialogProcessingAbortExample.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
require_relative "NxBootstrap.rb"

# Directory of an existing Nuix case which will be opened by the script
case_directory = "C:\\@Nuix\\Cases\\Ziggy"
case_directory ||= "C:\\Cases\\Ziggy"

# Source data directory or file path
source_data_path = "C:\\@NUIX\\Natives\\Fake Invoices\\10 Images"
source_data_path ||= "C:\\Natives\\Fake Invoices"

# Name of the evidence container we will process data under
evidence_name = "Data #{Time.now.to_i}" # Just use name based on current time
Expand Down Expand Up @@ -72,7 +72,7 @@
pd.setAbortButtonVisible(false)

# Open the case we will be working with
$current_case = $utilities.getCaseFactory.open(case_directory)
$current_case = $utilities.getCaseFactory.create(case_directory,{})

# Create our processor
processor = $current_case.createProcessor
Expand Down
4 changes: 3 additions & 1 deletion Examples/ScrollableTabbedCustomDialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
# dialog in your script
# ==========================================================================

case_directory ||= "FALLBACK_VALUE"

# Open a test case, change this to a case on your system
$current_case = $utilities.getCaseFactory.open('D:\Cases\FakeData_8.0')
$current_case = $utilities.getCaseFactory.create(case_directory,{})

# Tell the library what the current case is
NuixConnection.setCurrentCase($current_case)
Expand Down
17 changes: 0 additions & 17 deletions Examples/SourceItemVisitor.rb

This file was deleted.

4 changes: 3 additions & 1 deletion Examples/TabbedCustomDialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
# dialog in your script
# ==========================================================================

case_directory ||= "FALLBACK_VALUE"

# Open a test case, change this to a case on your system
$current_case = $utilities.getCaseFactory.open('D:\cases\FakeData_8.0',{:migrate=>true})
$current_case = $utilities.getCaseFactory.create(case_directory,{})

# Tell the library what the current case is
NuixConnection.setCurrentCase($current_case)
Expand Down
40 changes: 21 additions & 19 deletions Examples/Toasts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,24 @@
# Wait a while so the previous toast goes away
sleep 10

###
# This is a trick to get the toast to display in the bottom right corner of the Nuix Window. It causes a brief
# flicker in the UI. It creates a new tab, gets screen coordinates, then closes that new tab.
java_import "javax.swing.JPanel"
tempView = JPanel.new
window.addTab "Temp", tempView
screen_location = tempView.location_on_screen
screen_size = tempView.size
tempView.parent.parent.close_selected_tab

bottom = screen_location.y + screen_size.height
right = screen_location.x + screen_size.width

toast_size = Dimension.new 500, 80
toast_location = Point.new right - toast_size.width, bottom - toast_size.height
toast_bounds = Rectangle.new toast_location, toast_size

toast.show_toast "Example Toast\n" +
"This toast should be in the bottom right of th Workstation.", toast_bounds
if !window.nil?
###
# This is a trick to get the toast to display in the bottom right corner of the Nuix Window. It causes a brief
# flicker in the UI. It creates a new tab, gets screen coordinates, then closes that new tab.
java_import "javax.swing.JPanel"
tempView = JPanel.new
window.addTab "Temp", tempView
screen_location = tempView.location_on_screen
screen_size = tempView.size
tempView.parent.parent.close_selected_tab

bottom = screen_location.y + screen_size.height
right = screen_location.x + screen_size.width

toast_size = Dimension.new 500, 80
toast_location = Point.new right - toast_size.width, bottom - toast_size.height
toast_bounds = Rectangle.new toast_location, toast_size

toast.show_toast "Example Toast\n" +
"This toast should be in the bottom right of th Workstation.", toast_bounds
end
Loading

0 comments on commit 6eef654

Please sign in to comment.