![JAR search and dependency download from the Maven repository](/logo.png)
net.sf.yal10n.settings.Repository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yal10n-maven-plugin Show documentation
Show all versions of yal10n-maven-plugin Show documentation
Yet Another L10N Maven Plugin
The newest version!
package net.sf.yal10n.settings;
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import java.util.List;
/**
* Configures a single repository. The information is used to checkout the repository and search
* messages properties file in it.
*/
public class Repository
{
private String url;
private String mirrorUrl;
private String tag = "HEAD";
private ScmType type = ScmType.SVN;
private String viewvcUrl;
private List includes;
private List excludes;
private Notification notification = new Notification();
/**
* Gets the URL from where the repository can be checked out. Read-only access is necessary.
* If additionally a {@link #getMirrorUrl()} is defined, then this url will only be used
* in the reports, but for the actual checkout, the mirror url is used.
* @return the url
*/
public String getUrl()
{
return url;
}
/**
* Sets the URL from where the repository can be checked out. Read-only access is necessary.
* @param url the url
*/
public void setUrl( String url )
{
this.url = url;
}
/**
* Gets the mirror url that is used to checkout the code. Read-only access is necessary.
* This is optional and can be null
.
* @return the mirror url
*/
public String getMirrorUrl()
{
return mirrorUrl;
}
/**
* Sets the mirror url.
* @param mirrorUrl the new mirror url
*/
public void setMirrorUrl( String mirrorUrl )
{
this.mirrorUrl = mirrorUrl;
}
/**
* Gets the tag that is used for the checkout. It can also be a branch name.
* By default, "HEAD" is used.
* @return the tag
*/
public String getTag()
{
return tag;
}
/**
* Sets the tag/branch that is used for the checkout.
* @param tag the tag
*/
public void setTag( String tag )
{
this.tag = tag;
}
/**
* Gets the ant-style include patterns for the messages.properties file that should be used.
* @return the include patterns.
*/
public List getIncludes()
{
return includes;
}
/**
* Sets the ant-style include patterns for the messages.properties file that should be used.
* @param includes the include patterns.
*/
public void setIncludes( List includes )
{
this.includes = includes;
}
/**
* Gets the ant-style exclude patterns for files, that should not be recognized as messages files.
* @return the exclude patterns.
*/
public List getExcludes()
{
return excludes;
}
/**
* Sets the ant-style exclude patterns for files, that should not be recognized as messages files.
* @param excludes the exclude patterns.
*/
public void setExcludes( List excludes )
{
this.excludes = excludes;
}
/**
* Gets the web-URL, that fits to the SCM URL, to have access to the repository via web.
* @return the web-URL
*/
public String getViewvcUrl()
{
return viewvcUrl;
}
/**
* Sets the web-URL, that fits to the SCM URL, to have access to the repository via web.
* @param viewvcUrl the web-URL
*/
public void setViewvcUrl( String viewvcUrl )
{
this.viewvcUrl = viewvcUrl;
}
/**
* Gets the SCM type.
* @return the SCM type
*/
public ScmType getType()
{
return type;
}
/**
* Sets the SCM type.
* @param type the SCM type
*/
public void setType( ScmType type )
{
this.type = type;
}
/**
* Gets the notification.
*
* @return the notification
*/
public Notification getNotification()
{
return notification;
}
/**
* Sets the notification.
*
* @param notification the new notification
*/
public void setNotification( Notification notification )
{
this.notification = notification;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy