forked from StarOpenSource/Engine
Rename BuildInfo to EngineInformation
This commit is contained in:
parent
fab03dd546
commit
b4eabae312
11 changed files with 25 additions and 25 deletions
|
@ -35,20 +35,20 @@ import java.util.Properties;
|
|||
*/
|
||||
@SuppressWarnings({ "unused", "JavadocDeclaration", "JavadocBlankLines" })
|
||||
@Getter
|
||||
public class BuildInfo {
|
||||
public class EngineInformation {
|
||||
/**
|
||||
* Instance.
|
||||
*
|
||||
* @since 1-alpha0
|
||||
*
|
||||
* -- GETTER --
|
||||
* Returns the {@link BuildInfo} instance.
|
||||
* Returns the {@link EngineInformation} instance.
|
||||
*
|
||||
* @return {@link BuildInfo} instance
|
||||
* @return {@link EngineInformation} instance
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
@Getter
|
||||
private static BuildInfo instance;
|
||||
private static EngineInformation instance;
|
||||
|
||||
/**
|
||||
* Provides the engine's version.
|
||||
|
@ -175,7 +175,7 @@ public class BuildInfo {
|
|||
*
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
public BuildInfo() {
|
||||
public EngineInformation() {
|
||||
LoggerInstance logger = new LoggerInstance(new LogIssuer(getClass(), CodePart.ENGINE));
|
||||
|
||||
// Only allow one instance
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineDependencyJansi implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJansi());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJansi());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineDependencyJetbrainsAnnotations implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyJetbrainsAnnotations());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyJetbrainsAnnotations());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineDependencyLombok implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getDependencyLombok());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getDependencyLombok());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EnginePluginLombok implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginLombok());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginLombok());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EnginePluginShadow implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getPluginShadow());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getPluginShadow());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineVersionFork implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningFork());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningFork());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineVersionType implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", BuildInfo.getInstance().getVersioningType().name().toLowerCase());
|
||||
return text.replace("%" + getName() + "%", EngineInformation.getInstance().getVersioningType().name().toLowerCase());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineVersionTyperelease implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningTyperelease()));
|
||||
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningTyperelease()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package de.staropensource.sosengine.base.data.placeholders;
|
||||
|
||||
import de.staropensource.sosengine.base.classes.Placeholder;
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -48,6 +48,6 @@ public class EngineVersionVersion implements Placeholder {
|
|||
@NotNull
|
||||
@Override
|
||||
public String replace(@NotNull String text) {
|
||||
return text.replace("%" + getName() + "%", String.valueOf(BuildInfo.getInstance().getVersioningVersion()));
|
||||
return text.replace("%" + getName() + "%", String.valueOf(EngineInformation.getInstance().getVersioningVersion()));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,12 +19,12 @@
|
|||
|
||||
package de.staropensource.sosengine.base.types;
|
||||
|
||||
import de.staropensource.sosengine.base.data.info.BuildInfo;
|
||||
import de.staropensource.sosengine.base.data.info.EngineInformation;
|
||||
|
||||
/**
|
||||
* Provides all available version types.
|
||||
*
|
||||
* @see BuildInfo#versioningType
|
||||
* @see EngineInformation#versioningType
|
||||
* @since 1-alpha0
|
||||
*/
|
||||
@SuppressWarnings({ "unused" })
|
||||
|
|
Loading…
Reference in a new issue