diff options
author | Artur Signell <artur@vaadin.com> | 2013-06-10 20:15:35 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-06-10 20:21:56 +0300 |
commit | 37bc9e41db0278f42263452e12a8b3fc87b664ba (patch) | |
tree | ec48ab05ece102bd43e727da253030dac26475b3 /common.xml | |
parent | d9becf9523fdd71abb1b93072a76df163b9dd2c0 (diff) | |
download | vaadin-framework-37bc9e41db0278f42263452e12a8b3fc87b664ba.tar.gz vaadin-framework-37bc9e41db0278f42263452e12a8b3fc87b664ba.zip |
Reformatted using Ant editor (#12040)
Change-Id: If8afd65d5905302c64f12ef7f76ee7e63073c474
Diffstat (limited to 'common.xml')
-rw-r--r-- | common.xml | 172 |
1 files changed, 55 insertions, 117 deletions
diff --git a/common.xml b/common.xml index f1245724c4..780b90d281 100644 --- a/common.xml +++ b/common.xml @@ -1,7 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<project name="common" basedir="." default="" - xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib" - xmlns:cs="antlib:com.puppycrawl.tools.checkstyle"> +<project name="common" basedir="." default="" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:antcontrib="antlib:net.sf.antcontrib" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle"> <tstamp> <format property="build.date" pattern="yyyy-MM-dd" /> @@ -11,50 +9,35 @@ <property name="gwt.basedir" location="${vaadin.basedir}/../gwt" /> <property file="${vaadin.basedir}/build.properties" /> - <property name="modules.to.publish.to.maven" - value="shared,server,client,client-compiler,client-compiled,theme-compiler,themes,push" /> + <property name="modules.to.publish.to.maven" value="shared,server,client,client-compiler,client-compiled,theme-compiler,themes,push" /> <property name="modules.to.publish.to.download" value="${modules.to.publish.to.maven},all" /> <ivy:settings file="${vaadin.basedir}/ivysettings.xml" /> - <ivy:settings file="${vaadin.basedir}/ivysettings.xml" - id="ivysettings" /> - <ivy:resolve file="${vaadin.basedir}/ivy-taskdefs.xml" - conf="taskdefs" log="quiet" /> + <ivy:settings file="${vaadin.basedir}/ivysettings.xml" id="ivysettings" /> + <ivy:resolve file="${vaadin.basedir}/ivy-taskdefs.xml" conf="taskdefs" log="quiet" /> <ivy:cachepath pathid="taskdefs.classpath" conf="taskdefs" /> - <taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" - classpathref="taskdefs.classpath" /> + <taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpathref="taskdefs.classpath" /> <!-- ant contrib for Maven integration --> - <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" - uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" /> + <taskdef resource="org/apache/maven/artifact/ant/antlib.xml" uri="antlib:org.apache.maven.artifact.ant" classpathref="taskdefs.classpath" /> <!-- FIXME These are not available in other files --> - <antcontrib:propertyregex property="vaadin.version.major" - input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" - select="\1" /> - <antcontrib:propertyregex property="vaadin.version.minor" - input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" - select="\2" /> - <antcontrib:propertyregex property="vaadin.version.revision" - input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" - select="\3" /> + <antcontrib:propertyregex property="vaadin.version.major" input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\1" /> + <antcontrib:propertyregex property="vaadin.version.minor" input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\2" /> + <antcontrib:propertyregex property="vaadin.version.revision" input="${vaadin.version}" regexp="([^\.]*)\.([^\.]*)\.([^\.]*)" select="\3" /> <filterset begintoken="@" endtoken="@" id="filter-vaadin.version"> - <filter token="version" value="${vaadin.version}" /> + <filter token="version" value="${vaadin.version}" /> </filterset> - + <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" /> + <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" - depends="fetch-release-notes-tickets"> + <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" /> + <loadfile property="release-notes-tickets" srcFile="${release-notes-tickets-file}" failonerror="false" /> <delete dir="${filtered.webcontent.dir}" /> <copy todir="${filtered.webcontent.dir}"> @@ -77,8 +60,7 @@ <token key="version" value="${vaadin.version}" /> </replacetokens> <replacetokens begintoken="@" endtoken="@"> - <token key="version-minor" - value="${vaadin.version.major}.${vaadin.version.minor}" /> + <token key="version-minor" value="${vaadin.version.major}.${vaadin.version.minor}" /> </replacetokens> <replacetokens begintoken="@" endtoken="@"> <token key="builddate" value="${build.date}" /> @@ -90,12 +72,9 @@ </copy> </target> - <target name="fetch-release-notes-tickets" unless="built.release-notes" - if="build.release-notes"> + <target name="fetch-release-notes-tickets" unless="built.release-notes" if="build.release-notes"> <mkdir dir="${vaadin.basedir}/result" /> - <subant buildpath="${vaadin.basedir}/buildhelpers" - target="fetch-release-notes-tickets" antfile="build.xml" - inheritall="true"> + <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" /> @@ -112,21 +91,17 @@ </fileset> - <target name="pom.xml" - description="Generates a pom.xml based on the Ivy configuration. Either for a snapshot or a release version" - depends="pom.xml.release,pom.xml.snapshot"> + <target name="pom.xml" description="Generates a pom.xml based on the Ivy configuration. Either for a snapshot or a release version" depends="pom.xml.release,pom.xml.snapshot"> </target> <target name="pom.xml.release" if="build.release"> <fail unless="result.dir" message="No result.dir parameter given" /> <property name="ivy.xml" location="${result.dir}/../ivy.xml" /> - <property name="pom.xml" - location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" /> + <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" /> <property name="conf" value="build, build-provided" /> <property name="vaadin.maven.version" value="${vaadin.version}" /> - <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" - ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="${conf}"> + <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${pom.xml}" conf="${conf}"> <mapping conf="build" scope="compile" /> <mapping conf="build-provided" scope="provided" /> </ivy:makepom> @@ -135,22 +110,18 @@ <target name="pom.xml.snapshot" unless="build.release"> <fail unless="result.dir" message="No result.dir parameter given" /> <property name="ivy.xml" location="${result.dir}/../ivy.xml" /> - <property name="pom.xml" - location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" /> + <property name="pom.xml" location="${result.dir}/lib/${module.name}-${vaadin.version}.pom" /> <property name="temp.pom.xml" location="${pom.xml}.temp" /> <property name="conf" value="build, build-provided" /> - <property name="vaadin.maven.version" - value="${vaadin.version.major}.${vaadin.version.minor}-SNAPSHOT" /> + <property name="vaadin.maven.version" value="${vaadin.version.major}.${vaadin.version.minor}-SNAPSHOT" /> - <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" - ivyfile="${ivy.xml}" pomfile="${temp.pom.xml}" conf="${conf}"> + <ivy:makepom templatefile="${vaadin.basedir}/pom-template.xml" ivyfile="${ivy.xml}" pomfile="${temp.pom.xml}" conf="${conf}"> <mapping conf="build" scope="compile" /> <mapping conf="build-provided" scope="provided" /> </ivy:makepom> <copy file="${temp.pom.xml}" tofile="${pom.xml}"> <filterchain> - <replacestring from="${vaadin.version}" - to="${vaadin.maven.version}" /> + <replacestring from="${vaadin.version}" to="${vaadin.maven.version}" /> </filterchain> </copy> <delete file="${temp.pom.xml}" /> @@ -162,8 +133,7 @@ <fail unless="module.name" message="No module.name parameter given" /> <fail unless="src" message="No src directory parameter given" /> - <property name="sources.jar" - location="${result.dir}/lib/${module.name}-${vaadin.version}-sources.jar" /> + <property name="sources.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}-sources.jar" /> <jar file="${sources.jar}" compress="true"> <fileset dir="${src}"> @@ -185,20 +155,15 @@ <fail unless="module.name" message="No module.name parameter given" /> <property name="src" location="{$result.dir}/../src" /> <property name="javadoc.dir" value="${result.dir}/javadoc" /> - <property name="javadoc.jar" - location="${result.dir}/lib/${module.name}-${vaadin.version}-javadoc.jar" /> + <property name="javadoc.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}-javadoc.jar" /> - <javadoc destdir="${javadoc.dir}" author="true" version="true" - use="true" windowtitle="${module.name}"> + <javadoc destdir="${javadoc.dir}" author="true" version="true" use="true" windowtitle="${module.name}"> <packageset dir="${src}" excludes="${classes.exclude}" /> <doctitle><h1>${module.name}</h1></doctitle> <!-- <header><![CDATA[<script type="text/javascript" src=".html-style/style.js"></script>]]></header> --> <bottom>${javadoc.bottom}</bottom> - <link offline="true" - href="http://docs.oracle.com/javase/6/docs/api/" - packagelistLoc="build/javadoc/j2se-1.6.0" /> - <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" - packagelistLoc="build/javadoc/j2ee-1.4" /> + <link offline="true" href="http://docs.oracle.com/javase/6/docs/api/" packagelistLoc="build/javadoc/j2se-1.6.0" /> + <link offline="true" href="http://java.sun.com/j2ee/1.4/docs/api/" packagelistLoc="build/javadoc/j2ee-1.4" /> <classpath refid="classpath.compile.dependencies" /> </javadoc> @@ -214,16 +179,13 @@ <fail unless="result.dir" message="No result.dir parameter given" /> <fail unless="module.name" message="No module.name parameter given" /> - <property name="result.jar" - location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" /> + <property name="result.jar" location="${result.dir}/lib/${module.name}-${vaadin.version}.jar" /> <property name="classes" location="{$result.dir}/classes" /> <property name="src" location="{$result.dir}/../src" /> <union id="jar.files"> - <fileset dir="${classes}" excludes="${classes.exclude}" - erroronmissingdir="false" /> - <fileset dir="${src}" excludes="${jar.exclude}" - erroronmissingdir="false" /> + <fileset dir="${classes}" excludes="${classes.exclude}" erroronmissingdir="false" /> + <fileset dir="${src}" excludes="${jar.exclude}" erroronmissingdir="false" /> <fileset refid="common.files.for.all.jars" /> <union refid="extra.jar.includes" /> </union> @@ -232,8 +194,7 @@ <manifest> <attribute name="Implementation-Vendor" value="${vaadin.vendor}" /> <attribute name="Implementation-URL" value="${vaadin.url}" /> - <attribute name="Implementation-Version" - value="${vaadin.version}" /> + <attribute name="Implementation-Version" value="${vaadin.version}" /> </manifest> <union refid="jar.files" /> </jar> @@ -261,13 +222,11 @@ <jar file="${jar}" update="true"> <manifest> <attribute name="Bundle-Version" value="${bundle-version}" /> - <attribute name="Bundle-ManifestVersion" - value="${bundle-manifestversion}" /> + <attribute name="Bundle-ManifestVersion" value="${bundle-manifestversion}" /> <attribute name="Bundle-Name" value="${bundle-name}" /> <attribute name="Bundle-SymbolicName" value="${bundle-symbolic}" /> <attribute name="Bundle-Vendor" value="${bundle-vendor}" /> - <attribute name="Bundle-RequiredExecutionEnvironment" - value="JavaSE-${vaadin.java.version}" /> + <attribute name="Bundle-RequiredExecutionEnvironment" value="JavaSE-${vaadin.java.version}" /> </manifest> </jar> @@ -276,8 +235,7 @@ <then> <jar file="${result.jar}" update="true"> <manifest> - <attribute name="Import-Package" - value="${import-package}" /> + <attribute name="Import-Package" value="${import-package}" /> </manifest> </jar> </then> @@ -287,8 +245,7 @@ <then> <jar file="${result.jar}" update="true"> <manifest> - <attribute name="Require-Bundle" - value="${require-bundle}" /> + <attribute name="Require-Bundle" value="${require-bundle}" /> </manifest> </jar> </then> @@ -298,16 +255,14 @@ <then> <jar file="${result.jar}" update="true"> <manifest> - <attribute name="Export-Package" - value="${export-package}" /> + <attribute name="Export-Package" value="${export-package}" /> </manifest> </jar> </then> </antcontrib:if> <!-- Generate the Export-Package attribute in the manifest --> - <java classname="com.vaadin.buildhelpers.GeneratePackageExports" - failonerror="true" fork="yes"> + <java classname="com.vaadin.buildhelpers.GeneratePackageExports" failonerror="true" fork="yes"> <arg value="${jar}" /> <arg line="com/vaadin com/google ${osgi.extra.package.prefixes}" /> <classpath refid="vaadin.buildhelpers.classpath" /> @@ -315,13 +270,10 @@ </java> </target> - <target name="compile" description="Compiles the module" - depends="dependencies, directories" if="src-exists"> + <target name="compile" description="Compiles the module" depends="dependencies, directories" if="src-exists"> <fail unless="module.name" message="No module name given" /> - <javac srcdir="${src}" destdir="${classes}" source="${vaadin.java.version}" - target="${vaadin.java.version}" debug="true" encoding="UTF-8" - includeantruntime="false"> + <javac srcdir="${src}" destdir="${classes}" source="${vaadin.java.version}" target="${vaadin.java.version}" debug="true" encoding="UTF-8" includeantruntime="false"> <classpath refid="classpath.compile.dependencies" /> <classpath refid="classpath.compile.custom" /> </javac> @@ -330,8 +282,7 @@ <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"> + <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}" /> @@ -377,8 +328,7 @@ </junit> </target> - <target name="test.compile" description="Compiles tests" - depends="compile, dependencies.test"> + <target name="test.compile" description="Compiles tests" depends="compile, dependencies.test"> <fail unless="module.name" message="No module name given" /> <property name="result.dir" location="result" /> <property name="base.dir" location="${result.dir}/.." /> @@ -389,9 +339,7 @@ <mkdir dir="${test.classes}" /> - <javac srcdir="${test.src}" destdir="${test.classes}" - source="${vaadin.java.version}" target="${vaadin.java.version}" - debug="true" encoding="UTF-8" includeantruntime="false"> + <javac srcdir="${test.src}" destdir="${test.classes}" source="${vaadin.java.version}" target="${vaadin.java.version}" debug="true" encoding="UTF-8" includeantruntime="false"> <classpath refid="classpath.test.dependencies" /> <classpath location="${classes}" /> <classpath refid="classpath.test.custom" /> @@ -406,14 +354,12 @@ <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}" /> + <ivy:cachepath pathid="classpath.compile.dependencies" conf="${conf}" /> </target> <target name="dependencies.test" description="Resolves dependencies needed by test"> <ivy:resolve resolveid="common" conf="test" /> - <ivy:cachepath pathid="classpath.test.dependencies" - conf="test" /> + <ivy:cachepath pathid="classpath.test.dependencies" conf="test" /> </target> <target name="clean"> @@ -421,18 +367,15 @@ <delete dir="${result.dir}" /> </target> - <target name="publish-local" - description="Publishes the given module to the local repository"> + <target name="publish-local" description="Publishes the given module to the local repository"> <fail unless="result.dir" message="No result.dir parameter given" /> <property name="conf" value="*(public)" /> <ivy:resolve conf="${conf}" /> - <ivy:publish settingsref="ivysettings" conf="${conf}" - resolver="build-temp" overwrite="true" forcedeliver="true"> + <ivy:publish settingsref="ivysettings" conf="${conf}" resolver="build-temp" overwrite="true" forcedeliver="true"> <!-- <artifacts pattern="${result.dir}/[artifact]-[revision].[ext]" /> --> - <artifacts - pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" /> + <artifacts pattern="${result.dir}/lib/[artifact]-[revision](-[classifier]).[ext]" /> </ivy:publish> </target> @@ -441,8 +384,7 @@ <property name="conf" value="*(public)" /> <ivy:resolve conf="${conf}" /> - <ivy:publish conf="${conf}" resolver="local-maven" - overwrite="true"> + <ivy:publish conf="${conf}" resolver="local-maven" overwrite="true"> </ivy:publish> </target> @@ -450,8 +392,7 @@ <property name="cs.dir" location="${vaadin.basedir}/checkstyle" /> <property name="cs.xml" location="${cs.dir}/vaadin-checkstyle.xml" /> <property name="cs.header-file" location="${cs.dir}/header" /> - <taskdef resource="checkstyletask.properties" uri="antlib:com.puppycrawl.tools.checkstyle" - classpathref="taskdefs.classpath" /> + <taskdef resource="checkstyletask.properties" uri="antlib:com.puppycrawl.tools.checkstyle" classpathref="taskdefs.classpath" /> <target name="checkstyle"> <fail unless="result.dir" message="No result.dir parameter given" /> @@ -463,13 +404,10 @@ <cs:checkstyle config="${cs.xml}" failOnViolation="false"> <fileset dir="${cs.src}" includes="**/*.java"> <exclude name="com/vaadin/sass/internal/parser/Parser.java" /> - <exclude - name="com/vaadin/sass/internal/parser/ParserConstants.java" /> - <exclude - name="com/vaadin/sass/internal/parser/ParserTokenManager.java" /> + <exclude name="com/vaadin/sass/internal/parser/ParserConstants.java" /> + <exclude name="com/vaadin/sass/internal/parser/ParserTokenManager.java" /> </fileset> - <formatter type="xml" - toFile="${result.dir}/checkstyle-errors.xml" /> + <formatter type="xml" toFile="${result.dir}/checkstyle-errors.xml" /> <property key="checkstyle.header.file" file="${cs.header-file}" /> </cs:checkstyle> </target> |