File tree Expand file tree Collapse file tree 4 files changed +22
-27
lines changed
plugin/src/main/kotlin/com/undefinedcreations/echo Expand file tree Collapse file tree 4 files changed +22
-27
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,14 @@ object BuildToolsManager {
19
19
private val buildToolsVersionFile = File (echoFolder, " buildToolsVersion.json" )
20
20
private val buildToolsJAR = File (echoFolder, " BuildTools.jar" )
21
21
22
+ /* *
23
+ * Create the cache folder
24
+ */
22
25
fun createUndefinedFolder () { echoFolder.mkdirs() }
23
26
27
+ /* *
28
+ * This method will check the local build tools version and update if needed
29
+ */
24
30
fun checkBuildToolsAndInstall () {
25
31
val lastVersion = getLastBuildToolsVersionInfo()
26
32
if (getLocalBuildToolsVersion() < lastVersion.version) {
@@ -31,7 +37,15 @@ object BuildToolsManager {
31
37
}
32
38
}
33
39
34
-
40
+ /* *
41
+ * This method will run build tools at a set minecraft version
42
+ *
43
+ * @param version the minecraft version that needs to be build
44
+ * @param remapped if it should build the mojang mappings
45
+ * @param generateSource if it should build the sources
46
+ * @param generateDocs if it should build the docs with the jar. This is only the craftbukkit docs
47
+ * @param printDebug if it should print out the jar debug info
48
+ */
35
49
@Suppress(" NAME_SHADOWING" )
36
50
fun buildBuildTools (
37
51
version : String ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ import org.gradle.api.artifacts.dsl.DependencyHandler
6
6
abstract class RemapDependenciesExtension (
7
7
private val dependencies : DependencyHandler
8
8
) {
9
+ /* *
10
+ * This method will build tools of the select minecraft version with the correct options.
11
+ * Next it will add the build tools that was build as a dependency.
12
+ */
9
13
operator fun invoke (
10
14
minecraftVersion : String ,
11
15
mojangMapping : Boolean = true,
Original file line number Diff line number Diff line change 1
1
package com.undefinedcreations.echo.exceptions
2
2
3
+ /* *
4
+ * This exception will be throw then the system doesn't have the correct version of java installed.
5
+ */
3
6
class UnsupportedJavaVersion (version : Int ): Exception(" Can't find the correct version for build tools ($version )" ) {
4
7
}
You can’t perform that action at this time.
0 commit comments