From: <jbo...@li...> - 2006-06-28 20:36:07
|
Author: rl...@jb... Date: 2006-06-28 16:36:02 -0400 (Wed, 28 Jun 2006) New Revision: 4851 Added: labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Artifact.java labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Dir.java labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Fileset.java labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/ReposArtifact.java Log: add to vc Added: labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Artifact.java =================================================================== --- labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Artifact.java 2006-06-28 20:26:39 UTC (rev 4850) +++ labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Artifact.java 2006-06-28 20:36:02 UTC (rev 4851) @@ -0,0 +1,107 @@ +package org.apache.maven.plugin.builddist; + +/* + * Created on Jan 18, 2006 + * + * TODO To change the template for this generated file go to + * Window - Preferences - Java - Code Style - Code Templates + */ + +/** + * @author ruel + * + * TODO To change the template for this generated type comment go to Window - + * Preferences - Java - Code Style - Code Templates + */ +public class Artifact { + + /** + * the name to use if renaming the artifact + */ + private String toName; + + private String module; + + private String artifactName; + + private boolean unpack; + + /** + * The artifact location relevant to its module location + * + * @parameter expression="${artifactLocation}" default-value="/output/lib" + */ + private String artifactLocation; + + /** + * @return Returns the artifactName. + */ + public String getArtifactName() { + return artifactName; + } + + /** + * @param artifactName + * The artifactName to set. + */ + public void setArtifactName(String artifactName) { + this.artifactName = artifactName; + } + + /** + * @return Returns the module. + */ + public String getModule() { + return module; + } + + /** + * @param module + * The module to set. + */ + public void setModule(String module) { + this.module = module; + } + /** + * @return Returns the artifactLocation. + */ + public String getArtifactLocation() { + return artifactLocation; + } + /** + * @param artifactLocation The artifactLocation to set. + */ + public void setArtifactLocation(String artifactLocation) { + this.artifactLocation = artifactLocation; + } + /** + * @return Returns the toName. + */ + public String getToName() { + return toName; + } + /** + * @param toName The toName to set. + */ + public void setToName(String toName) { + this.toName = toName; + } + /** + * Get the unpack. + * + * @return the unpack. + */ + public boolean isUnpack() + { + return unpack; + } + /** + * Set the unpack. + * + * @param unpack The unpack to set. + */ + public void setUnpack(boolean unpack) + { + this.unpack = unpack; + } +} Added: labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Dir.java =================================================================== --- labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Dir.java 2006-06-28 20:26:39 UTC (rev 4850) +++ labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Dir.java 2006-06-28 20:36:02 UTC (rev 4851) @@ -0,0 +1,128 @@ +/* + * Created on Jan 17, 2006 + * + * TODO To change the template for this generated file go to + * Window - Preferences - Java - Code Style - Code Templates + */ +package org.apache.maven.plugin.builddist; + +import java.io.File; +import java.util.ArrayList; +import java.util.List; + +/** + * @author ruel + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class Dir { + + /** + * The list of filesets to delete, in addition to the default directories. + * + * @parameter + */ + private List filesets; + + /** + * The name of the directory + */ + private String name; + + /** + * A list of directories + */ + private ArrayList dirs; + + /** + * A list of artifacts + */ + private ArrayList artifacts; + + /** + * A list of repository Artifacts + */ + private ArrayList reposArtifacts; + + private File location; + + /** + * @return Returns the dirs. + */ + public ArrayList getDirs() { + return dirs; + } + /** + * @param dirs The dirs to set. + */ + public void setDirs(ArrayList dirs) { + this.dirs = dirs; + } + /** + * @return Returns the name. + */ + public String getName() { + return name; + } + /** + * @param name The name to set. + */ + public void setName(String name) { + this.name = name; + } + /** + * @return Returns the artifacts. + */ + public ArrayList getArtifacts() { + return artifacts; + } + /** + * @param artifacts The artifacts to set. + */ + public void setArtifacts(ArrayList artifacts) { + this.artifacts = artifacts; + } + /** + * @return Returns the location. + */ + public File getLocation() { + return location; + } + /** + * @param location The location to set. + */ + public void setLocation(File location) { + this.location = location; + } + /** + * @return Returns the reposArtifacts. + */ + public ArrayList getReposArtifacts() { + return reposArtifacts; + } + /** + * @param reposArtifacts The reposArtifacts to set. + */ + public void setReposArtifacts(ArrayList reposArtifacts) { + this.reposArtifacts = reposArtifacts; + } + /** + * Get the filesets. + * + * @return the filesets. + */ + public List getFilesets() + { + return filesets; + } + /** + * Set the filesets. + * + * @param filesets The filesets to set. + */ + public void setFilesets(List filesets) + { + this.filesets = filesets; + } +} Added: labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Fileset.java =================================================================== --- labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Fileset.java 2006-06-28 20:26:39 UTC (rev 4850) +++ labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/Fileset.java 2006-06-28 20:36:02 UTC (rev 4851) @@ -0,0 +1,13 @@ +package org.apache.maven.plugin.builddist; +import org.apache.maven.shared.model.fileset.FileSet; + +public class Fileset + extends FileSet +{ + + public String toString() + { + return "file-set: " + getDirectory() + " (included: " + getIncludes() + ", excluded: " + getExcludes() + ")"; + } + +} Added: labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/ReposArtifact.java =================================================================== --- labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/ReposArtifact.java 2006-06-28 20:26:39 UTC (rev 4850) +++ labs/jbossbuild/trunk/projects/maven-plugins/maven-builddist-plugin/src/main/java/org/apache/maven/plugin/builddist/ReposArtifact.java 2006-06-28 20:36:02 UTC (rev 4851) @@ -0,0 +1,127 @@ +/* + * Created on Jan 18, 2006 + * + * TODO To change the template for this generated file go to + * Window - Preferences - Java - Code Style - Code Templates + */ +package org.apache.maven.plugin.builddist; + +/** + * @author ruel + * + * TODO To change the template for this generated type comment go to + * Window - Preferences - Java - Code Style - Code Templates + */ +public class ReposArtifact { + + /** + * The group id + */ + private String groupId; + + /** + * The artifactId + */ + private String artifactId; + + /** + * The version + */ + private String version; + + /** + * The artifact location relevant to its module location + * + * @parameter expression="${toName}" + */ + private String toName; + + /** + * Flag for removing version from filename + */ + private boolean stripVersion=true; + + /** + * @parameter expression=${packaging} default-value="jar" + */ + private String packaging; + + /** + * @return Returns the artifactId. + */ + public String getArtifactId() { + return artifactId; + } + /** + * @param artifactId The artifactId to set. + */ + public void setArtifactId(String artifactId) { + this.artifactId = artifactId; + } + /** + * @return Returns the groupId. + */ + public String getGroupId() { + return groupId; + } + /** + * @param groupId The groupId to set. + */ + public void setGroupId(String groupId) { + this.groupId = groupId; + } + /** + * @return Returns the packaging. + */ + public String getPackaging() { + return packaging; + } + /** + * @param packaging The packaging to set. + */ + public void setPackaging(String packaging) { + this.packaging = packaging; + } + /** + * @return Returns the stripVersion. + */ + public boolean isStripVersion() { + return stripVersion; + } + /** + * @param stripVersion The stripVersion to set. + */ + public void setStripVersion(boolean stripVersion) { + this.stripVersion = stripVersion; + } + /** + * @return Returns the version. + */ + public String getVersion() { + return version; + } + /** + * @param version The version to set. + */ + public void setVersion(String version) { + this.version = version; + } + /** + * Get the toName. + * + * @return the toName. + */ + public String getToName() + { + return toName; + } + /** + * Set the toName. + * + * @param toName The toName to set. + */ + public void setToName(String toName) + { + this.toName = toName; + } +} |