Skip to content
Snippets Groups Projects
Commit cac1dccc authored by Denis Arrivault's avatar Denis Arrivault
Browse files

Resume index.html WiP

parent 37a6ff0e
No related branches found
No related tags found
No related merge requests found
...@@ -10,4 +10,5 @@ build/ ...@@ -10,4 +10,5 @@ build/
.gradle/ .gradle/
buildCMake/ buildCMake/
install/ install/
index.html
public/
...@@ -56,3 +56,23 @@ jacocoTestReport { ...@@ -56,3 +56,23 @@ jacocoTestReport {
// Finalize test task with jacocoTestReport function // Finalize test task with jacocoTestReport function
test.finalizedBy(jacocoTestReport) test.finalizedBy(jacocoTestReport)
task formatIndex(type: Copy) {
from 'index_template.html'
into '.'
rename { String fileName -> fileName.replace("index_template.html", "index.html")}
// Substitute property references in files
//expand(version: "${project.version}")
def remote = "git rev-parse --abbrev-ref --symbolic-full-name @{u}".execute().text.trim().split('/')[0]
def url = "git remote get-url $remote".execute().text.trim()
def pageurl = ""
if(url.contains("github.com")){
pageurl = "https://darrivau.github.io/Testproject"
}
if(url.contains("lis-lab.fr")){
pageurl = "http://denis.arrivault.pages.lis-lab.fr/Test_Project"
}
println(pageurl)
}
javadoc.finalizedBy formatIndex
<html>
<head>
<title>Test Project web pages</title>
</head>
<body>
<h3>Welcome to my super Test Project web pages</h3>
<ul>
<li><a href="http://denis.arrivault.pages.lis-lab.fr/Test_Project/Tests_Results/">See the unit tests report</a></li>
<li><a href="http://denis.arrivault.pages.lis-lab.fr/Test_Project/Jacoco/">See the Jacoco coverage report</a></li>
<li><a href="http://denis.arrivault.pages.lis-lab.fr/Test_Project/Javadoc/">See the javadoc</a></li>
<li><a href="http://denis.arrivault.pages.lis-lab.fr/Test_Project/ImmutableComplex.jar" download="ImmutableComplex.jar">Download the executable jar</a>
</ul>
</body>
</html>
\ No newline at end of file
<html>
<head>
<title>Test Project web pages</title>
</head>
<body>
<h3>Welcome to my super Test Project web pages</h3>
<ul>
<li><a href="https://darrivau.github.io/Testproject/Tests_Results/">See the unit tests report</a></li>
<li><a href="https://darrivau.github.io/Testproject/Jacoco/">See the Jacoco coverage report</a></li>
<li><a href="https://darrivau.github.io/Testproject/Javadoc/">See the javadoc</a></li>
<li><a href="https://darrivau.github.io/Testproject/ImmutableComplex.jar" download="ImmutableComplex.jar">Download the executable jar</a>
</ul>
</body>
</html>
\ No newline at end of file
<html>
<head>
<title>Test Project web pages</title>
</head>
<body>
<h3>Welcome to my super Test Project web pages</h3>
<ul>
<li><a href="${pageurl}/Tests_Results/">See the unit tests report</a></li>
<li><a href="${pageurl}/Jacoco/">See the Jacoco coverage report</a></li>
<li><a href="${pageurl}/Javadoc/">See the javadoc</a></li>
<li><a href="${pageurl}/ImmutableComplex-${version}.jar" download="ImmutableComplex-${version}.jar">Download the executable jar</a>
</ul>
</body>
</html>
\ No newline at end of file
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment