WSO2 App Factory comes by default with several repository types and we work on facilitating most of the commonly-used types with every new version. In the meantime, if you cannot find the repository type used in your company, you can add it using the
<RepositoryProviderConfig> element in
<AF_HOME>/repository/conf/appfactory/appfactory.xml file. You also should extend the
AbstractRepositoryProvider class and provide the extended class as a Property.
Following sample code adds GIT as a new repository type to App Factory:
The elements of the sample configuration are explained below. You can use this information to edit the file according to your requirements.
|RepositoryProviderConfig||name||Name of Repository Provider.|
|enabled||Define whether Repository Provider is enabled or not.|
The following table contains detail descriptions of each property.
|Class||Java Class for you repository provider manager implementation for git.|
|BaseURL||The BaseURL which pointing back to the your repository service.|
|GitblitAdminUserName||Admin user name of repository.|
|GitblitAdminPassword||Admin password of repository.|
|ReadWritePermission||Read write permission string for application's repository.|
|DisplayName||Display name of repository provider.|
|Provider||Repository provider type.|