Skip to content

Commit

Permalink
The great rename: the old ‘website’ is now ‘website-old’, and ‘websit…
Browse files Browse the repository at this point in the history
…e2’ is now ‘website’.
  • Loading branch information
rzwitserloot committed May 29, 2017
1 parent 72fd50b commit 8b7a7cb
Show file tree
Hide file tree
Showing 185 changed files with 25 additions and 25 deletions.
44 changes: 22 additions & 22 deletions buildScripts/website.ant.xml
Expand Up @@ -34,7 +34,7 @@ such as converting the changelog into HTML, and creating javadoc.
<property name="SNIPPET_TAB_STOP" value="2" />

<target name="-website-clean">
<delete dir="build/website" quiet="true" />
<delete dir="build/website-old" quiet="true" />
</target>

<target name="website" description="Prepares the website for distribution" depends="-website-main, -website-videos, -website-dist" />
Expand Down Expand Up @@ -63,23 +63,23 @@ such as converting the changelog into HTML, and creating javadoc.

<target name="check-videos-uptodate" depends="build-webuptodate">
<webuptodate property="videos.uptodate" urlbase="https://projectlombok.org/videos/">
<srcfiles dir="website/videos" includes="**/*" />
<srcfiles dir="website-old/videos" includes="**/*" />
</webuptodate>
</target>

<target name="-website-videos" depends="-website-clean, check-videos-uptodate" unless="videos.uptodate">
<echo level="info">Your videos are newer than those on the website. They will be included too.</echo>
<mkdir dir="build/website/videos" />
<copy todir="build/website/videos">
<fileset dir="website/videos" />
<mkdir dir="build/website-old/videos" />
<copy todir="build/website-old/videos">
<fileset dir="website-old/videos" />
</copy>
</target>

<target name="-website-main" depends="-website-clean, version, javadoc, changelogToHtml">
<taskdef classpath="lib/build/de.java2html-java2html.jar" name="java2html" classname="de.java2html.anttasks.Java2HtmlTask" />
<mkdir dir="build/website" />
<copy todir="build/website">
<fileset dir="website">
<mkdir dir="build/website-old" />
<copy todir="build/website-old">
<fileset dir="website-old">
<exclude name="**/*.jpage" />
<exclude name="**/*.svg" />
<exclude name="**/*.psd" />
Expand All @@ -94,9 +94,9 @@ such as converting the changelog into HTML, and creating javadoc.
<include name="LICENCE" />
</fileset>
</copy>
<copy file="website/download-edge-none.html" tofile="build/website/download-edge.html" />
<copy todir="build/website" overwrite="true">
<fileset dir="website">
<copy file="website/download-edge-none.html" tofile="build/website-old/download-edge.html" />
<copy todir="build/website-old" overwrite="true">
<fileset dir="website-old">
<include name="index.html" />
<include name="download.html" />
<include name="slideshow.html" />
Expand Down Expand Up @@ -186,7 +186,7 @@ such as converting the changelog into HTML, and creating javadoc.
<target name="-website-dist">
<mkdir dir="dist" />
<tar destfile="dist/website.tar.bz2" compression="bzip2">
<tarfileset dir="build/website" />
<tarfileset dir="build/website-old" />
<tarfileset dir="doc/api" prefix="api" />
</tar>
</target>
Expand All @@ -207,10 +207,10 @@ such as converting the changelog into HTML, and creating javadoc.
</target>

<target name="-integrateSnippet">
<mkdir dir="build/website" />
<mkdir dir="build/website-old" />
<property name="prefile" location="usage_examples/${transformationName}Example_pre.jpage" />
<property name="postfile" location="usage_examples/${transformationName}Example_post.jpage" />
<property name="htmlfile" location="website/features/${transformationName}.html" />
<property name="htmlfile" location="website-old/features/${transformationName}.html" />
<mkdir dir="build/temp" />
<property name="preout" location="build/temp/${transformationName}Example_pre.jpage.html" />
<property name="postout" location="build/temp/${transformationName}Example_post.jpage.html" />
Expand All @@ -233,7 +233,7 @@ such as converting the changelog into HTML, and creating javadoc.
</filterchain>
</loadfile>
<delete dir="build/temp" quiet="true" />
<copy file="${htmlfile}" tofile="build/website/features/${transformationName}.html" overwrite="true">
<copy file="${htmlfile}" tofile="build/website-old/features/${transformationName}.html" overwrite="true">
<filterchain>
<replacetokens>
<token key="HTML_PRE" value="${pre}" />
Expand Down Expand Up @@ -276,7 +276,7 @@ such as converting the changelog into HTML, and creating javadoc.
<format property="edgeRelease-timestamp" pattern="yyyy-MM-dd HH:mm 'UTC'" timezone="UTC" />
</tstamp>
<copy todir="build/website-edge" overwrite="true">
<fileset dir="website">
<fileset dir="website-old">
<include name="download-edge.html" />
</fileset>
<filterchain>
Expand Down Expand Up @@ -311,9 +311,9 @@ such as converting the changelog into HTML, and creating javadoc.
</target>

<target name="changelogToHtml" depends="-compile-webclasses">
<mkdir dir="build/website" />
<mkdir dir="build/website-old" />
<property name="CHANGELOG_FILE" location="doc/changelog.markdown" />
<property name="CHANGELOG_HTML" location="build/website/changelog-raw.html" />
<property name="CHANGELOG_HTML" location="build/website-old/changelog-raw.html" />
<java fork="true" classname="lombok.website.CompileChangelog" failonerror="true">
<classpath>
<path refid="build.path" />
Expand All @@ -322,10 +322,10 @@ 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">
<loadfile property="changelog.main" srcFile="build/website-old/changelog-raw.html" />
<delete file="build/website-old/changelog-raw.html" />
<copy todir="build/website-old" overwrite="true">
<fileset dir="website-old">
<include name="changelog.html" />
</fileset>
<filterchain>
Expand Down
6 changes: 3 additions & 3 deletions src/website/lombok/website/WebsiteMaker.java
Expand Up @@ -42,14 +42,14 @@ public static void main(String[] args) throws Exception {
File in, out;
if (args.length == 0) {
in = new File(".");
if (new File(in, "build.xml").isFile() && new File(in, "website2").isDirectory()) in = new File(in, "website2");
if (new File(in, "build.xml").isFile() && new File(in, "website").isDirectory()) in = new File(in, "website");
} else {
in = new File(args[0]);
}

if (args.length < 2) {
if (new File("./build.xml").isFile() && new File("./website2").isDirectory() && new File("./build").isDirectory()) {
out = new File("./build/website2");
if (new File("./build.xml").isFile() && new File("./website").isDirectory() && new File("./build").isDirectory()) {
out = new File("./build/website");
} else {
out = new File(in, "output");
}
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8b7a7cb

Please sign in to comment.