public class PatcherProject
extends java.lang.Object
implements java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
PatcherProject(java.lang.String name,
PatcherPlugin plugin) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doesGenPatches() |
void |
generateFrom(PatcherProject patcher)
The project from witch the patches for this project will be generated.
|
void |
genPatchesFrom(java.lang.String generateFrom)
The project from witch the patches for this project will be generated.
|
java.lang.String |
getCapName() |
protected groovy.lang.Closure<java.io.File> |
getDelayedPatchDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedResourcesDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedSourcesDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedTestResourcesDir() |
protected groovy.lang.Closure<java.io.File> |
getDelayedTestSourcesDir() |
java.lang.String |
getGenPatchesFrom() |
java.lang.String |
getName() |
java.lang.String |
getPatchAfter() |
java.io.File |
getPatchDir() |
java.io.File |
getResourcesDir() |
java.io.File |
getRootDir() |
java.io.File |
getSourcesDir() |
java.io.File |
getTestResourcesDir() |
java.io.File |
getTestSourcesDir() |
boolean |
isApplyMcpPatches() |
boolean |
isGenMcpPatches() |
boolean |
isS2sKeepImports() |
void |
patchAfter(PatcherProject patcher)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
patchAfter(java.lang.String patchAfter)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
patchDir(java.lang.Object patchDir)
The directory where the patches are found, and to witch generated patches should be saved.
|
void |
resourcesDir(java.lang.Object resourcesDir)
The directory where the non-patch resources for this project are.
|
void |
rootDir(java.lang.Object rootDir)
The root directory of the project.
|
void |
setApplyMcpPatches(boolean applyMcpPatches) |
void |
setGenMcpPatches(boolean genMcpPatches) |
void |
setGenPatchesFrom(PatcherProject patcher)
The project from witch the patches for this project will be generated.
|
void |
setGenPatchesFrom(java.lang.String generateFrom)
The project from witch the patches for this project will be generated.
|
void |
setPatchAfter(PatcherProject patcher)
Sets the project after which this project will apply its patches
All patches apply on top of the clean project anyways.
|
void |
setPatchAfter(java.lang.String patchAfter)
Sets the project after which this project will apply its patches.
|
void |
setPatchDir(java.lang.Object patchDir)
The directory where the patches are found, and to whitch generated patches should be saved.
|
void |
setResourcesDir(java.lang.Object resourcesDir)
The directory where the non-patch resources for this project are.
|
void |
setRootDir(java.lang.Object rootDir)
The root directory of the project.
|
void |
setS2sKeepImports(boolean value) |
void |
setSourcesDir(java.lang.Object sourcesDir)
The directory where the non-patch sources for this project are.
|
void |
setTestResourcesDir(java.lang.Object testResourcesDir)
The directory where the non-patch resources for this project are.
|
void |
setTestSourcesDir(java.lang.Object testSourcesDir)
The directory where the test sourcess for this project are.
|
void |
sourcesDir(java.lang.Object sourcesDir)
The directory where the non-patch sources for this project are.
|
void |
testResourcesDir(java.lang.Object testResourcesDir)
The directory where the non-patch resources for this project are.
|
void |
testSourcesDir(java.lang.Object testSourcesDir)
The directory where the test sourcess for this project are.
|
protected void |
validate()
Validates the object to ensure its been configured correctly and isnt missing something.
|
protected PatcherProject(java.lang.String name,
PatcherPlugin plugin)
public java.lang.String getName()
public java.lang.String getCapName()
public java.lang.String getPatchAfter()
public void setPatchAfter(java.lang.String patchAfter)
patchAfter - project to patch afterpublic void patchAfter(java.lang.String patchAfter)
patchAfter - project to patch afterpublic void setPatchAfter(PatcherProject patcher)
patcher - project to patch afterpublic void patchAfter(PatcherProject patcher)
patcher - project to patch afterpublic java.lang.String getGenPatchesFrom()
public void setGenPatchesFrom(java.lang.String generateFrom)
generateFrom - Project to generate patches frompublic void setGenPatchesFrom(PatcherProject patcher)
patcher - Project to generate patches frompublic void genPatchesFrom(java.lang.String generateFrom)
generateFrom - Project to generate patches fromprotected boolean doesGenPatches()
public void generateFrom(PatcherProject patcher)
patcher - Project to generate patches frompublic java.io.File getRootDir()
public void setRootDir(java.lang.Object rootDir)
rootDir - root directory of the projectpublic void rootDir(java.lang.Object rootDir)
rootDir - root directory of the projectpublic java.io.File getPatchDir()
public void setPatchDir(java.lang.Object patchDir)
patchDir - patch directory of the projectpublic void patchDir(java.lang.Object patchDir)
patchDir - patch directory of the projectpublic java.io.File getSourcesDir()
public void setSourcesDir(java.lang.Object sourcesDir)
sourcesDir - non-MC source directory of the projectpublic void sourcesDir(java.lang.Object sourcesDir)
sourcesDir - non-MC source directory of the projectpublic java.io.File getResourcesDir()
public void setResourcesDir(java.lang.Object resourcesDir)
resourcesDir - non-MC resource directory of the projectpublic void resourcesDir(java.lang.Object resourcesDir)
resourcesDir - non-MC resource directory of the projectpublic java.io.File getTestSourcesDir()
public void setTestSourcesDir(java.lang.Object testSourcesDir)
testSourcesDir - test source directory of the projectpublic void testSourcesDir(java.lang.Object testSourcesDir)
testSourcesDir - test source directory of the projectpublic java.io.File getTestResourcesDir()
public void setTestResourcesDir(java.lang.Object testResourcesDir)
testResourcesDir - test resource directory of the projectpublic void testResourcesDir(java.lang.Object testResourcesDir)
testResourcesDir - test resource directory of the projectprotected void validate()
public boolean isGenMcpPatches()
public void setGenMcpPatches(boolean genMcpPatches)
public boolean isApplyMcpPatches()
public void setApplyMcpPatches(boolean applyMcpPatches)
public boolean isS2sKeepImports()
public void setS2sKeepImports(boolean value)
protected groovy.lang.Closure<java.io.File> getDelayedSourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedResourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedTestSourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedTestResourcesDir()
protected groovy.lang.Closure<java.io.File> getDelayedPatchDir()