mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Old style Eclipse workspace generation via ./gradlew eclipse
This commit is contained in:
parent
19c8bf48cd
commit
fcaa46ed69
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,3 +1,9 @@
|
|||||||
.gradle/
|
/.gradle/
|
||||||
build/
|
/build/
|
||||||
|
/instance/
|
||||||
|
/eclipse/
|
||||||
|
/.classpath
|
||||||
|
/.gradletasknamecache
|
||||||
|
/.project
|
||||||
|
/.settings/org.eclipse.jdt.core.prefs
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
@ -0,0 +1,4 @@
|
|||||||
|
#Sun Jun 05 18:58:07 CEST 2011
|
||||||
|
version=1
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
refresh.enabled=true
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
#Sun Jun 05 19:03:53 CEST 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.debug.ui.UseContextualLaunch=false
|
||||||
|
Console.highWaterMark=88000
|
||||||
|
org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<launchPerspectives/>\r\n
|
||||||
|
org.eclipse.debug.ui.user_view_bindings=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<viewBindings>\r\n<view id\="org.eclipse.ui.console.ConsoleView">\r\n<perspective id\="org.eclipse.jdt.ui.JavaPerspective" userAction\="opened"/>\r\n</view>\r\n</viewBindings>\r\n
|
||||||
|
StringVariablePreferencePage=130,107,107,86,
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
#Sun Jun 05 18:58:07 CEST 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.epp.usagedata.gathering.enabled=false
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
#Sun Sep 18 16:44:39 NZST 2011
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.7
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.7
|
||||||
@ -0,0 +1,4 @@
|
|||||||
|
#Sun Jun 05 18:58:05 CEST 2011
|
||||||
|
spacesForTabs=true
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
overviewRuler_migration=migrated_3.1
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
#Sun Jun 05 18:58:07 CEST 2011
|
||||||
|
IMPORT_FILES_AND_FOLDERS_MODE=prompt
|
||||||
|
IMPORT_FILES_AND_FOLDERS_VIRTUAL_FOLDER_MODE=prompt
|
||||||
|
SAVE_ALL_BEFORE_BUILD=true
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
tipsAndTricks=true
|
||||||
|
platformState=1287081747687
|
||||||
|
quickStart=false
|
||||||
|
PROBLEMS_FILTERS_MIGRATE=true
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
#Sun Jun 05 18:50:08 CEST 2011
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
showIntro=false
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/Minecraft"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="4"/>
|
||||||
|
</listAttribute>
|
||||||
|
<!-- <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||||
|
<listEntry value="org.eclipse.eclemma.ui.launchGroup.coverage"/>
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||||
|
</listAttribute> -->
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStart"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Minecraft"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx4096M -Xms1024M"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
|
||||||
|
</launchConfiguration>
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/Minecraft"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="4"/>
|
||||||
|
</listAttribute>
|
||||||
|
<!-- <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||||
|
<listEntry value="org.eclipse.eclemma.ui.launchGroup.coverage"/>
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||||
|
</listAttribute> -->
|
||||||
|
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
||||||
|
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="Minecraft" path="1" type="4"/> "/>
|
||||||
|
@@eclipseRuntimeClasspath@@</listAttribute>
|
||||||
|
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStart"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Minecraft"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx4096M -Xms1024M"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
|
||||||
|
</launchConfiguration>
|
||||||
|
|
||||||
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/Minecraft/src/net/minecraft/server/MinecraftServer.java"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="1"/>
|
||||||
|
</listAttribute>
|
||||||
|
<!-- <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||||
|
<listEntry value="org.eclipse.eclemma.ui.launchGroup.coverage"/>
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||||
|
</listAttribute> -->
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStartServer"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Minecraft"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx4096M -Xms1024M"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
|
||||||
|
</launchConfiguration>
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||||
|
<listEntry value="/Minecraft/src/net/minecraft/server/MinecraftServer.java"/>
|
||||||
|
</listAttribute>
|
||||||
|
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||||
|
<listEntry value="1"/>
|
||||||
|
</listAttribute>
|
||||||
|
<!-- <listAttribute key="org.eclipse.debug.ui.favoriteGroups">
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
|
||||||
|
<listEntry value="org.eclipse.eclemma.ui.launchGroup.coverage"/>
|
||||||
|
<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
|
||||||
|
</listAttribute> -->
|
||||||
|
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
|
||||||
|
<listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry containerPath="org.eclipse.jdt.launching.JRE_CONTAINER" javaProject="Minecraft" path="1" type="4"/> "/>
|
||||||
|
@@eclipseRuntimeClasspath@@</listAttribute>
|
||||||
|
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="GradleStartServer"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Minecraft"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xmx4096M -Xms1024M"/>
|
||||||
|
<stringAttribute key="org.eclipse.jdt.launching.WORKING_DIRECTORY" value="${workspace_loc}"/>
|
||||||
|
</launchConfiguration>
|
||||||
|
|
||||||
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchHistory>
|
||||||
|
<launchGroup id="org.eclipse.ui.externaltools.launchGroup">
|
||||||
|
<mruHistory/>
|
||||||
|
<favorites/>
|
||||||
|
</launchGroup>
|
||||||
|
<launchGroup id="org.eclipse.debug.ui.launchGroup.profile">
|
||||||
|
<mruHistory/>
|
||||||
|
<favorites/>
|
||||||
|
</launchGroup>
|
||||||
|
<launchGroup id="org.eclipse.debug.ui.launchGroup.debug">
|
||||||
|
<mruHistory>
|
||||||
|
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="Client"/> "/>
|
||||||
|
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="Server"/> "/>
|
||||||
|
</mruHistory>
|
||||||
|
<favorites/>
|
||||||
|
</launchGroup>
|
||||||
|
<launchGroup id="org.eclipse.debug.ui.launchGroup.run">
|
||||||
|
<mruHistory>
|
||||||
|
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="Client"/> "/>
|
||||||
|
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="Server"/> "/>
|
||||||
|
</mruHistory>
|
||||||
|
<favorites/>
|
||||||
|
</launchGroup>
|
||||||
|
</launchHistory>
|
||||||
61
build.gradle
61
build.gradle
@ -18,6 +18,67 @@ buildscript {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
allprojects {
|
||||||
|
tasks.withType(JavaCompile) {
|
||||||
|
options.compilerArgs << "-Xlint:deprecation" << "-Xlint:unchecked"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
apply plugin: 'eclipse'
|
||||||
|
eclipse {
|
||||||
|
classpath {
|
||||||
|
downloadJavadoc = true
|
||||||
|
downloadSources = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
def eclipseRuntimeClasspath = ""
|
||||||
|
def eclipseRuntimeClasspathTemplate = "<listEntry value=\"<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry externalArchive="@@PATH@@" path="3" type="2"/> \"/>\n"
|
||||||
|
|
||||||
|
task eclipseForgeWorkspace(type: Copy) {
|
||||||
|
doFirst {
|
||||||
|
sourceSets.main.runtimeClasspath.collect {
|
||||||
|
eclipseRuntimeClasspath += eclipseRuntimeClasspathTemplate.replaceAll('@@PATH@@', it.toString())
|
||||||
|
""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
from(".meta/eclipse/.metadata") {
|
||||||
|
include '**/*.template'
|
||||||
|
rename { it.replace '.template', '' }
|
||||||
|
filter { it.replaceAll('@@eclipseRuntimeClasspath@@', eclipseRuntimeClasspath) }
|
||||||
|
//rename '(.*).template', '$1'
|
||||||
|
}
|
||||||
|
from(".meta/eclipse/.metadata") {
|
||||||
|
exclude '**/*.launch'
|
||||||
|
}
|
||||||
|
into "eclipse/.metadata"
|
||||||
|
}
|
||||||
|
|
||||||
|
import org.apache.tools.ant.taskdefs.condition.Os
|
||||||
|
task eclipseForgeProject {
|
||||||
|
doLast {
|
||||||
|
if(!(new File("eclipse/Minecraft")).exists()) {
|
||||||
|
if(!Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
|
ant.symlink(resource: "../", link: "eclipse/Minecraft")
|
||||||
|
} else {
|
||||||
|
println("WINDOWS: Before loading this workspace with Eclipse, manually run this in an Elevated/Admin command prompt:")
|
||||||
|
println("mklink /D " + (new File("").absolutePath) + "/eclipse/Minecraft " + (new File("").absolutePath))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
eclipseForgeProject.dependsOn(eclipseForgeWorkspace)
|
||||||
|
|
||||||
|
tasks.eclipse.dependsOn(eclipseForgeProject)
|
||||||
|
|
||||||
|
apply plugin: 'idea'
|
||||||
|
idea {
|
||||||
|
module {
|
||||||
|
downloadJavadoc = true
|
||||||
|
downloadSources = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
apply plugin: 'forge'
|
apply plugin: 'forge'
|
||||||
|
|
||||||
version = "1.0.27"
|
version = "1.0.27"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user