summaryrefslogtreecommitdiffstats
path: root/server/build.xml
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-09-03 15:36:28 +0300
committerArtur Signell <artur@vaadin.com>2012-09-09 11:23:08 +0300
commit1d6f0611a8dc7478caf2126ccd191d4284259cba (patch)
tree19ce396cb937c1255796552a78d944a0b99e26ec /server/build.xml
parent557acfb6c4212ad1ddd5270fc7e25f1fc3d63762 (diff)
downloadvaadin-framework-1d6f0611a8dc7478caf2126ccd191d4284259cba.tar.gz
vaadin-framework-1d6f0611a8dc7478caf2126ccd191d4284259cba.zip
Added themes-compiled module (#9299)
Diffstat (limited to 'server/build.xml')
-rw-r--r--server/build.xml7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/build.xml b/server/build.xml
index 1d3f8a5938..2763d5ff10 100644
--- a/server/build.xml
+++ b/server/build.xml
@@ -16,13 +16,14 @@
<union id="jar.includes">
<union refid="server.gwt.includes" />
- <fileset dir="${vaadin.basedir}">
- <include name="WebContent/VAADIN/vaadinBootstrap.js" />
+ <fileset dir="${vaadin.basedir}/WebContent">
+ <include name="VAADIN/vaadinBootstrap.js" />
</fileset>
</union>
<target name="jar">
<antcall target="common.jar">
+ <param name="conf" value="build" />
<reference torefid="extra.jar.includes" refid="jar.includes" />
</antcall>
</target>
@@ -36,7 +37,7 @@
</target>
<target name="tests">
- <antcall target="common.tests.run"/>
+ <antcall target="common.tests.run" />
</target>
id='n176' href='#n176'>176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.vaadin</groupId>
		<artifactId>vaadin-root</artifactId>
		<version>7.7.0-SNAPSHOT</version>
	</parent>
	<groupId>com.vaadin</groupId>
	<artifactId>vaadin-buildhelpers</artifactId>
	<name>vaadin-buildhelpers</name>
	<packaging>jar</packaging>

	<properties>
		<relnotes.tickets.file>${project.build.directory}/generated-resources/releasenotes/release-notes-tickets.html</relnotes.tickets.file>
		<relnotes.authors.file>${project.build.directory}/generated-resources/releasenotes/release-notes-authors.html</relnotes.authors.file>
		<webcontent.dir>${project.build.outputDirectory}/WebContent/</webcontent.dir>
		<maven.build.timestamp.format>yyyy-MM-dd</maven.build.timestamp.format>
	</properties>

	<organization>
		<name>Vaadin Ltd</name>
	</organization>
	<url>https://vaadin.com/</url>
	<description>Vaadin build helpers</description>

	<dependencies>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>${commons-io.version}</version>
		</dependency>
		<dependency>
			<groupId>commons-cli</groupId>
			<artifactId>commons-cli</artifactId>
			<version>1.2</version>
		</dependency>
		<dependency>
			<groupId>com.vaadin</groupId>
			<artifactId>vaadin-sass-compiler</artifactId>
			<version>${vaadin.sass.version}</version>
		</dependency>

		<dependency>
			<groupId>com.carrotsearch</groupId>
			<artifactId>smartsprites</artifactId>
			<version>0.2.10</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>build-helper-maven-plugin</artifactId>
				<version>1.5</version>
				<executions>
					<execution>
						<phase>initialize</phase>
						<id>parse-version</id>
						<goals>
							<goal>parse-version</goal>
						</goals>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<id>filter-release-notes</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<target>
								<loadfile property="release-notes-tickets" srcFile="${relnotes.tickets.file}"
									failonerror="false" />
								<loadfile property="release-notes-authors" srcFile="${relnotes.authors.file}"
									failonerror="false" />
								<copy todir="${webcontent.dir}">
									<fileset dir="src/main/templates/">
										<patternset>
											<include name="release-notes.html" />
										</patternset>
									</fileset>
									<filterchain>
										<expandproperties />
										<replacetokens begintoken="@" endtoken="@">
											<token key="version" value="${project.version}" />
										</replacetokens>
										<replacetokens begintoken="@" endtoken="@">
											<token key="version-minor"
												value="${parsedVersion.majorVersion}.${parsedVersion.minorVersion}" />
										</replacetokens>
										<replacetokens begintoken="@" endtoken="@">
											<token key="builddate" value="${maven.build.timestamp}" />
										</replacetokens>
										<replacetokens begintoken="@" endtoken="@">
											<token key="release-notes-tickets" value="${release-notes-tickets}" />
										</replacetokens>
										<replacetokens begintoken="@" endtoken="@">
											<token key="release-notes-authors" value="${release-notes-authors}" />
										</replacetokens>
									</filterchain>
								</copy>
							</target>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<index>false</index>
						<manifest>
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-resources-plugin</artifactId>
				<configuration>
					<excludes>
						<exclude>**/*.properties</exclude>
					</excludes>
				</configuration>
			</plugin>
			<plugin>
				<artifactId>maven-deploy-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
		</plugins>
	</build>

	<profiles>
		<profile>
			<id>release-build</id>
			<activation>
				<activeByDefault>false</activeByDefault>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.4.0</version>
						<executions>
							<execution>
								<id>fetch-release-notes-tickets</id>
								<phase>process-classes</phase>
								<goals>
									<goal>exec</goal>
								</goals>
								<configuration>
									<classpathScope>compile</classpathScope>
									<executable>${java.home}/bin/java</executable>
									<arguments>
										<argument>-Dvaadin.version=${project.version}</argument>
										<argument>-classpath</argument>
										<classpath />

										<argument>com.vaadin.buildhelpers.FetchReleaseNotesTickets</argument>
									</arguments>
									<outputFile>${relnotes.tickets.file}</outputFile>
								</configuration>
							</execution>
							<execution>
								<id>fetch-release-notes-authors</id>
								<phase>process-classes</phase>
								<goals>
									<goal>exec</goal>
								</goals>
								<configuration>
									<classpathScope>compile</classpathScope>
									<executable>${java.home}/bin/java</executable>
									<arguments>
										<argument>-Dvaadin.version=${project.version}</argument>
										<argument>-classpath</argument>
										<classpath />

										<argument>com.vaadin.buildhelpers.FetchReleaseNotesAuthors</argument>
									</arguments>
									<outputFile>${relnotes.authors.file}</outputFile>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>