package com.pmease.quickbuild.plugin.artifact;

import java.io.Serializable;

import org.hibernate.validator.constraints.NotEmpty;

import com.pmease.quickbuild.annotation.Editable;
import com.pmease.quickbuild.annotation.Scriptable;

@Editable(name="External Artifact Setting", description="Leave this undefined if you are publish artifacts " +
			"via the artifact publishing step. However in case when you copy artifacts to customized " +
			"locations, you may specify this setting to let QuickBuild know where to find your artifacts " +
			"for listing at build overview page. ")
public class ExternalArtifactSetting implements Serializable {

	private static final long serialVersionUID = 1L;

	private String externalDirectory;

	@Editable(name="External Artifact Directory", description="Specify the directory containing external " +
			"build artifacts. For instance, if artifacts resides in directory &quot;/artifacts/&lt;configuration path&gt;/&lt;build version&gt;&quot;, you can then define " +
			"this field as &quot;/artifacts/${configuration.pathName}/${build.version}&quot;")
	@Scriptable
	@NotEmpty
	public String getExternalDirectory() {
		return externalDirectory;
	}

	public void setExternalDirectory(String externalDirectory) {
		this.externalDirectory = externalDirectory;
	}
	
}
