asfextOptions
asfextOptions
package
org.apache.maven.plugin.doap.options
ASFExtOptions
http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext
@see http://projects.apache.org/docs/pmc.html
@see http://projects.apache.org/docs/standards.html]]>
1.0.0
included
Flag to use or not the ASF extension in the generated DOAP. Required.
1.0.0
boolean
true
true
pmc
http://projects.apache.org/docs/pmc.html]]>
1.0.0
String
true
name
http://projects.apache.org/docs/pmc.html]]>
1.0.0
String
true
charter
http://projects.apache.org/docs/pmc.html]]>
1.0.0
String
true
chair
http://projects.apache.org/docs/pmc.html]]>
1.0.0
String
true
standards
1.0.0
http://projects.apache.org/docs/standards.html]]>
Standard
*
http://projects.apache.org/guidelines.html
*/
public static final String CATEGORY_RESOURCE = "http://projects.apache.org/category/";
/** Projects related to building/maintaining source code/websites. */
public static final String BUILD_MANAGEMENT_CATEGORY = "build-management";
/** Projects related to databases. */
public static final String DATABASE_CATEGORY = "database";
/** Related to the HyperText Transfer Protocol. */
public static final String HTTP_CATEGORY = "http";
/** Modules designed for use by the Apache HTTP Server. */
public static final String HTTP_MODULES_CATEGORY = "httpd-modules";
/** A library meant to be used by other applications. */
public static final String LIBRARY_CATEGORY = "library";
/** Servers or applications related to internet mail protocols. */
public static final String MAIL_CATEGORY = "mail";
/** Anything that acts as a client across a network. */
public static final String NETWORK_CLIENT_CATEGORY = "network-client";
/** Anything that acts as a server across a network. */
public static final String NETWORK_SERVER_CATEGORY = "network-server";
/** Software designed to test or verify other software. */
public static final String TESTING_CATEGORY = "testing";
/** Unifying frameworks for website development. */
public static final String WEB_FRAMEWORK_CATEGORY = "web-framework";
/** Software based on XML technologies. */
public static final String XML_CATEGORY = "xml";
/** All categories supported by ASF */
public static final String[] CATEGORIES = {
BUILD_MANAGEMENT_CATEGORY,
DATABASE_CATEGORY,
HTTP_CATEGORY,
HTTP_MODULES_CATEGORY,
LIBRARY_CATEGORY,
MAIL_CATEGORY,
NETWORK_CLIENT_CATEGORY,
NETWORK_SERVER_CATEGORY,
TESTING_CATEGORY,
WEB_FRAMEWORK_CATEGORY,
XML_CATEGORY };
/** C or C++ Programming Language. */
public static final String C_PROGRAMMING_LANGUAGE = "C";
/** Java Programming Language and all its components.*/
public static final String JAVA_PROGRAMMING_LANGUAGE = "Java";
/** Perl Programming Language.*/
public static final String PERL_PROGRAMMING_LANGUAGE = "Perl";
/** Python Programming Language.*/
public static final String PYTHON_PROGRAMMING_LANGUAGE = "Python";
/** Scalable Vector Graphic Programming Language.*/
public static final String SVG_PROGRAMMING_LANGUAGE = "SVG";
/** Tcl Programming Language.*/
public static final String TCL_PROGRAMMING_LANGUAGE = "Tcl";
/** All Programming Languages supported by ASF */
public static final String[] PROGRAMMING_LANGUAGES = {
C_PROGRAMMING_LANGUAGE,
JAVA_PROGRAMMING_LANGUAGE,
PERL_PROGRAMMING_LANGUAGE,
PYTHON_PROGRAMMING_LANGUAGE,
SVG_PROGRAMMING_LANGUAGE,
TCL_PROGRAMMING_LANGUAGE};
/**
* @param category not null
* @return true
if the given category is supported by ASF.
* @see http://projects.apache.org/categories.html
* @see #CATEGORIES
*/
public static boolean isCategorySupportedByASF( String category )
{
for ( int i = 0; i < CATEGORIES.length; i++ )
{
if ( CATEGORIES[i].equalsIgnoreCase( category ) )
{
return true;
}
}
return false;
}
/**
* @param programmingLanguage not null
* @return true
if the given programming language is supported by ASF.
* @see http://projects.apache.org/languages.html
* @see #PROGRAMMING_LANGUAGES
*/
public static boolean isProgrammingLanguageSupportedByASF( String programmingLanguage )
{
for ( int i = 0; i < PROGRAMMING_LANGUAGES.length; i++ )
{
if ( PROGRAMMING_LANGUAGES[i].equalsIgnoreCase( programmingLanguage ) )
{
return true;
}
}
return false;
}
/**
* Find the chair man of the project. The role of the developer should contain chair
.
*
* @param developers list of {@link org.apache.maven.model.Developer}
* @return a Developer or null if not found.
*/
public static org.apache.maven.model.Developer findChair( java.util.List developers )
{
if ( developers == null || developers.isEmpty() )
{
return null;
}
for ( java.util.Iterator it = developers.iterator(); it.hasNext(); )
{
org.apache.maven.model.Developer developer = (org.apache.maven.model.Developer) it.next();
java.util.List roles = developer.getRoles();
for ( java.util.Iterator it2 = roles.iterator(); it2.hasNext(); )
{
String role = (String) it2.next();
if ( role.toLowerCase().indexOf( "chair" ) != -1 )
{
return developer;
}
}
}
return null;
}
/**
* Find the list of PMC members of the project. The role of each developer should contain pmc
.
*
* @param developers list of {@link org.apache.maven.model.Developer}
* @return a not null list of Developer.
*/
public static java.util.List findPMCMembers( java.util.List developers )
{
if ( developers == null || developers.isEmpty() )
{
return null;
}
java.util.List pmc = new java.util.ArrayList();
for ( java.util.Iterator it = developers.iterator(); it.hasNext(); )
{
org.apache.maven.model.Developer developer = (org.apache.maven.model.Developer) it.next();
java.util.List roles = developer.getRoles();
for ( java.util.Iterator it2 = roles.iterator(); it2.hasNext(); )
{
String role = (String) it2.next();
if ( role.toLowerCase().indexOf( "pmc" ) != -1 )
{
pmc.add( developer );
}
}
}
return pmc;
}
]]>
Standard
<asfext:implements>
<asfext:Standard>
<asfext:title>Extensible Stylesheet Language - Formatting Objects (XSL-FO 1.1)</asfext:title>
<asfext:body>W3C</asfext:body>
<asfext:id>XSL 1.1</asfext:id>
<asfext:url rdf:resource="http://www.w3.org/TR/xsl11/"/>
</asfext:Standard>
</asfext:implements>
@see http://projects.apache.org/docs/standards.html]]>
1.0.0
title
http://projects.apache.org/docs/standards.html]]>
1.0.0
String
true
true
body
http://projects.apache.org/docs/standards.html]]>
1.0.0
String
true
true
id
http://projects.apache.org/docs/standards.html]]>
1.0.0
String
true
true
url
http://projects.apache.org/docs/standards.html]]>
1.0.0
String
true