Skip to content

Commit

Permalink
Make pro.arguments available in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
forax committed Mar 16, 2018
1 parent 266ee50 commit 5060af7
Showing 1 changed file with 121 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ public class Builders {
@com.github.forax.pro.api.TypeCheckedConfig
public interface ProBuilder {
ProBuilder loglevel(java.lang.String loglevel);
java.lang.String loglevel();
java.nio.file.Path currentDir();
ProBuilder currentDir(java.nio.file.Path currentDir);
boolean exitOnError();
ProBuilder exitOnError(boolean exitOnError);
ProBuilder pluginDir(java.nio.file.Path pluginDir);
java.nio.file.Path pluginDir();
java.util.List<java.lang.String> arguments();
ProBuilder arguments(java.util.List<java.lang.String> arguments);
}

public static final CompilerBuilder compiler =
Expand All @@ -23,22 +29,38 @@ public interface ProBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface CompilerBuilder {
java.util.Optional<java.lang.Boolean> verbose();
CompilerBuilder verbose(boolean verbose);
CompilerBuilder files(java.util.List<java.nio.file.Path> files);
CompilerBuilder release(int release);
java.util.Optional<java.util.List<java.nio.file.Path>> upgradeModulePath();
CompilerBuilder upgradeModulePath(java.util.List<java.nio.file.Path> upgradeModulePath);
CompilerBuilder moduleMergedTestPath(java.nio.file.Path moduleMergedTestPath);
java.nio.file.Path moduleMergedTestPath();
CompilerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
java.util.Optional<java.util.List<java.lang.String>> rawArguments();
CompilerBuilder rootModules(java.util.List<java.lang.String> rootModules);
java.util.Optional<java.util.List<java.lang.String>> rootModules();
CompilerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
java.util.List<java.nio.file.Path> moduleSourcePath();
CompilerBuilder moduleTestPath(java.util.List<java.nio.file.Path> moduleTestPath);
java.util.List<java.nio.file.Path> moduleTestPath();
CompilerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.Optional<java.util.List<java.nio.file.Path>> modulePath();
java.util.List<java.nio.file.Path> moduleDependencyPath();
CompilerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
java.util.List<java.nio.file.Path> moduleSourceResourcesPath();
CompilerBuilder moduleSourceResourcesPath(java.util.List<java.nio.file.Path> moduleSourceResourcesPath);
CompilerBuilder moduleTestResourcesPath(java.util.List<java.nio.file.Path> moduleTestResourcesPath);
java.util.List<java.nio.file.Path> moduleTestResourcesPath();
java.nio.file.Path moduleExplodedSourcePath();
CompilerBuilder moduleExplodedSourcePath(java.nio.file.Path moduleExplodedSourcePath);
CompilerBuilder moduleExplodedTestPath(java.nio.file.Path moduleExplodedTestPath);
java.nio.file.Path moduleExplodedTestPath();
java.util.Optional<java.lang.String> lint();
CompilerBuilder lint(java.lang.String lint);
CompilerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
CompilerBuilder moduleTestPath(java.util.List<java.nio.file.Path> moduleTestPath);
CompilerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
CompilerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
CompilerBuilder moduleMergedTestPath(java.nio.file.Path moduleMergedTestPath);
CompilerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
CompilerBuilder rootModules(java.util.List<java.lang.String> rootModules);
java.util.Optional<java.util.List<java.nio.file.Path>> files();
CompilerBuilder files(java.util.List<java.nio.file.Path> files);
CompilerBuilder release(int release);
int release();
}

public static final DocerBuilder docer =
Expand All @@ -47,20 +69,34 @@ public interface CompilerBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface DocerBuilder {
java.util.Optional<java.net.URI> link();
DocerBuilder link(java.net.URI link);
DocerBuilder files(java.util.List<java.nio.file.Path> files);
DocerBuilder upgradeModulePath(java.util.List<java.nio.file.Path> upgradeModulePath);
DocerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
DocerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
DocerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
java.util.Optional<java.util.List<java.nio.file.Path>> upgradeModulePath();
boolean generateTestDoc();
DocerBuilder generateTestDoc(boolean generateTestDoc);
DocerBuilder quiet(boolean quiet);
boolean quiet();
DocerBuilder html5(boolean html5);
boolean html5();
DocerBuilder moduleMergedTestPath(java.util.List<java.nio.file.Path> moduleMergedTestPath);
java.util.List<java.nio.file.Path> moduleMergedTestPath();
java.nio.file.Path moduleDocSourcePath();
DocerBuilder moduleDocSourcePath(java.nio.file.Path moduleDocSourcePath);
java.nio.file.Path moduleDocTestPath();
DocerBuilder moduleDocTestPath(java.nio.file.Path moduleDocTestPath);
DocerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
java.util.Optional<java.util.List<java.lang.String>> rawArguments();
DocerBuilder rootModules(java.util.List<java.lang.String> rootModules);
java.util.Optional<java.util.List<java.lang.String>> rootModules();
DocerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
java.util.List<java.nio.file.Path> moduleSourcePath();
java.util.Optional<java.util.List<java.nio.file.Path>> modulePath();
DocerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.List<java.nio.file.Path> moduleDependencyPath();
DocerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
java.util.Optional<java.util.List<java.nio.file.Path>> files();
DocerBuilder files(java.util.List<java.nio.file.Path> files);
}

public static final LinkerBuilder linker =
Expand All @@ -69,20 +105,34 @@ public interface DocerBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface LinkerBuilder {
java.util.Optional<java.util.List<java.lang.String>> serviceNames();
LinkerBuilder serviceNames(java.util.List<java.lang.String> serviceNames);
java.util.Optional<java.util.List<java.lang.String>> rawArguments();
LinkerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
java.util.Optional<java.util.List<java.lang.String>> rootModules();
LinkerBuilder rootModules(java.util.List<java.lang.String> rootModules);
LinkerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.Optional<java.util.List<java.nio.file.Path>> modulePath();
java.util.List<java.nio.file.Path> moduleDependencyPath();
LinkerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
LinkerBuilder compressLevel(int compressLevel);
int compressLevel();
boolean stripDebug();
LinkerBuilder stripDebug(boolean stripDebug);
boolean stripNativeCommands();
LinkerBuilder stripNativeCommands(boolean stripNativeCommands);
boolean includeSystemJMODs();
LinkerBuilder includeSystemJMODs(boolean includeSystemJMODs);
boolean ignoreSigningInformation();
LinkerBuilder ignoreSigningInformation(boolean ignoreSigningInformation);
java.nio.file.Path systemModulePath();
LinkerBuilder systemModulePath(java.nio.file.Path systemModulePath);
LinkerBuilder moduleArtifactSourcePath(java.nio.file.Path moduleArtifactSourcePath);
java.nio.file.Path moduleArtifactSourcePath();
java.util.Optional<java.util.List<java.lang.String>> launchers();
LinkerBuilder launchers(java.util.List<java.lang.String> launchers);
LinkerBuilder destination(java.nio.file.Path destination);
LinkerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
LinkerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
LinkerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
LinkerBuilder rootModules(java.util.List<java.lang.String> rootModules);
java.nio.file.Path destination();
}

public static final ModulefixerBuilder modulefixer =
Expand All @@ -92,10 +142,15 @@ public interface LinkerBuilder {
@com.github.forax.pro.api.TypeCheckedConfig
public interface ModulefixerBuilder {
ModulefixerBuilder force(boolean force);
boolean force();
java.util.List<java.nio.file.Path> moduleDependencyPath();
ModulefixerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
ModulefixerBuilder moduleDependencyFixerPath(java.nio.file.Path moduleDependencyFixerPath);
java.nio.file.Path moduleDependencyFixerPath();
ModulefixerBuilder additionalRequires(java.util.List<java.lang.String> additionalRequires);
java.util.Optional<java.util.List<java.lang.String>> additionalRequires();
java.util.Optional<java.util.List<java.lang.String>> additionalUses();
ModulefixerBuilder additionalUses(java.util.List<java.lang.String> additionalUses);
ModulefixerBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
}

public static final PackagerBuilder packager =
Expand All @@ -104,23 +159,40 @@ public interface ModulefixerBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface PackagerBuilder {
PackagerBuilder modules(java.util.List<java.lang.String> modules);
PackagerBuilder moduleArtifactSourcePath(java.nio.file.Path moduleArtifactSourcePath);
PackagerBuilder moduleExplodedSourcePath(java.util.List<java.nio.file.Path> moduleExplodedSourcePath);
PackagerBuilder moduleExplodedTestPath(java.util.List<java.nio.file.Path> moduleExplodedTestPath);
PackagerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
PackagerBuilder moduleTestPath(java.util.List<java.nio.file.Path> moduleTestPath);
PackagerBuilder moduleDocSourcePath(java.nio.file.Path moduleDocSourcePath);
java.nio.file.Path moduleDocSourcePath();
java.nio.file.Path moduleDocTestPath();
PackagerBuilder moduleDocTestPath(java.nio.file.Path moduleDocTestPath);
java.util.Optional<java.util.List<java.lang.String>> rawArguments();
PackagerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
PackagerBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
java.util.List<java.nio.file.Path> moduleSourcePath();
PackagerBuilder moduleTestPath(java.util.List<java.nio.file.Path> moduleTestPath);
java.util.List<java.nio.file.Path> moduleTestPath();
java.util.List<java.nio.file.Path> moduleExplodedSourcePath();
PackagerBuilder moduleExplodedSourcePath(java.util.List<java.nio.file.Path> moduleExplodedSourcePath);
PackagerBuilder moduleExplodedTestPath(java.util.List<java.nio.file.Path> moduleExplodedTestPath);
java.util.List<java.nio.file.Path> moduleExplodedTestPath();
PackagerBuilder moduleArtifactSourcePath(java.nio.file.Path moduleArtifactSourcePath);
java.nio.file.Path moduleArtifactSourcePath();
boolean generateSourceTestBale();
PackagerBuilder generateSourceTestBale(boolean generateSourceTestBale);
java.nio.file.Path moduleArtifactTestPath();
PackagerBuilder moduleArtifactTestPath(java.nio.file.Path moduleArtifactTestPath);
PackagerBuilder moduleDocArtifactSourcePath(java.nio.file.Path moduleDocArtifactSourcePath);
java.nio.file.Path moduleDocArtifactSourcePath();
PackagerBuilder moduleSrcArtifactSourcePath(java.nio.file.Path moduleSrcArtifactSourcePath);
java.nio.file.Path moduleSrcArtifactSourcePath();
PackagerBuilder moduleDocArtifactTestPath(java.nio.file.Path moduleDocArtifactTestPath);
java.nio.file.Path moduleDocArtifactTestPath();
PackagerBuilder moduleSrcArtifactTestPath(java.nio.file.Path moduleSrcArtifactTestPath);
java.nio.file.Path moduleSrcArtifactTestPath();
@Deprecated
java.util.Optional<java.util.List<java.lang.String>> moduleMetadata();
@Deprecated
PackagerBuilder moduleMetadata(java.util.List<java.lang.String> moduleMetadata);
java.util.Optional<java.util.List<java.lang.String>> modules();
PackagerBuilder modules(java.util.List<java.lang.String> modules);
}

public static final PerferBuilder perfer =
Expand All @@ -130,7 +202,10 @@ public interface PackagerBuilder {
@com.github.forax.pro.api.TypeCheckedConfig
public interface PerferBuilder {
PerferBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
java.util.List<java.nio.file.Path> moduleDependencyPath();
java.nio.file.Path moduleArtifactTestPath();
PerferBuilder moduleArtifactTestPath(java.nio.file.Path moduleArtifactTestPath);
java.nio.file.Path javaCommand();
PerferBuilder javaCommand(java.nio.file.Path javaCommand);
}

Expand All @@ -140,13 +215,20 @@ public interface PerferBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface ResolverBuilder {
java.util.List<java.nio.file.Path> moduleSourcePath();
ResolverBuilder moduleSourcePath(java.util.List<java.nio.file.Path> moduleSourcePath);
ResolverBuilder moduleTestPath(java.util.List<java.nio.file.Path> moduleTestPath);
java.util.List<java.nio.file.Path> moduleTestPath();
java.util.Optional<java.util.List<java.nio.file.Path>> modulePath();
ResolverBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.List<java.nio.file.Path> moduleDependencyPath();
ResolverBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
ResolverBuilder remoteRepositories(java.util.List<java.net.URI> remoteRepositories);
java.util.Optional<java.util.List<java.net.URI>> remoteRepositories();
java.nio.file.Path mavenLocalRepositoryPath();
ResolverBuilder mavenLocalRepositoryPath(java.nio.file.Path mavenLocalRepositoryPath);
ResolverBuilder dependencies(java.util.List<java.lang.String> dependencies);
java.util.List<java.lang.String> dependencies();
}

public static final RunnerBuilder runner =
Expand All @@ -155,13 +237,20 @@ public interface ResolverBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface RunnerBuilder {
RunnerBuilder module(java.lang.String module);
RunnerBuilder upgradeModulePath(java.util.List<java.nio.file.Path> upgradeModulePath);
RunnerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.Optional<java.util.List<java.nio.file.Path>> upgradeModulePath();
RunnerBuilder rawArguments(java.util.List<java.lang.String> rawArguments);
java.util.Optional<java.util.List<java.lang.String>> rawArguments();
java.util.Optional<java.util.List<java.lang.String>> rootModules();
RunnerBuilder rootModules(java.util.List<java.lang.String> rootModules);
RunnerBuilder modulePath(java.util.List<java.nio.file.Path> modulePath);
java.util.List<java.nio.file.Path> modulePath();
RunnerBuilder mainArguments(java.util.List<java.lang.String> mainArguments);
java.util.Optional<java.util.List<java.lang.String>> mainArguments();
RunnerBuilder javaCommand(java.nio.file.Path javaCommand);
java.nio.file.Path javaCommand();
java.util.Optional<java.lang.String> module();
RunnerBuilder module(java.lang.String module);
}

public static final TesterBuilder tester =
Expand All @@ -170,10 +259,14 @@ public interface RunnerBuilder {
@SuppressWarnings("exports")
@com.github.forax.pro.api.TypeCheckedConfig
public interface TesterBuilder {
TesterBuilder timeout(int timeout);
java.nio.file.Path pluginDir();
TesterBuilder pluginDir(java.nio.file.Path pluginDir);
TesterBuilder moduleExplodedTestPath(java.util.List<java.nio.file.Path> moduleExplodedTestPath);
java.util.List<java.nio.file.Path> moduleDependencyPath();
TesterBuilder moduleDependencyPath(java.util.List<java.nio.file.Path> moduleDependencyPath);
TesterBuilder moduleExplodedTestPath(java.util.List<java.nio.file.Path> moduleExplodedTestPath);
java.util.List<java.nio.file.Path> moduleExplodedTestPath();
TesterBuilder timeout(int timeout);
int timeout();
}

}

0 comments on commit 5060af7

Please sign in to comment.