File destinationDir = new File(project.getBuildDir(), taskName); destinationDir.mkdirs(); File pathingJarPath = new File(destinationDir, project.getName() + "-pathing.jar"); OutputStream pathingJar = new FileOutputStream(pathingJarPath);
public void apply(Project project) { project.getPlugins().apply( "java" ); final HibernateExtension hibernateExtension = new HibernateExtension( project ); project.getLogger().debug( "Adding Hibernate extensions to the build [{}]", project.getName() ); project.getExtensions().add( "hibernate", hibernateExtension ); project.afterEvaluate( new Action<Project>() { @Override public void execute(Project project) { if ( hibernateExtension.enhance != null ) { applyEnhancement( project, hibernateExtension ); } } } ); }
VersionlessDependency.builder() .setGroup((String) target.getProject().getGroup()) .setName(target.getProject().getName()) .build(); return firstLevelDependencies.contains(versionless);
String mId = project.getName();
throw new IllegalStateException( "module `" + project.getName() + "` must specify minSdkVersion and targetSdkVersion in build.gradle"); } else {
private String getItemNamePrefix() { if (coveredItemNamePrefix == null) { return project.getName() + "."; } return coveredItemNamePrefix; }
@Override public Map<String, String> buildSubstitutions(PythonExtension extension, String entry) { Map<String, String> substitutions = new HashMap<>(); substitutions.putAll(extraProperties); substitutions.put("entryPoint", entry); substitutions.put("pythonExecutable", extension.getDetails().getSystemPythonInterpreter().getAbsolutePath()); substitutions.put("toolName", project.getName()); return substitutions; }
@Override public Map<String, String> buildSubstitutions(PythonExtension extension, String entry) { Map<String, String> substitutions = new HashMap<>(); substitutions.putAll(extraProperties); substitutions.put("entryPoint", entry); substitutions.put("pythonExecutable", extension.getDetails().getSystemPythonInterpreter().getAbsolutePath()); substitutions.put("toolName", project.getName()); return substitutions; }
private Set<String> getAllLocalProjectNames(Project rootProject) { Set<String> names = new HashSet<String>(); for (Project localProject: rootProject.getAllprojects()) { names.add(localProject.getGroup() + ":" + localProject.getName()); } return names; }
@Override public Map<String, String> buildSubstitutions(PythonExtension extension, String entry) { Map<String, String> substitutions = super.buildSubstitutions(extension, entry); substitutions.put("realPex", PexFileUtil.createThinPexFilename(project.getName())); return substitutions; }
@OutputFile public File getSdistOutput() { Project project = getProject(); return new File( getDistDir(), String.format( "%s-%s.tar.gz", project.getName(), // TODO: Is this replace here really necessary? project.getVersion().toString().replace("_", "-"))); }
@OutputFile public File getSdistOutput() { Project project = getProject(); return new File( getDistDir(), String.format( "%s-%s.tar.gz", project.getName(), // TODO: Is this replace here really necessary? project.getVersion().toString().replace("_", "-"))); }
LiteModJson(Project project, String minecraftVersion, String revision) { this.project = project; this.mcversion = this.minecraftVersion = minecraftVersion; this.revision = revision; this.name = project.getName(); this.displayName = project.hasProperty("displayName") ? project.property("displayName").toString() : project.getDescription(); this.version = project.getVersion().toString(); }
private void setDefaults(GatewayExportPluginConfig pluginConfig, @NotNull Project project) { if (!pluginConfig.getSolutionDir().isPresent()) { pluginConfig.getSolutionDir().set(new File(project.getProjectDir(), "src/main/gateway")); } if (!pluginConfig.getRawBundle().isPresent()) { pluginConfig.getRawBundle().set(new File(new File(project.getBuildDir(), "gateway"), project.getName() + ".raw.bundle")); } if (!pluginConfig.getSanitizedBundle().isPresent()) { pluginConfig.getSanitizedBundle().set(new File(new File(project.getBuildDir(), "gateway"), project.getName() + ".sanitized.bundle")); } }
private LoadProjectsBuildOperationType.Result.Project convert(org.gradle.api.Project project) { return new BuildStructureOperationProject( project.getName(), project.getPath(), ((ProjectInternal) project).getIdentityPath().toString(), project.getProjectDir().getAbsolutePath(), project.getBuildFile().getAbsolutePath(), convert(project.getChildProjects().values())); }
public DefaultPythonDetails(Project project, File venvDir) { this.project = project; activateLink = new File(project.getProjectDir(), OperatingSystem.current().getScriptName("activate")); virtualEnvPrompt = String.format("(%s)", project.getName()); searchPath = OperatingSystem.current().getPath(); venvOverride = venvDir; this.virtualEnvironment = new DefaultVirtualEnvironment(this); pythonDefaultVersions = new PythonDefaultVersions(); }
public DefaultPythonDetails(Project project, File venvDir) { this.project = project; activateLink = new File(project.getProjectDir(), OperatingSystem.current().getScriptName("activate")); virtualEnvPrompt = String.format("(%s)", project.getName()); searchPath = OperatingSystem.current().getPath(); venvOverride = venvDir; this.virtualEnvironment = new DefaultVirtualEnvironment(this); pythonDefaultVersions = new PythonDefaultVersions(); }
private ProjectDescriptor deriveProjectDescription(Project project) { ProjectDescriptor projectDescriptor = new ProjectDescriptor(project.getName(), project.getGroup().toString(), project.getDescription(), project.getVersion().toString(), new EnvironmentDescriptor(project.getGradle().getGradleVersion())); addPluginDescription(project, projectDescriptor); addTasksDescription(project, projectDescriptor); addJavaDescription(project, projectDescriptor); return projectDescriptor; }