Merge remote-tracking branch 'origin/GT-2897_adamopolous_automated_install_script'

This commit is contained in:
Ryan Kurtz 2019-06-27 12:14:57 -04:00
commit dd3a4180fc
3 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ or manually by downloading the required dependencies. Choose one of the two fol
The flat directory-style repository can be setup automatically by running a simple Gradle script. The flat directory-style repository can be setup automatically by running a simple Gradle script.
Navigate to `~/git/ghidra` and run the following: Navigate to `~/git/ghidra` and run the following:
``` ```
gradle --init-script gradle/fetchDependencies.gradle init gradle --init-script gradle/support/fetchDependencies.gradle init
``` ```
The Gradle task to be executed, in this case _init_, is unimportant. The point is to have Gradle execute The Gradle task to be executed, in this case _init_, is unimportant. The point is to have Gradle execute
the `fetchDependencies.gradle` script. If it ran correctly you will have a new `~/git/ghidra/flatRepo/` the `fetchDependencies.gradle` script. If it ran correctly you will have a new `~/git/ghidra/flatRepo/`

View file

@ -4,7 +4,6 @@ distributableGPLModule.gradle||GHIDRA||||END|
distributableGhidraExtension.gradle||GHIDRA||||END| distributableGhidraExtension.gradle||GHIDRA||||END|
distributableGhidraModule.gradle||GHIDRA||||END| distributableGhidraModule.gradle||GHIDRA||||END|
externalGhidraExtension.gradle||GHIDRA||||END| externalGhidraExtension.gradle||GHIDRA||||END|
fetchDependencies.gradle||GHIDRA||||END|
helpProject.gradle||GHIDRA||||END| helpProject.gradle||GHIDRA||||END|
jacocoProject.gradle||GHIDRA||||END| jacocoProject.gradle||GHIDRA||||END|
javaProject.gradle||GHIDRA||||END| javaProject.gradle||GHIDRA||||END|
@ -21,6 +20,7 @@ root/usage.gradle||GHIDRA||||END|
support/distributionCommon.gradle||GHIDRA||||END| support/distributionCommon.gradle||GHIDRA||||END|
support/eclipseLauncher.gradle||GHIDRA||||END| support/eclipseLauncher.gradle||GHIDRA||||END|
support/extensionCommon.gradle||GHIDRA||||END| support/extensionCommon.gradle||GHIDRA||||END|
support/fetchDependencies.gradle||GHIDRA||||END|
support/ip.gradle||GHIDRA||||END| support/ip.gradle||GHIDRA||||END|
support/jacoco.excludes.src.txt||GHIDRA||||END| support/jacoco.excludes.src.txt||GHIDRA||||END|
support/loadApplicationProperties.gradle||GHIDRA||||END| support/loadApplicationProperties.gradle||GHIDRA||||END|

View file

@ -26,7 +26,7 @@
* usage: from the command line in the main ghidra repository * * usage: from the command line in the main ghidra repository *
* directory, run the following: * * directory, run the following: *
* * * *
* gradle --init-script gradle/fetchDependencies.gradle init * * gradle --init-script gradle/support/fetchDependencies.gradle init *
* * * *
* Note: When running the script, files will only be downloaded if * * Note: When running the script, files will only be downloaded if *
* necessary (eg: they are not already in the build/downloads/ * * necessary (eg: they are not already in the build/downloads/ *
@ -41,7 +41,7 @@ import org.apache.commons.io.*;
import org.apache.commons.io.filefilter.*; import org.apache.commons.io.filefilter.*;
ext.HOME_DIR = System.getProperty('user.home') ext.HOME_DIR = System.getProperty('user.home')
ext.REPO_DIR = ((Script)this).buildscript.getSourceFile().getParentFile().getParentFile() ext.REPO_DIR = ((Script)this).buildscript.getSourceFile().getParentFile().getParentFile().getParentFile()
ext.FLAT_REPO_DIR = new File(REPO_DIR, "flatRepo") ext.FLAT_REPO_DIR = new File(REPO_DIR, "flatRepo")
ext.DOWNLOADS_DIR = new File(REPO_DIR, "build/downloads") ext.DOWNLOADS_DIR = new File(REPO_DIR, "build/downloads")