mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-17 08:14:37 +00:00
Fixed the changelog.html generation to be a full HTML file and not an HTML snippet.
This commit is contained in:
1 parent
a12675e120
commit
b829c0f8f1
2 files changed
+28
-1
No files matched your search
@@ -263,7 +263,7 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
<target name="changelogToHtml" depends="-compile-webclasses">
|
||||
<mkdir dir="build/website" />
|
||||
<property name="CHANGELOG_FILE" location="doc/changelog.markdown" />
|
||||
<property name="CHANGELOG_HTML" location="build/website/changelog.html" />
|
||||
<property name="CHANGELOG_HTML" location="build/website/changelog-raw.html" />
|
||||
<java fork="true" classname="lombok.website.CompileChangelog" failonerror="true">
|
||||
<classpath>
|
||||
<path refid="buildScripts.deps.path" />
|
||||
@@ -272,6 +272,18 @@ such as converting the changelog into HTML, and creating javadoc.
|
||||
<arg value="${CHANGELOG_FILE}" />
|
||||
<arg value="${CHANGELOG_HTML}" />
|
||||
</java>
|
||||
<loadfile property="changelog.main" srcFile="build/website/changelog-raw.html" />
|
||||
<delete file="build/website/changelog-raw.html" />
|
||||
<copy todir="build/website" overwrite="true">
|
||||
<fileset dir="website">
|
||||
<include name="changelog.html" />
|
||||
</fileset>
|
||||
<filterchain>
|
||||
<replacetokens>
|
||||
<token key="CHANGELOG" value="${changelog.main}" />
|
||||
</replacetokens>
|
||||
</filterchain>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="javadoc" description="Generates the javadoc" depends="version">
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<link rel="stylesheet" type="text/css" href="logi/reset.css" />
|
||||
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
|
||||
<meta name="description" content="Spice up your java" />
|
||||
<title>Project Lombok - Changelog</title>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 8px;
|
||||
}
|
||||
</style>
|
||||
</head><body>
|
||||
@CHANGELOG@
|
||||
</body></html>
|
||||
Reference in new issue
Block a user