diff options
author | Artur Signell <artur@vaadin.com> | 2013-02-18 21:31:32 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2013-02-19 15:07:44 +0000 |
commit | f09c12fd97cbafd10b31c79a55bd90dfef02f4a9 (patch) | |
tree | 5030cc74358b7615eaf81833eed41ecf6c9e519d /common.xml | |
parent | 9da1979af798324cbe1eea2b6adde0886774f73b (diff) | |
download | vaadin-framework-f09c12fd97cbafd10b31c79a55bd90dfef02f4a9.tar.gz vaadin-framework-f09c12fd97cbafd10b31c79a55bd90dfef02f4a9.zip |
Imported and updated release notes builder (#10918)
Change-Id: Ie21d448f89d0fab6b7732a0137c80172e9da8e69
Ticket: 10918
Diffstat (limited to 'common.xml')
-rw-r--r-- | common.xml | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/common.xml b/common.xml index ff82b6b7ec..7a3f2f17c6 100644 --- a/common.xml +++ b/common.xml @@ -27,9 +27,12 @@ <union id="empty.reference" /> <property name="filtered.webcontent.dir" location="${vaadin.basedir}/result/filteredWebContent" /> + <property name="release-notes-tickets-file" location="${vaadin.basedir}/result/release-notes-tickets.html" /> - <target name="filter.webcontent" unless="webcontent.filtered"> + <target name="filter.webcontent" unless="webcontent.filtered" depends="fetch-release-notes-tickets"> <property name="webcontent.filtered" value="true" /> + <!-- Running without build.release-notes will cause an error, which is ignored --> + <loadfile property="release-notes-tickets" srcFile="${release-notes-tickets-file}" failonerror="false" /> <delete dir="${filtered.webcontent.dir}" /> <copy todir="${filtered.webcontent.dir}"> @@ -57,11 +60,20 @@ <replacetokens begintoken="@" endtoken="@"> <token key="builddate" value="${build.date}" /> </replacetokens> + <replacetokens begintoken="@" endtoken="@"> + <token key="release-notes-tickets" value="${release-notes-tickets}" /> + </replacetokens> </filterchain> </copy> + </target> - + <target name="fetch-release-notes-tickets" unless="built.release-notes" if="build.release-notes"> + <subant buildpath="${vaadin.basedir}/buildhelpers" target="fetch-release-notes-tickets" antfile="build.xml" inheritall="true"> + <property name="output" location="${release-notes-tickets-file}" /> + </subant> + <property name="built.release-notes" value="1" /> </target> + <fileset dir="${filtered.webcontent.dir}" id="common.files.for.all.jars"> <patternset> <include name="release-notes.html" /> @@ -110,7 +122,7 @@ </target> - <target name="sources.jar" depends="compile"> + <target name="sources.jar" depends="compile, filter.webcontent"> <fail unless="result.dir" message="No result.dir parameter given" /> <fail unless="module.name" message="No module.name parameter given" /> <fail unless="src" message="No src directory parameter given" /> @@ -132,7 +144,7 @@ </target> - <target name="javadoc.jar" depends="dependencies"> + <target name="javadoc.jar" depends="dependencies, filter.webcontent"> <fail unless="result.dir" message="No result.dir parameter given" /> <fail unless="module.name" message="No module.name parameter given" /> <property name="src" location="{$result.dir}/../src" /> @@ -157,7 +169,7 @@ </target> - <target name="jar" depends="compile, pom.xml"> + <target name="jar" depends="compile, pom.xml, filter.webcontent"> <fail unless="result.dir" message="No result.dir parameter given" /> <fail unless="module.name" message="No module.name parameter given" /> @@ -261,6 +273,16 @@ </javac> </target> + <target name="exec-buildhelper" depends="compile"> + <fail unless="main.class" message="No main class given in 'main.class'" /> + <fail unless="output" message="No output file given in 'output'" /> + <java classname="${main.class}" output="${output}" failonerror="true" fork="yes"> + <classpath refid="vaadin.buildhelpers.classpath" /> + <classpath refid="classpath.compile.dependencies" /> + <jvmarg value="-Dvaadin.version=${vaadin.version}" /> + </java> + </target> + <target name="directories"> <property name="result.dir" location="result" /> <property name="src" location="${result.dir}/../src" /> @@ -321,7 +343,7 @@ </copy> </target> - <target name="dependencies" description="Resolves dependencies needed by this module" depends="filter.webcontent"> + <target name="dependencies" description="Resolves dependencies needed by this module"> <property name='conf' value="build, build-provided" /> <ivy:resolve resolveid="common" conf="${conf}" /> <ivy:cachepath pathid="classpath.compile.dependencies" conf="${conf}" /> |