com.github.keub.maven.plugin.service.ProjectService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of remote-resources-maven-plugin Show documentation
Show all versions of remote-resources-maven-plugin Show documentation
Copy files from a remote location to a path relative to the project in which the plugin is configured.
package com.github.keub.maven.plugin.service;
import com.github.keub.maven.plugin.model.Project;
import com.github.keub.maven.plugin.model.Resource;
public class ProjectService {
/**
*
* get project from a resource
*
*
* @param resource
* @return
*/
public static Project getProject(Resource resource) {
Project retval = new Project();
retval.setUri(resource.getUri());
retval.setUsername(resource.getUsername());
retval.setPassword(resource.getPassword());
retval.setBranchTagName(resource.getBranchTagName());
return retval;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy