Simple ad-hoc tool used as a data pump to pull jboss.org community projects related data from projectData GitHub-served file and push into DCP Content Push REST end point.
- Clone git repo:
git clone https://github.com/searchisko/DCP-Project-Data-Indexer.git
- Open
index.html
in web browser, notice the CORS info there - Complete the web form (server URLs).
- Hit
start
button and watch the progress
Please note that you may get 400 error responses from DCP if you didn't define the project first there. You can do that by adding it to the repository here and then pushing it to DCP via the init_project.sh script provided in the same directory.
If the index.html
is opened from local filesystem (i.e. the URL starts with file://
) then some browsers may not be able to process XHR request correctly because Origin
request header will have invalid value. If you use Chrome then this guide may help you. Otherwise search for a specific parameters that will disable CORS checking in your browser or try opening this file directly from GitHub, then the headers should work correctly http://rawgithub.com/searchisko/DCP-Project-Data-Indexer/master/index.html. However nowadays GitHub enforces page source to be shown instead of the interpreted HTML page.